use of org.onosproject.k8snetworking.api.DefaultK8sIpam in project onos by opennetworkinglab.
the class K8sIpamCodecTest method testK8sIpamEncode.
/**
* Tests the kubernetes IPAM encoding.
*/
@Test
public void testK8sIpamEncode() {
K8sIpam ipam = new DefaultK8sIpam("network-1-10.10.10.10", IpAddress.valueOf("10.10.10.10"), "network-1");
ObjectNode nodeJson = k8sIpamCodec.encode(ipam, context);
assertThat(nodeJson, matchesK8sIpam(ipam));
}
Aggregations