Search in sources :

Example 1 with EnvironmentVariableCredentialsProvider

use of software.amazon.awssdk.auth.credentials.EnvironmentVariableCredentialsProvider in project flink by apache.

the class AWSGeneralUtilTest method testGetCredentialsProviderEnvironmentVariables.

@Test
public void testGetCredentialsProviderEnvironmentVariables() {
    Properties properties = TestUtil.properties(AWS_CREDENTIALS_PROVIDER, "ENV_VAR");
    AwsCredentialsProvider credentialsProvider = AWSGeneralUtil.getCredentialsProvider(properties);
    assertTrue(credentialsProvider instanceof EnvironmentVariableCredentialsProvider);
}
Also used : EnvironmentVariableCredentialsProvider(software.amazon.awssdk.auth.credentials.EnvironmentVariableCredentialsProvider) AwsCredentialsProvider(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider) Properties(java.util.Properties) Test(org.junit.Test)

Aggregations

Properties (java.util.Properties)1 Test (org.junit.Test)1 AwsCredentialsProvider (software.amazon.awssdk.auth.credentials.AwsCredentialsProvider)1 EnvironmentVariableCredentialsProvider (software.amazon.awssdk.auth.credentials.EnvironmentVariableCredentialsProvider)1