Search in sources :

Example 1 with EndpointDiscovery

use of org.kie.kogito.addons.k8s.EndpointDiscovery in project kogito-runtimes by kiegroup.

the class EndpointDiscoveryTest method verifyKubernetesIntegration.

@Test
void verifyKubernetesIntegration() {
    final EndpointDiscovery mockedEndpointDiscovery = new EndpointDiscoveryConfig().endpointDiscovery(kubernetesClient);
    final Optional<Endpoint> endpoint = mockedEndpointDiscovery.findEndpoint("test", "test");
    // we haven't created anything
    assertTrue(endpoint.isEmpty());
}
Also used : Endpoint(org.kie.kogito.addons.k8s.Endpoint) EndpointDiscovery(org.kie.kogito.addons.k8s.EndpointDiscovery) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 Endpoint (org.kie.kogito.addons.k8s.Endpoint)1 EndpointDiscovery (org.kie.kogito.addons.k8s.EndpointDiscovery)1