use of io.kubernetes.client.models.V1beta1Ingress in project weblogic-kubernetes-operator by oracle.
the class IngressWatcherTest method whenIngressHasNoDomainUid_returnNull.
@Test
public void whenIngressHasNoDomainUid_returnNull() throws Exception {
V1beta1Ingress ingress = new V1beta1Ingress().metadata(new V1ObjectMeta());
assertThat(IngressWatcher.getIngressDomainUID(ingress), nullValue());
}
use of io.kubernetes.client.models.V1beta1Ingress in project weblogic-kubernetes-operator by oracle.
the class IngressWatcherTest method whenIngressHasDomainUid_returnIt.
@Test
public void whenIngressHasDomainUid_returnIt() throws Exception {
V1beta1Ingress ingress = new V1beta1Ingress().metadata(new V1ObjectMeta().labels(ImmutableMap.of(DOMAINUID_LABEL, "domain1")));
assertThat(IngressWatcher.getIngressDomainUID(ingress), equalTo("domain1"));
}
use of io.kubernetes.client.models.V1beta1Ingress in project weblogic-kubernetes-operator by oracle.
the class IngressWatcherTest method whenIngressHasClusterName_returnIt.
@Test
public void whenIngressHasClusterName_returnIt() throws Exception {
V1beta1Ingress ingress = new V1beta1Ingress().metadata(new V1ObjectMeta().labels(ImmutableMap.of(CLUSTERNAME_LABEL, "mycluster")));
assertThat(IngressWatcher.getIngressClusterName(ingress), equalTo("mycluster"));
}
use of io.kubernetes.client.models.V1beta1Ingress in project weblogic-kubernetes-operator by oracle.
the class IngressWatcherTest method whenIngressHasNoClusterName_returnNull.
@Test
public void whenIngressHasNoClusterName_returnNull() throws Exception {
V1beta1Ingress ingress = new V1beta1Ingress().metadata(new V1ObjectMeta());
assertThat(IngressWatcher.getIngressClusterName(ingress), nullValue());
}
Aggregations