Skip to content

Commit

Permalink
feat(security-keys): Add unit test in apps-devstg/us-east-1/security-…
Browse files Browse the repository at this point in the history
…keys environment
  • Loading branch information
renemontilva committed Dec 23, 2024
1 parent 2ddb85d commit 80216e0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps-devstg/us-east-1/security-keys/tests/kms.tftest.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
mock_provider "aws" {}
variables {
kms_key_name = "test-kms"
project = "bb"
environment = "test"
region = "us-east-1"
}

run "valid_key_alias_name" {
assert {
condition = module.kms_key.alias_name == "alias/bb_test_test-kms_key"
error_message = "The KMS key alias name is not correct"
}
}


0 comments on commit 80216e0

Please sign in to comment.