Search in sources :

Example 1 with RegistryAuthConfig

use of org.eclipse.jkube.kit.build.api.auth.RegistryAuthConfig in project jkube by eclipse.

the class OpenShiftRegistryAuthHandlerTest method setup.

@Before
public void setup() {
    log = new KitLogger.SilentLogger();
    RegistryAuthConfig registryAuthConfig = RegistryAuthConfig.builder().skipExtendedAuthentication(false).propertyPrefix("docker").addHandlerConfig("openshift", OpenShiftRegistryAuthHandler.AUTH_USE_OPENSHIFT_AUTH, "true").build();
    handler = new OpenShiftRegistryAuthHandler(registryAuthConfig, log);
}
Also used : KitLogger(org.eclipse.jkube.kit.common.KitLogger) RegistryAuthConfig(org.eclipse.jkube.kit.build.api.auth.RegistryAuthConfig) Before(org.junit.Before)

Example 2 with RegistryAuthConfig

use of org.eclipse.jkube.kit.build.api.auth.RegistryAuthConfig in project jkube by eclipse.

the class SystemPropertyRegistryAuthHandlerTest method setup.

@Before
public void setup() {
    RegistryAuthConfig registryAuthConfig = RegistryAuthConfig.builder().skipExtendedAuthentication(false).propertyPrefix("jkube.docker").build();
    handler = new SystemPropertyRegistryAuthHandler(registryAuthConfig, log);
}
Also used : RegistryAuthConfig(org.eclipse.jkube.kit.build.api.auth.RegistryAuthConfig) Before(org.junit.Before)

Aggregations

RegistryAuthConfig (org.eclipse.jkube.kit.build.api.auth.RegistryAuthConfig)2 Before (org.junit.Before)2 KitLogger (org.eclipse.jkube.kit.common.KitLogger)1