use of io.fabric8.docker.api.model.AuthConfig in project docker-maven-plugin by fabric8io.
the class AuthConfigFactoryTest method fargateTaskRole.
@Test
public void fargateTaskRole() throws IOException, MojoExecutionException {
givenAwsSdkIsDisabled();
String containerCredentialsUri = "v2/credentials/" + randomUUID().toString();
String accessKeyId = randomUUID().toString();
String secretAccessKey = randomUUID().toString();
String sessionToken = randomUUID().toString();
givenEcsMetadataService("/" + containerCredentialsUri, accessKeyId, secretAccessKey, sessionToken);
setupEcsMetadataConfiguration(httpServer, containerCredentialsUri);
AuthConfig authConfig = factory.createAuthConfig(false, true, null, settings, "user", ECR_NAME);
verifyAuthConfig(authConfig, accessKeyId, secretAccessKey, null, sessionToken);
}
use of io.fabric8.docker.api.model.AuthConfig in project docker-maven-plugin by fabric8io.
the class AuthConfigFactoryTest method testFromSettingsDefault2.
@Test
public void testFromSettingsDefault2() throws MojoExecutionException {
setupServers();
AuthConfig config = factory.createAuthConfig(isPush, false, null, settings, "tanja", null);
assertNotNull(config);
verifyAuthConfig(config, "tanja", "doublesecret", "tanja@jolokia.org");
}
use of io.fabric8.docker.api.model.AuthConfig in project docker-maven-plugin by fabric8io.
the class AuthConfigFactoryTest method testFromSettingsSimple.
@Test
public void testFromSettingsSimple() throws MojoExecutionException {
setupServers();
AuthConfig config = factory.createAuthConfig(isPush, false, null, settings, "roland", "test.org");
assertNotNull(config);
verifyAuthConfig(config, "roland", "secret", "roland@jolokia.org");
}
Aggregations