Search in sources :

Example 1 with WebIdentityTokenCredentialsProvider

use of com.amazonaws.auth.WebIdentityTokenCredentialsProvider in project flink by apache.

the class AWSUtilTest method testGetCredentialsProvider.

@Test
public void testGetCredentialsProvider() {
    Properties testConfig = new Properties();
    testConfig.setProperty(AWS_CREDENTIALS_PROVIDER, "WEB_IDENTITY_TOKEN");
    AWSCredentialsProvider credentialsProvider = AWSUtil.getCredentialsProvider(testConfig);
    assertTrue(credentialsProvider instanceof WebIdentityTokenCredentialsProvider);
}
Also used : WebIdentityTokenCredentialsProvider(com.amazonaws.auth.WebIdentityTokenCredentialsProvider) Properties(java.util.Properties) AWSCredentialsProvider(com.amazonaws.auth.AWSCredentialsProvider) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) Test(org.junit.Test)

Aggregations

AWSCredentialsProvider (com.amazonaws.auth.AWSCredentialsProvider)1 WebIdentityTokenCredentialsProvider (com.amazonaws.auth.WebIdentityTokenCredentialsProvider)1 Properties (java.util.Properties)1 Test (org.junit.Test)1 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)1