Skip to content

Commit

Permalink
Make names of resources in pubsub iam tests sweepable (#5395)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>

Co-authored-by: emily <[email protected]>
  • Loading branch information
modular-magician and emilymye committed Jan 13, 2020
1 parent c5e1e21 commit f01bb32
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions google/resource_pubsub_subscription_iam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
func TestAccPubsubSubscriptionIamBinding(t *testing.T) {
t.Parallel()

topic := "test-topic-iam-" + acctest.RandString(10)
subscription := "test-subscription-iam-" + acctest.RandString(10)
account := "test-iam-" + acctest.RandString(10)
topic := "tf-test-topic-iam-" + acctest.RandString(10)
subscription := "tf-test-sub-iam-" + acctest.RandString(10)
account := "tf-test-iam-" + acctest.RandString(10)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down Expand Up @@ -50,9 +50,9 @@ func TestAccPubsubSubscriptionIamBinding(t *testing.T) {
func TestAccPubsubSubscriptionIamMember(t *testing.T) {
t.Parallel()

topic := "test-topic-iam-" + acctest.RandString(10)
subscription := "test-subscription-iam-" + acctest.RandString(10)
account := "test-iam-" + acctest.RandString(10)
topic := "tf-test-topic-iam-" + acctest.RandString(10)
subscription := "tf-test-sub-iam-" + acctest.RandString(10)
account := "tf-test-iam-" + acctest.RandString(10)
accountEmail := fmt.Sprintf("%s@%s.iam.gserviceaccount.com", account, getTestProjectFromEnv())

resource.Test(t, resource.TestCase{
Expand All @@ -79,9 +79,9 @@ func TestAccPubsubSubscriptionIamMember(t *testing.T) {
func TestAccPubsubSubscriptionIamPolicy(t *testing.T) {
t.Parallel()

topic := "test-topic-iam-" + acctest.RandString(10)
subscription := "test-subscription-iam-" + acctest.RandString(10)
account := "test-iam-" + acctest.RandString(10)
topic := "tf-test-topic-iam-" + acctest.RandString(10)
subscription := "tf-test-sub-iam-" + acctest.RandString(10)
account := "tf-test-iam-" + acctest.RandString(10)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down
16 changes: 8 additions & 8 deletions google/resource_pubsub_topic_iam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
func TestAccPubsubTopicIamBinding(t *testing.T) {
t.Parallel()

topic := "test-topic-iam-" + acctest.RandString(10)
account := "test-topic-iam-" + acctest.RandString(10)
topic := "tf-test-topic-iam-" + acctest.RandString(10)
account := "tf-test-topic-iam-" + acctest.RandString(10)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down Expand Up @@ -55,8 +55,8 @@ func TestAccPubsubTopicIamBinding(t *testing.T) {
func TestAccPubsubTopicIamBinding_topicName(t *testing.T) {
t.Parallel()

topic := "test-topic-iam-" + acctest.RandString(10)
account := "test-topic-iam-" + acctest.RandString(10)
topic := "tf-test-topic-iam-" + acctest.RandString(10)
account := "tf-test-topic-iam-" + acctest.RandString(10)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -77,8 +77,8 @@ func TestAccPubsubTopicIamBinding_topicName(t *testing.T) {
func TestAccPubsubTopicIamMember(t *testing.T) {
t.Parallel()

topic := "test-topic-iam-" + acctest.RandString(10)
account := "test-topic-iam-" + acctest.RandString(10)
topic := "tf-test-topic-iam-" + acctest.RandString(10)
account := "tf-test-topic-iam-" + acctest.RandString(10)
accountEmail := fmt.Sprintf("%s@%s.iam.gserviceaccount.com", account, getTestProjectFromEnv())

resource.Test(t, resource.TestCase{
Expand All @@ -105,8 +105,8 @@ func TestAccPubsubTopicIamMember(t *testing.T) {
func TestAccPubsubTopicIamPolicy(t *testing.T) {
t.Parallel()

topic := "test-topic-iam-" + acctest.RandString(10)
account := "test-topic-iam-" + acctest.RandString(10)
topic := "tf-test-topic-iam-" + acctest.RandString(10)
account := "tf-test-topic-iam-" + acctest.RandString(10)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down

0 comments on commit f01bb32

Please sign in to comment.