Search in sources :

Example 6 with NetworkAPIGroupDSL

use of io.fabric8.kubernetes.client.dsl.NetworkAPIGroupDSL in project strimzi-kafka-operator by strimzi.

the class IngressOperatorTest method mocker.

@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
    NetworkAPIGroupDSL network = mock(NetworkAPIGroupDSL.class);
    V1NetworkAPIGroupDSL v1 = mock(V1NetworkAPIGroupDSL.class);
    when(network.v1()).thenReturn(v1);
    when(v1.ingresses()).thenReturn(op);
    when(mockClient.network()).thenReturn(network);
}
Also used : V1NetworkAPIGroupDSL(io.fabric8.kubernetes.client.V1NetworkAPIGroupDSL) NetworkAPIGroupDSL(io.fabric8.kubernetes.client.dsl.NetworkAPIGroupDSL) V1NetworkAPIGroupDSL(io.fabric8.kubernetes.client.V1NetworkAPIGroupDSL)

Aggregations

NetworkAPIGroupDSL (io.fabric8.kubernetes.client.dsl.NetworkAPIGroupDSL)6 V1NetworkAPIGroupDSL (io.fabric8.kubernetes.client.V1NetworkAPIGroupDSL)4 V1beta1NetworkAPIGroupDSL (io.fabric8.kubernetes.client.V1beta1NetworkAPIGroupDSL)4 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)2 KubernetesResource (io.fabric8.kubernetes.api.model.KubernetesResource)2 PersistentVolumeClaim (io.fabric8.kubernetes.api.model.PersistentVolumeClaim)2 PersistentVolumeClaimList (io.fabric8.kubernetes.api.model.PersistentVolumeClaimList)2 Pod (io.fabric8.kubernetes.api.model.Pod)2 PodList (io.fabric8.kubernetes.api.model.PodList)2 CustomResourceDefinition (io.fabric8.kubernetes.api.model.apiextensions.v1.CustomResourceDefinition)2 CustomResourceDefinitionList (io.fabric8.kubernetes.api.model.apiextensions.v1.CustomResourceDefinitionList)2 StatefulSet (io.fabric8.kubernetes.api.model.apps.StatefulSet)2 StatefulSetList (io.fabric8.kubernetes.api.model.apps.StatefulSetList)2 CustomResource (io.fabric8.kubernetes.client.CustomResource)2 KubernetesClient (io.fabric8.kubernetes.client.KubernetesClient)2 V1ApiextensionAPIGroupDSL (io.fabric8.kubernetes.client.V1ApiextensionAPIGroupDSL)2 ApiextensionsAPIGroupDSL (io.fabric8.kubernetes.client.dsl.ApiextensionsAPIGroupDSL)2 AppsAPIGroupDSL (io.fabric8.kubernetes.client.dsl.AppsAPIGroupDSL)2 CreateOrReplaceable (io.fabric8.kubernetes.client.dsl.CreateOrReplaceable)2 PodResource (io.fabric8.kubernetes.client.dsl.PodResource)2