Search in sources :

Example 1 with Authentication

use of io.kubernetes.client.util.credentials.Authentication in project java by kubernetes-client.

the class ClientBuilderTest method testCredentialProviderInvoked.

@Test
public void testCredentialProviderInvoked() throws IOException {
    final Authentication provider = mock(Authentication.class);
    final ApiClient client = ClientBuilder.standard().setAuthentication(provider).build();
    verify(provider).provide(client);
}
Also used : KubeconfigAuthentication(io.kubernetes.client.util.credentials.KubeconfigAuthentication) Authentication(io.kubernetes.client.util.credentials.Authentication) ClientCertificateAuthentication(io.kubernetes.client.util.credentials.ClientCertificateAuthentication) ApiClient(io.kubernetes.client.openapi.ApiClient) Test(org.junit.Test)

Aggregations

ApiClient (io.kubernetes.client.openapi.ApiClient)1 Authentication (io.kubernetes.client.util.credentials.Authentication)1 ClientCertificateAuthentication (io.kubernetes.client.util.credentials.ClientCertificateAuthentication)1 KubeconfigAuthentication (io.kubernetes.client.util.credentials.KubeconfigAuthentication)1 Test (org.junit.Test)1