Merge pull request #807 from andreaturli/master

issue 830: fixed VAppTemplateApiLiveTest
This commit is contained in:
Adrian Cole 2012-08-27 07:37:33 -07:00
commit 60f9516dbd
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);
}