From b0466cad84656d7cbb72cce2b2813a4088bb903d Mon Sep 17 00:00:00 2001 From: Andrea Turli Date: Mon, 27 Aug 2012 16:10:48 +0200 Subject: [PATCH] issue 830: fixed VAppTemplateApiLiveTest.deleteVAppTemplate --- .../director/v1_5/features/VAppTemplateApiLiveTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/features/VAppTemplateApiLiveTest.java b/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/features/VAppTemplateApiLiveTest.java index a827b53be3..7ed8579882 100644 --- a/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/features/VAppTemplateApiLiveTest.java +++ b/labs/vcloud-director/src/test/java/org/jclouds/vcloud/director/v1_5/features/VAppTemplateApiLiveTest.java @@ -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); }