catalog test wasn't blocking on task complete

This commit is contained in:
Adrian Cole 2012-03-07 15:14:35 -08:00
parent cb0a105171
commit 15a297d200
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ public class CatalogClientLiveTest extends BaseVCloudDirectorClientLiveTest {
private void deleteAllCatalogItemMetadata(URI catalogItemURI) {
Metadata currentMetadata = catalogClient.getMetadataClient().getMetadata(catalogItemURI);
for (MetadataEntry currentMetadataEntry : currentMetadata.getMetadataEntries()) {
catalogClient.getMetadataClient().deleteMetadataEntry(catalogItemURI, currentMetadataEntry.getKey());
retryTaskSuccess.apply(catalogClient.getMetadataClient().deleteMetadataEntry(catalogItemURI, currentMetadataEntry.getKey()));
}
Metadata emptyMetadata = catalogClient.getMetadataClient().getMetadata(catalogItemURI);
assertTrue(emptyMetadata.getMetadataEntries().isEmpty(), "The catalogItem Metadata should be empty");