Skip to content

Tavasyag/storagebucket list#17500

Merged
BBBmau merged 11 commits into
GoogleCloudPlatform:mainfrom
tavasyag:tavasyag/storagebucket_list
May 21, 2026
Merged

Tavasyag/storagebucket list#17500
BBBmau merged 11 commits into
GoogleCloudPlatform:mainfrom
tavasyag:tavasyag/storagebucket_list

Conversation

@tavasyag

@tavasyag tavasyag commented May 10, 2026

Copy link
Copy Markdown
Contributor

This adds handwritten list-resource support for google_storage_bucket.

Fixes hashicorp/terraform-provider-google#27367

Changes in this PR:

  • add handwritten google_storage_bucket list resource
  • add acceptance coverage for terraform query identity results
  • add list-resource documentation for google_storage_bucket

Testing

make testacc TEST=./google/services/storage TESTARGS='-run=TestAccStorageBucketListResource_queryIdentity$$'

=== RUN   TestAccStorageBucketListResource_queryIdentity
=== PAUSE TestAccStorageBucketListResource_queryIdentity
=== CONT  TestAccStorageBucketListResource_queryIdentity
--- PASS: TestAccStorageBucketListResource_queryIdentity (7.28s)
PASS
ok  	github.com/hashicorp/terraform-provider-google/google/services/storage	8.312s

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

'list_google_storage_bucket'

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label May 10, 2026
@tavasyag tavasyag marked this pull request as ready for review May 11, 2026 22:00
@modular-magician modular-magician added service/storage and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels May 12, 2026
@modular-magician

modular-magician commented May 12, 2026

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 83e23e5:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 4 files changed, 417 insertions(+), 1 deletion(-)
google-beta provider View Diff 4 files changed, 417 insertions(+), 1 deletion(-)

Test report

Analytics

Total Tests Passed Skipped Affected
134 122 11 1
Affected Service Packages
  • storage

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccStorageBucketListResource_queryIdentity

View the build log


Step 2: Recording Mode

Recording Mode Replaying Rerun Test Name
✅ Log TestAccStorageBucketListResource_queryIdentity

🟢 All tests passed!

View the build log or the debug logs folder for detailed results.

@tavasyag, @kautikdk VCR tests complete for 83e23e5!

@modular-magician modular-magician requested a review from kautikdk May 12, 2026 14:25

@BBBmau BBBmau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the refactors on how we introduce list resources really made this easier to review compare to before 😄

Comment thread mmv1/third_party/terraform/services/storage/list_google_storage_bucket.go.tmpl Outdated
Comment thread mmv1/third_party/terraform/services/storage/list_google_storage_bucket.go.tmpl Outdated
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label May 13, 2026
@kautikdk

Copy link
Copy Markdown
Member

I am not very much familiar with the list-resources so requesting @BBBmau for full review.
Thanks @tavasyag for the contribution! Can you please create one GitHub issue here: https://github.com/hashicorp/terraform-provider-google/issues to track the work and to avoid duplicate effort by other contributors?

@modular-magician modular-magician removed the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label May 13, 2026
@modular-magician

modular-magician commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit fbc06b2:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 6 files changed, 507 insertions(+), 4 deletions(-)
google-beta provider View Diff 6 files changed, 507 insertions(+), 4 deletions(-)

Test report

Analytics

Total Tests Passed Skipped Affected
135 123 11 1
Affected Service Packages
  • storage

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccStorageBucket_importBlockWithResourceIdentity

View the build log


Step 2: Recording Mode

Recording Mode Replaying Rerun Test Name
✅ Log TestAccStorageBucket_importBlockWithResourceIdentity

🟢 All tests passed!

View the build log or the debug logs folder for detailed results.

@tavasyag, @kautikdk VCR tests complete for fbc06b2!

@tavasyag

Copy link
Copy Markdown
Contributor Author

@tavasyag tavasyag force-pushed the tavasyag/storagebucket_list branch from fbc06b2 to 739c9bb Compare May 19, 2026 20:00
@modular-magician

modular-magician commented May 19, 2026

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 739c9bb:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 6 files changed, 457 insertions(+), 4 deletions(-)
google-beta provider View Diff 6 files changed, 457 insertions(+), 4 deletions(-)

Test report

Analytics

Total Tests Passed Skipped Affected
135 124 11 0
Affected Service Packages
  • storage

Learn how VCR tests work


Step 1: Replaying Mode

🟢 All tests passed in Replaying mode! No Recording was needed.

View the replaying VCR build log

@tavasyag, @kautikdk VCR tests complete for 739c9bb!

Comment thread mmv1/third_party/terraform/services/storage/resource_storage_bucket.go.tmpl Outdated
@modular-magician

modular-magician commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 12bd3ee:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 6 files changed, 446 insertions(+), 4 deletions(-)
google-beta provider View Diff 6 files changed, 446 insertions(+), 4 deletions(-)

Test report

Analytics

Total Tests Passed Skipped Affected
135 123 11 1
Affected Service Packages
  • storage

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit.

Click here to see the affected tests
  • TestAccStorageBucket_importBlockWithResourceIdentity

View the replaying VCR build log


Step 2: Recording Mode

Recording Mode Replaying Rerun Test Name
❌ Error · Log - TestAccStorageBucket_importBlockWithResourceIdentity

Caution

Issues requiring attention before PR completion

🔴 Initial Recording Failed: Some tests failed during the recording step. See the table above for details.

Please address these issues to complete your PR. If you believe these detections are incorrect or unrelated to your change, please raise the concern with your reviewer.

View the recording VCR build log or the debug logs folder for detailed results.

@tavasyag, @kautikdk VCR tests complete for 12bd3ee!

@modular-magician

modular-magician commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit fe3085b:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 6 files changed, 446 insertions(+), 4 deletions(-)
google-beta provider View Diff 6 files changed, 446 insertions(+), 4 deletions(-)

Test report

Analytics

Total Tests Passed Skipped Affected
135 124 11 0
Affected Service Packages
  • storage

Learn how VCR tests work


Step 1: Replaying Mode

🟢 All tests passed in Replaying mode! No Recording was needed.

View the replaying VCR build log

@tavasyag, @kautikdk VCR tests complete for fe3085b!

@BBBmau BBBmau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work!

@BBBmau BBBmau added this pull request to the merge queue May 21, 2026
Merged via the queue into GoogleCloudPlatform:main with commit 9297870 May 21, 2026
25 checks passed
MikolajLuczko pushed a commit to MikolajLuczko/magic-modules that referenced this pull request May 28, 2026
Co-authored-by: Tavasya Ganpati <tavasyag@hashicorp.com>
gitika-yadav pushed a commit to gitika-yadav/magic-modules that referenced this pull request Jun 10, 2026
Co-authored-by: Tavasya Ganpati <tavasyag@hashicorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List resource: google_storage_bucket

5 participants