use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi-kafka-operator by strimzi.
the class RoleOperatorTest method mocker.
@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
when(mockClient.rbac()).thenReturn(mockRbac);
when(mockClient.rbac().roles()).thenReturn(op);
}
use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi by strimzi.
the class RoleBindingOperatorTest method mocker.
@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
when(mockClient.rbac()).thenReturn(mockRbac);
when(mockClient.rbac().roleBindings()).thenReturn(op);
}
use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi by strimzi.
the class ClusterRoleOperatorTest method mocker.
@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
when(mockClient.rbac()).thenReturn(mockRbac);
when(mockRbac.clusterRoles()).thenReturn(op);
}
use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi-kafka-operator by strimzi.
the class ClusterRoleBindingOperatorTest method mocker.
@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
when(mockClient.rbac()).thenReturn(mockRbac);
when(mockRbac.clusterRoleBindings()).thenReturn(op);
}
use of io.fabric8.kubernetes.client.dsl.RbacAPIGroupDSL in project strimzi-kafka-operator by strimzi.
the class ClusterRoleOperatorTest method mocker.
@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
RbacAPIGroupDSL mockRbac = mock(RbacAPIGroupDSL.class);
when(mockClient.rbac()).thenReturn(mockRbac);
when(mockRbac.clusterRoles()).thenReturn(op);
}
Aggregations