Search in sources :

Example 26 with V1beta1Ingress

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());
}
Also used : V1beta1Ingress(io.kubernetes.client.models.V1beta1Ingress) V1ObjectMeta(io.kubernetes.client.models.V1ObjectMeta) Test(org.junit.Test)

Example 27 with V1beta1Ingress

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"));
}
Also used : V1beta1Ingress(io.kubernetes.client.models.V1beta1Ingress) V1ObjectMeta(io.kubernetes.client.models.V1ObjectMeta) Test(org.junit.Test)

Example 28 with V1beta1Ingress

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"));
}
Also used : V1beta1Ingress(io.kubernetes.client.models.V1beta1Ingress) V1ObjectMeta(io.kubernetes.client.models.V1ObjectMeta) Test(org.junit.Test)

Example 29 with V1beta1Ingress

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());
}
Also used : V1beta1Ingress(io.kubernetes.client.models.V1beta1Ingress) V1ObjectMeta(io.kubernetes.client.models.V1ObjectMeta) Test(org.junit.Test)

Aggregations

V1beta1Ingress (io.kubernetes.client.models.V1beta1Ingress)29 Type (java.lang.reflect.Type)14 Test (org.junit.Test)13 ProgressRequestBody (io.kubernetes.client.ProgressRequestBody)7 ProgressResponseBody (io.kubernetes.client.ProgressResponseBody)7 V1ObjectMeta (io.kubernetes.client.models.V1ObjectMeta)6 AtomicReference (java.util.concurrent.atomic.AtomicReference)2 Fiber (oracle.kubernetes.operator.work.Fiber)2 CompletionCallback (oracle.kubernetes.operator.work.Fiber.CompletionCallback)2 Packet (oracle.kubernetes.operator.work.Packet)2 Step (oracle.kubernetes.operator.work.Step)2 HttpUserAgentTest (com.meterware.pseudoserver.HttpUserAgentTest)1 ApiException (io.kubernetes.client.ApiException)1 JSON (io.kubernetes.client.JSON)1 V1ConfigMap (io.kubernetes.client.models.V1ConfigMap)1 V1DeleteOptions (io.kubernetes.client.models.V1DeleteOptions)1 V1EnvVar (io.kubernetes.client.models.V1EnvVar)1 V1PersistentVolumeClaimList (io.kubernetes.client.models.V1PersistentVolumeClaimList)1 V1Pod (io.kubernetes.client.models.V1Pod)1 V1PodList (io.kubernetes.client.models.V1PodList)1