public class ContainerCredentialsProviderTest extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static WireMockRule | mockServer | 
| Constructor and Description | 
|---|
| ContainerCredentialsProviderTest() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | getCredentialsWithCorruptResponseDoesNotIncludeCredentialsInExceptionMessage()Tests that the getCredentials won't leak credentials data if the response from ECS is corrupted. | 
| void | refreshCredentials() | 
| static void | setup() | 
| void | testEnvVariableNotSet()Tests that when "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" is not set,
 throws an AmazonClientException. | 
| void | testGetCredentialsReturnsValidResponseFromEcsEndpoint()Tests that the getCredentials parses the response properly when
 it receives a valid 200 response from endpoint. | 
| void | testGetCredentialsThrowsAceFor404ErrorResponse()Tests when the response is 404 Not found,
 then getCredentials method throws an AmazonClientException. | 
| void | testGetCredentialsThrowsAseForNon200AndNon404ErrorResponse()Tests when the request to http endpoint returns a non-200 or non-404 response,
 then getCredentials method throws an AmazonServiceException. | 
public static void setup()
public void refreshCredentials()
public void testEnvVariableNotSet()
public void testGetCredentialsReturnsValidResponseFromEcsEndpoint()
public void getCredentialsWithCorruptResponseDoesNotIncludeCredentialsInExceptionMessage()
public void testGetCredentialsThrowsAceFor404ErrorResponse()
public void testGetCredentialsThrowsAseForNon200AndNon404ErrorResponse()
Copyright © 2022. All rights reserved.