use of io.fabric8.kubernetes.client.informers.impl.SharedInformerFactoryImpl in project kubernetes-client by fabric8io.
the class SharedInformerFactoryImplTest method testSharedIndexInformerForCustomResourceNoType.
@Test
void testSharedIndexInformerForCustomResourceNoType() {
// Given
SharedInformerFactory sharedInformerFactory = new SharedInformerFactoryImpl(mockBaseClient, executorService);
CustomResourceDefinitionContext context = new CustomResourceDefinitionContext.Builder().withKind("Dummy").withScope("Namespaced").withVersion("v1").withGroup("demos.fabric8.io").withPlural("dummies").build();
// When
SharedIndexInformer<GenericKubernetesResource> informer = sharedInformerFactory.inNamespace("ns1").sharedIndexInformerForCustomResource(context, 10 * 1000L);
// Then
assertThat(informer).isNotNull();
}
Aggregations