Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provider/aws: Randomize key names in KMS alias test
Browse files Browse the repository at this point in the history
catsby authored and cristicalin committed May 24, 2016

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent e6b5106 commit 5fae667
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions builtin/providers/aws/resource_aws_kms_alias_test.go
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 5fae667

Please sign in to comment.