mirror of https://github.com/apache/jclouds.git
added rest properties to vcloud test
This commit is contained in:
parent
d494c8a9f3
commit
7bcdc74a35
|
@ -33,6 +33,9 @@ import org.jclouds.vcloud.VCloudClient;
|
||||||
import org.jclouds.vcloud.domain.VApp;
|
import org.jclouds.vcloud.domain.VApp;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
|
import com.google.common.collect.ImmutableSet;
|
||||||
|
import com.google.inject.Module;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
@ -65,7 +68,8 @@ public class VCloudComputeServiceLiveTest extends BaseComputeServiceLiveTest {
|
||||||
NodeMetadata allData = client.getNodeMetadata(node.getId());
|
NodeMetadata allData = client.getNodeMetadata(node.getId());
|
||||||
System.out.println(allData.getHardware());
|
System.out.println(allData.getHardware());
|
||||||
RestContext<VCloudClient, VCloudAsyncClient> tmContext = new ComputeServiceContextFactory(
|
RestContext<VCloudClient, VCloudAsyncClient> tmContext = new ComputeServiceContextFactory(
|
||||||
setupRestProperties()).createContext(provider, identity, credential).getProviderSpecificContext();
|
setupRestProperties()).createContext(provider, identity, credential, ImmutableSet.<Module> of(),
|
||||||
|
setupProperties()).getProviderSpecificContext();
|
||||||
VApp vApp = tmContext.getApi().findVAppInOrgVDCNamed(null, null, allData.getName());
|
VApp vApp = tmContext.getApi().findVAppInOrgVDCNamed(null, null, allData.getName());
|
||||||
assertEquals(vApp.getName(), allData.getName());
|
assertEquals(vApp.getName(), allData.getName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue