Search in sources :

Example 1 with SystemPropertyCredentialsProvider

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

the class AWSGeneralUtilTest method testGetCredentialsProviderSystemProperties.

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

Aggregations

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