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

Save name-only instead of link path in pubsub_topic #424

Merged
merged 1 commit into from
Sep 13, 2017

Conversation

rosbo
Copy link
Contributor

@rosbo rosbo commented Sep 13, 2017

Fixes #423.

Before:

------- Stdout: -------
=== RUN   TestAccPubsubSubscriptionCreate
--- FAIL: TestAccPubsubSubscriptionCreate (5.55s)
    testing.go:434: Step 0 error: After applying this step and refreshing, the plan was not empty:
        
        DIFF:
        
        DESTROY/CREATE: google_pubsub_subscription.foobar_sub
          ack_deadline_seconds: "20" => "20"
          name:                 "pssub-test-pmz09wu8bo" => "pssub-test-pmz09wu8bo"
          path:                 "projects/*******/subscriptions/pssub-test-pmz09wu8bo" => "<computed>"
          topic:                "pssub-test-6rnbrodpv7" => "projects/*******/topics/pssub-test-6rnbrodpv7" (forces new resource)
        
        STATE:
        
        google_pubsub_subscription.foobar_sub:
          ID = projects/*******/subscriptions/pssub-test-pmz09wu8bo
          ack_deadline_seconds = 20
          name = pssub-test-pmz09wu8bo
          path = projects/*******/subscriptions/pssub-test-pmz09wu8bo
          topic = pssub-test-6rnbrodpv7
        
          Dependencies:
            google_pubsub_topic.foobar_sub
        google_pubsub_topic.foobar_sub:
          ID = projects/*******/topics/pssub-test-6rnbrodpv7
          name = projects/*******/topics/pssub-test-6rnbrodpv7
FAIL

After this PR:

TF_ACC=1 go test ./google -v -run TestAccPubsub -timeout 120m
=== RUN   TestAccPubsubTopic_import
--- PASS: TestAccPubsubTopic_import (2.87s)
=== RUN   TestAccPubsubSubscriptionCreate
--- PASS: TestAccPubsubSubscriptionCreate (4.89s)
=== RUN   TestAccPubsubTopicCreate
--- PASS: TestAccPubsubTopicCreate (2.15s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	10.044s

@selmanj
Copy link
Contributor

selmanj commented Sep 13, 2017

I just ran into this today and was going to file a bug, but you beat me to it! Nice work!

@rosbo rosbo merged commit 870f456 into hashicorp:master Sep 13, 2017
@rosbo rosbo deleted the fix_TestAccPubsubSubscriptionCreate branch September 13, 2017 23:29
negz pushed a commit to negz/terraform-provider-google that referenced this pull request Oct 17, 2017
modular-magician pushed a commit to modular-magician/terraform-provider-google that referenced this pull request Sep 27, 2019
…nceGroupConfig (hashicorp#424)

* Add support for minCpuPlatform param in InstanceGroupConfig

This is a new feature in the GCloud Beta client that lets you specify
the CPU architecture for all nodes in each instance group.

* Add documentation for resource_dataproc_cluster min_cpu_platform

* mark field as beta in docs

* add beta note for both min_cpu_platforms
@ghost
Copy link

ghost commented Mar 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix failling test: TestAccPubsubSubscriptionCreate
2 participants