From 91a1097041d628672c1d7355637b36ada18ae42a Mon Sep 17 00:00:00 2001 From: clint shryock Date: Tue, 17 May 2016 10:40:42 -0500 Subject: [PATCH] provider/aws: Randomize key names in KMS alias test --- builtin/providers/aws/resource_aws_kms_alias_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/builtin/providers/aws/resource_aws_kms_alias_test.go b/builtin/providers/aws/resource_aws_kms_alias_test.go index 65349fda2..c858885eb 100644 --- a/builtin/providers/aws/resource_aws_kms_alias_test.go +++ b/builtin/providers/aws/resource_aws_kms_alias_test.go @@ -5,6 +5,7 @@ import ( "testing" "time" + "github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" ) @@ -160,10 +161,10 @@ resource "aws_kms_key" "single" { } resource "aws_kms_alias" "one" { - name = "alias/tf-acc-key-alias-one" + name = "alias/tf-acc-key-alias-%s" target_key_id = "${aws_kms_key.single.key_id}" } resource "aws_kms_alias" "two" { - name = "alias/tf-acc-key-alias-two" + name = "alias/tf-acc-key-alias-%s" target_key_id = "${aws_kms_key.single.key_id}" -}`, kmsAliasTimestamp) +}`, kmsAliasTimestamp, acctest.RandString(5), acctest.RandString(5))