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

Allow sending false for enabled field under IAP message for resource google_compute_backend_service and resource google_compute_region_backend_service #11907

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

arnabadg-google
Copy link
Contributor

@arnabadg-google arnabadg-google commented Oct 3, 2024

fixes hashicorp/terraform-provider-google#19596

Release Note Template for Downstream PRs (will be copied)

compute: fixed an issue in `google_compute_backend_service` and `google_compute_region_backend_service` to allow sending `false` for `iap.enabled`

Copy link

github-actions bot commented Oct 3, 2024

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@slevenick, 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.

@modular-magician
Copy link
Collaborator

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

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 2 files changed, 2 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 2 files changed, 2 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 2 insertions(+), 2 deletions(-))

Copy link
Contributor

@slevenick slevenick left a comment

Choose a reason for hiding this comment

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

Can you add a test that uses this? It would show up if you have a test where you set enabled = true and then have another step that sets enabled = false. Switching from true --> false forces sending the false value for everything to pass

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1026
Passed tests: 952
Skipped tests: 74
Affected tests: 0

Click here to see the affected service packages
  • compute

🟢 All tests passed!

View the build log

@arnabadg-google
Copy link
Contributor Author

Can you add a test that uses this? It would show up if you have a test where you set enabled = true and then have another step that sets enabled = false. Switching from true --> false forces sending the false value for everything to pass

Added update test

@modular-magician
Copy link
Collaborator

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

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 138 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 4 files changed, 138 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 2 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

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

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 140 insertions(+), 2 deletions(-))
google-beta provider: Diff ( 4 files changed, 140 insertions(+), 2 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 2 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1028
Passed tests: 952
Skipped tests: 74
Affected tests: 2

Click here to see the affected service packages
  • compute

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeBackendService_updateIAPEnabled[Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccComputeRegionBackendService_updateIAPEnabled[Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 1028
Passed tests: 952
Skipped tests: 74
Affected tests: 2

Click here to see the affected service packages
  • compute

Action taken

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

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccComputeBackendService_updateIAPEnabled[Debug log]
TestAccComputeRegionBackendService_updateIAPEnabled[Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

@slevenick slevenick merged commit 34be5c1 into GoogleCloudPlatform:main Oct 9, 2024
14 checks passed
trodge pushed a commit to trodge/magic-modules that referenced this pull request Oct 10, 2024
…rce google_compute_backend_service and resource google_compute_region_backend_service (GoogleCloudPlatform#11907)
niharika-98 pushed a commit to niharika-98/magic-modules that referenced this pull request Oct 10, 2024
…rce google_compute_backend_service and resource google_compute_region_backend_service (GoogleCloudPlatform#11907)
gontech pushed a commit to gontech/magic-modules that referenced this pull request Oct 16, 2024
…rce google_compute_backend_service and resource google_compute_region_backend_service (GoogleCloudPlatform#11907)
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Oct 23, 2024
…rce google_compute_backend_service and resource google_compute_region_backend_service (GoogleCloudPlatform#11907)
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Oct 24, 2024
…rce google_compute_backend_service and resource google_compute_region_backend_service (GoogleCloudPlatform#11907)
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request Nov 5, 2024
…rce google_compute_backend_service and resource google_compute_region_backend_service (GoogleCloudPlatform#11907)
akshat-jindal-nit pushed a commit to akshat-jindal-nit/magic-modules that referenced this pull request Nov 18, 2024
…rce google_compute_backend_service and resource google_compute_region_backend_service (GoogleCloudPlatform#11907)
amanMahendroo pushed a commit to amanMahendroo/magic-modules that referenced this pull request Dec 17, 2024
…rce google_compute_backend_service and resource google_compute_region_backend_service (GoogleCloudPlatform#11907)
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.

google_compute_backend_service: enabled iap can't be disabled
3 participants