issue 830: fixed VAppTemplateApiLiveTest.deleteVAppTemplate

This commit is contained in:
Andrea Turli 2012-08-27 16:10:48 +02:00
parent a70e3adb20
commit b0466cad84
1 changed files with 3 additions and 3 deletions

View File

@ -254,15 +254,15 @@ public class VAppTemplateApiLiveTest extends AbstractVAppApiLiveTest {
VAppTemplate clonedVappTemplate = cloneVAppTemplate(true);
// Confirm that "get" works pre-remove
VAppTemplate vAppTemplatePreDelete = vAppTemplateApi.get(clonedVappTemplate.getId());
VAppTemplate vAppTemplatePreDelete = vAppTemplateApi.get(clonedVappTemplate.getHref());
checkVAppTemplate(vAppTemplatePreDelete);
// Delete the template
final Task task = vAppTemplateApi.remove(clonedVappTemplate.getId());
final Task task = vAppTemplateApi.remove(clonedVappTemplate.getHref());
assertTaskSucceeds(task);
// Confirm that can't access post-remove, i.e. template has been removed
VAppTemplate removed = vAppTemplateApi.get(clonedVappTemplate.getId());
VAppTemplate removed = vAppTemplateApi.get(clonedVappTemplate.getHref());
assertNull(removed);
}