Issue 112: started work on configureVApp

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2499 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-12-21 09:26:03 +00:00
parent 040b3855ff
commit cf438c9252
3 changed files with 10 additions and 6 deletions

View File

@ -67,9 +67,9 @@ import org.jclouds.vcloud.terremark.domain.NodeConfiguration;
import org.jclouds.vcloud.terremark.domain.Protocol; import org.jclouds.vcloud.terremark.domain.Protocol;
import org.jclouds.vcloud.terremark.domain.PublicIpAddress; import org.jclouds.vcloud.terremark.domain.PublicIpAddress;
import org.jclouds.vcloud.terremark.domain.TerremarkVApp; import org.jclouds.vcloud.terremark.domain.TerremarkVApp;
import org.jclouds.vcloud.terremark.functions.ReturnVoidOnDeleteDefaultIp;
import org.jclouds.vcloud.terremark.options.AddInternetServiceOptions; import org.jclouds.vcloud.terremark.options.AddInternetServiceOptions;
import org.jclouds.vcloud.terremark.options.AddNodeOptions; import org.jclouds.vcloud.terremark.options.AddNodeOptions;
import org.jclouds.vcloud.terremark.options.ReturnVoidOnDeleteDefaultIp;
import org.jclouds.vcloud.terremark.xml.ComputeOptionsHandler; import org.jclouds.vcloud.terremark.xml.ComputeOptionsHandler;
import org.jclouds.vcloud.terremark.xml.CustomizationParametersHandler; import org.jclouds.vcloud.terremark.xml.CustomizationParametersHandler;
import org.jclouds.vcloud.terremark.xml.InternetServiceHandler; import org.jclouds.vcloud.terremark.xml.InternetServiceHandler;

View File

@ -21,7 +21,7 @@
* under the License. * under the License.
* ==================================================================== * ====================================================================
*/ */
package org.jclouds.vcloud.terremark.options; package org.jclouds.vcloud.terremark.functions;
import java.lang.reflect.Constructor; import java.lang.reflect.Constructor;

View File

@ -274,14 +274,18 @@ public class TerremarkVCloudClientLiveTest extends VCloudClientLiveTest {
node = tmClient.addNode(is.getId(), Iterables.getLast(vApp.getNetworkToAddresses().values()), node = tmClient.addNode(is.getId(), Iterables.getLast(vApp.getNetworkToAddresses().values()),
vApp.getName() + "-SSH", 22); vApp.getName() + "-SSH", 22);
node = tmClient.configureNode(node.getId(), new NodeConfiguration().changeNameTo(vApp
.getName()
+ "-ssh"));
assertEquals(node.getName(), vApp.getName() + "-ssh");
publicIp = is.getPublicIpAddress().getAddress(); publicIp = is.getPublicIpAddress().getAddress();
doCheckPass(publicIp); doCheckPass(publicIp);
} }
@Test(dependsOnMethods = { "testPublicIp" })
public void testConfigureNode() throws InterruptedException, ExecutionException,
TimeoutException, IOException {
node = tmClient.configureNode(node.getId(), new NodeConfiguration()
.changeDescriptionTo("holy cow"));
assertEquals(node.getDescription(), "holy cow");
}
@Test(dependsOnMethods = "testPublicIp") @Test(dependsOnMethods = "testPublicIp")
public void testLifeCycle() throws InterruptedException, ExecutionException, TimeoutException, public void testLifeCycle() throws InterruptedException, ExecutionException, TimeoutException,
IOException { IOException {