Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aws KMS acceptance test fix #910

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ void setupAwsResources() {
void keysAreLoadedFromAwsKmsAndReportedByPublicApi(final boolean useConfigFile) {
final AwsVaultParameters awsVaultParameters =
AwsVaultParametersBuilder.anAwsParameters()
.withEnabled(true)
.withAuthenticationMode(AwsAuthenticationMode.SPECIFIED)
.withRegion(AWS_REGION)
.withAccessKeyId(RO_AWS_ACCESS_KEY_ID)
Expand Down Expand Up @@ -150,6 +151,7 @@ void healthCheckErrorCountWhenInvalidCredentialsAreUsed() {
final boolean useConfigFile = false;
final AwsVaultParameters invalidCredsParams =
AwsVaultParametersBuilder.anAwsParameters()
.withEnabled(true)
.withAuthenticationMode(AwsAuthenticationMode.SPECIFIED)
.withRegion("us-east-2")
.withAccessKeyId("invalid")
Expand Down Expand Up @@ -195,6 +197,7 @@ void keysAreLoadedFromAwsKmsWithEnvironmentAuthModeAndReportedByPublicApi(
final boolean useConfigFile) {
final AwsVaultParameters awsVaultParameters =
AwsVaultParametersBuilder.anAwsParameters()
.withEnabled(true)
.withAuthenticationMode(AwsAuthenticationMode.ENVIRONMENT)
.withTagNamesFilter(List.of("TagName2", "TagName3"))
.withTagValuesFilter(List.of("TagValue0", "TagValue2", "TagValue3"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ void setupAwsResources() {
void secretsAreLoadedFromAWSSecretsManagerAndReportedByPublicApi(final boolean useConfigFile) {
final AwsVaultParameters awsVaultParameters =
AwsVaultParametersBuilder.anAwsParameters()
.withEnabled(true)
.withAuthenticationMode(AwsAuthenticationMode.SPECIFIED)
.withRegion(AWS_REGION)
.withAccessKeyId(RO_AWS_ACCESS_KEY_ID)
Expand Down Expand Up @@ -149,6 +150,7 @@ void healthCheckErrorCountWhenInvalidCredentialsAreUsed() {
final boolean useConfigFile = false;
final AwsVaultParameters invalidCredsParams =
AwsVaultParametersBuilder.anAwsParameters()
.withEnabled(true)
.withAuthenticationMode(AwsAuthenticationMode.SPECIFIED)
.withRegion("us-east-2")
.withAccessKeyId("invalid")
Expand Down Expand Up @@ -181,6 +183,7 @@ void secretsAreLoadedFromAWSSecretsManagerWithEnvironmentAuthModeAndReportedByPu
final boolean useConfigFile) {
final AwsVaultParameters awsVaultParameters =
AwsVaultParametersBuilder.anAwsParameters()
.withEnabled(true)
.withAuthenticationMode(AwsAuthenticationMode.ENVIRONMENT)
.withPrefixesFilter(List.of(awsSecretsManagerUtil.getSecretsManagerPrefix()))
.withTagNamesFilter(List.of("TagName2", "TagName3"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void setupAwsResources() {
void secretsAreLoadedFromAWSSecretsManagerAndReportedByPublicApi(final boolean useConfigFile) {
final AwsVaultParameters awsVaultParameters =
AwsVaultParametersBuilder.anAwsParameters()
.withEnabled(true)
.withAuthenticationMode(AwsAuthenticationMode.SPECIFIED)
.withRegion(AWS_REGION)
.withAccessKeyId(RO_AWS_ACCESS_KEY_ID)
Expand Down