From 0e52fcb040baef7b16a2b8be5d8d8c5140d2e094 Mon Sep 17 00:00:00 2001 From: Richard Downer Date: Tue, 15 Nov 2011 16:36:13 +0000 Subject: [PATCH 1/2] First steps in making a live test for Cloudstack templates --- .../features/TemplateClientLiveTest.java | 51 ++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateClientLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateClientLiveTest.java index b2f795a644..227cf75002 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateClientLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateClientLiveTest.java @@ -20,11 +20,17 @@ package org.jclouds.cloudstack.features; import static org.jclouds.cloudstack.options.ListTemplatesOptions.Builder.zoneId; import static org.testng.Assert.assertEquals; +import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertTrue; +import java.util.Random; import java.util.Set; -import org.jclouds.cloudstack.domain.Template; +import org.jclouds.cloudstack.domain.*; +import org.jclouds.cloudstack.options.CreateTemplateOptions; +import org.jclouds.cloudstack.options.ListNetworksOptions; +import org.jclouds.cloudstack.options.ListVolumesOptions; +import org.testng.annotations.AfterGroups; import org.testng.annotations.Test; import com.google.common.collect.Iterables; @@ -37,6 +43,9 @@ import com.google.common.collect.Iterables; @Test(groups = "live", singleThreaded = true, testName = "TemplateClientLiveTest") public class TemplateClientLiveTest extends BaseCloudStackClientLiveTest { + private VirtualMachine vm; + private Template template; + public void testListTemplates() throws Exception { Set