use of org.onlab.osgi.TestServiceDirectory in project onos by opennetworkinglab.
the class KubevirtApiConfigWebResourceTest method setUpTest.
/**
* Sets up the global values for all the tests.
*/
@Before
public void setUpTest() {
final CodecManager codecService = new CodecManager();
codecService.activate();
codecService.registerCodec(KubevirtApiConfig.class, new KubevirtApiConfigCodec());
ServiceDirectory testDirectory = new TestServiceDirectory().add(KubevirtApiConfigAdminService.class, mockConfigAdminService).add(CodecService.class, codecService);
setServiceDirectory(testDirectory);
kubevirtApiConfig = DefaultKubevirtApiConfig.builder().scheme(HTTPS).ipAddress(IpAddress.valueOf("10.134.34.223")).port(6443).state(DISCONNECTED).token("tokenMod").caCertData("caCertData").clientCertData("clientCertData").clientKeyData("clientKeyData").datacenterId("DB").clusterId("BD-MEH-CT01").build();
}
use of org.onlab.osgi.TestServiceDirectory in project onos by opennetworkinglab.
the class OpenstackFloatingIpWebResourceTest method setUpTest.
/**
* Sets up the global values for all tests.
*/
@Before
public void setUpTest() {
ServiceDirectory testDirectory = new TestServiceDirectory().add(OpenstackRouterAdminService.class, mockOpenstackRouterAdminService).add(OpenstackHaService.class, mockOpenstackHaService);
setServiceDirectory(testDirectory);
}
use of org.onlab.osgi.TestServiceDirectory in project onos by opennetworkinglab.
the class OpenstackNetworkWebResourceTest method setUpTest.
/**
* Sets up the global values for all tests.
*/
@Before
public void setUpTest() {
ServiceDirectory testDirectory = new TestServiceDirectory().add(OpenstackNetworkAdminService.class, mockOpenstackNetworkAdminService).add(OpenstackHaService.class, mockOpenstackHaService);
setServiceDirectory(testDirectory);
}
use of org.onlab.osgi.TestServiceDirectory in project onos by opennetworkinglab.
the class OpenstackPortWebResourceTest method setUpTest.
/**
* Sets up the global values for all tests.
*/
@Before
public void setUpTest() {
ServiceDirectory testDirectory = new TestServiceDirectory().add(OpenstackNetworkAdminService.class, mockOpenstackNetworkAdminService).add(OpenstackNodeService.class, mockOpenstackNodeService).add(OpenstackHaService.class, mockOpenstackHaService);
setServiceDirectory(testDirectory);
}
use of org.onlab.osgi.TestServiceDirectory in project onos by opennetworkinglab.
the class OpenstackSecurityGroupRuleWebResourceTest method setUpTest.
/**
* Sets up the global values for all tests.
*/
@Before
public void setUpTest() {
ServiceDirectory testDirectory = new TestServiceDirectory().add(OpenstackSecurityGroupAdminService.class, mockOpenstackSecurityGroupAdminService).add(OpenstackHaService.class, mockOpenstackHaService);
setServiceDirectory(testDirectory);
}
Aggregations