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

Remove references to deleted compute images in multiple tests #8508

Conversation

modular-magician
Copy link
Collaborator

There are multiple tests that refer to preconfigured images in the bosh-gce-raw-stemcells storage bucket. That bucket was deleted recently, so the tests began failing. That bucket was at least five years old and we never controlled it (bosh is a Cloud Foundry tool), so it was bound to happen.

Replacing the missing bucket with another preconfigured bucket will just kick the can down the road, so the tests are updated to no longer require one. There's three different fixes applied in this PR:

  • Where possible, the dependency on the google_compute_image resource was removed. These are tests that are not testing google_compute_image at all (and were likely copied and pasted from other tests that do).
  • Uploading and referencing a raw-disk-image.tar.gz file, which is a valid but small disk image (it's mostly zeros so it compresses down to about 3KB). The tests using this method are replicating their earlier behavior, but without the preconfigured bucket.
  • For generated tests, a new disk is created and the google_compute_image references that disk. This is a bit slower than the second method but doesn't rely on a test fixture so the tests can continue to be generated.

Fixes hashicorp/terraform-provider-google#19885
Fixes hashicorp/terraform-provider-google#19729

Release Note Template for Downstream PRs (will be copied)


Derived from GoogleCloudPlatform/magic-modules#12062

[upstream:cdd858547166aefcd00e45d209f6b31d63d569dc]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit e0d1488 into hashicorp:main Oct 24, 2024
4 checks passed
@modular-magician modular-magician deleted the downstream-pr-cdd858547166aefcd00e45d209f6b31d63d569dc branch November 16, 2024 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant