mirror of https://github.com/apache/jclouds.git
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:
parent
040b3855ff
commit
cf438c9252
|
@ -67,9 +67,9 @@ import org.jclouds.vcloud.terremark.domain.NodeConfiguration;
|
|||
import org.jclouds.vcloud.terremark.domain.Protocol;
|
||||
import org.jclouds.vcloud.terremark.domain.PublicIpAddress;
|
||||
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.AddNodeOptions;
|
||||
import org.jclouds.vcloud.terremark.options.ReturnVoidOnDeleteDefaultIp;
|
||||
import org.jclouds.vcloud.terremark.xml.ComputeOptionsHandler;
|
||||
import org.jclouds.vcloud.terremark.xml.CustomizationParametersHandler;
|
||||
import org.jclouds.vcloud.terremark.xml.InternetServiceHandler;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
* under the License.
|
||||
* ====================================================================
|
||||
*/
|
||||
package org.jclouds.vcloud.terremark.options;
|
||||
package org.jclouds.vcloud.terremark.functions;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
|
|
@ -274,14 +274,18 @@ public class TerremarkVCloudClientLiveTest extends VCloudClientLiveTest {
|
|||
node = tmClient.addNode(is.getId(), Iterables.getLast(vApp.getNetworkToAddresses().values()),
|
||||
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();
|
||||
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")
|
||||
public void testLifeCycle() throws InterruptedException, ExecutionException, TimeoutException,
|
||||
IOException {
|
||||
|
|
Loading…
Reference in New Issue