use of org.onosproject.kubevirtnode.codec.KubevirtApiConfigCodec 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").build();
}
use of org.onosproject.kubevirtnode.codec.KubevirtApiConfigCodec in project onos by opennetworkinglab.
the class KubevirtNodeCodecRegister method activate.
@Activate
protected void activate() {
codecService.registerCodec(KubevirtNode.class, new KubevirtNodeCodec());
codecService.registerCodec(KubevirtPhyInterface.class, new KubevirtPhyInterfaceCodec());
codecService.registerCodec(KubevirtApiConfig.class, new KubevirtApiConfigCodec());
log.info("Started");
}
Aggregations