-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add support for setting Pub/Sub subscription filename_datetime_format #10713
Add support for setting Pub/Sub subscription filename_datetime_format #10713
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @zli82016, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccPubsubSubscription_pubsubSubscriptionPushCloudstorageAvroExample|TestAccPubsubSubscription_pubsubSubscriptionPushCloudstorageExample |
|
@lahuang4 , thanks for adding the new field. Can you please add the update test for this new field in the file https://github.com/GoogleCloudPlatform/magic-modules/blob/main/mmv1/third_party/terraform/services/pubsub/resource_pubsub_subscription_test.go? This is the documentation how to add update test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update test is needed.
Done, thanks for linking to the docs for how to add them! Ran the new test following https://googlecloudplatform.github.io/magic-modules/develop/test/run-tests/: $ make testacc TEST=./google/services/pubsub TESTARGS='-run=TestAccPubsubSubscriptionCloudStorage_update'
TF_ACC=1 TF_SCHEMA_PANIC_ON_ERROR=1 go test ./google/services/pubsub -v -run=TestAccPubsubSubscriptionCloudStorage_update -timeout 240m -ldflags="-X=github.com/hashicorp/terraform-provider-google/version.ProviderVersion=acc"
=== RUN TestAccPubsubSubscriptionCloudStorage_update
=== PAUSE TestAccPubsubSubscriptionCloudStorage_update
=== CONT TestAccPubsubSubscriptionCloudStorage_update
--- PASS: TestAccPubsubSubscriptionCloudStorage_update (41.50s)
PASS
ok github.com/hashicorp/terraform-provider-google/google/services/pubsub 41.622s |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccPubsubSubscriptionCloudStorage_update |
|
Hm, the VCR test failed the new update test with:
I thought that providing the Storage Admin permission at the project level would do it:
I see that some of the other tests grant the permission at the bucket level. I'll give that a try. |
Yes, you can copy the generated test example here |
…age subscription fields
Thanks for the tip! Looking at the generated test example, I think the issue might have been that I missed the |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: Click here to see the affected service packages
Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccPubsubSubscriptionCloudStorage_update |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the test passed. Thanks for adding the test. LGTM.
…GoogleCloudPlatform#10713) Co-authored-by: Lauren Huang <[email protected]>
…GoogleCloudPlatform#10713) Co-authored-by: Lauren Huang <[email protected]>
…GoogleCloudPlatform#10713) Co-authored-by: Lauren Huang <[email protected]>
…GoogleCloudPlatform#10713) Co-authored-by: Lauren Huang <[email protected]>
…GoogleCloudPlatform#10713) Co-authored-by: Lauren Huang <[email protected]>
Fixes hashicorp/terraform-provider-google#17911.
Release Note Template for Downstream PRs (will be copied)