feat(registrystorage): Add deleteMavenMetadata to RegistryStorage and update Maven DELETE test to expect 204 No Content

This commit is contained in:
2025-11-21 09:25:19 +00:00
parent 4d13fac9f1
commit 9039613f7a
4 changed files with 19 additions and 2 deletions

View File

@@ -348,6 +348,17 @@ export class RegistryStorage implements IStorageBackend {
return this.putObject(path, data);
}
/**
* Delete Maven metadata (maven-metadata.xml)
*/
public async deleteMavenMetadata(
groupId: string,
artifactId: string
): Promise<void> {
const path = this.getMavenMetadataPath(groupId, artifactId);
return this.deleteObject(path);
}
/**
* List Maven versions for an artifact
* Returns all version directories under the artifact path