fix (compute): enable_proxy_protocol not being disableable on google_compute_service_attachment.#18194
Conversation
Add 'send_empty_value' option to ServiceAttachment.yaml
Enable send_empty_value in ServiceAttachment
|
Googlers: For automatic test runs see go/terraform-auto-test-runs. @BBBmau, 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. |
|
Hello, can someone take a look to this PR. As far as I checked should be good to go. Thanks! |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit eab9478: Diff reportYour PR generated the following diffs in downstream repositories:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode Action takenFound 13 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
View the replaying VCR build log Step 2: Recording Mode
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. @ricardgardella, @BBBmau VCR tests complete for eab9478! |
| { | ||
| // Regression test: disabling enable_proxy_protocol after it was enabled must | ||
| // actually be sent to the API (it's a zero-valued bool), not silently dropped. | ||
| Config: testAccComputeServiceAttachment_serviceAttachmentBasicExampleUpdate(context, false, 0, false), | ||
| ConfigPlanChecks: resource.ConfigPlanChecks{ | ||
| PreApply: []plancheck.PlanCheck{ | ||
| plancheck.ExpectResourceAction("google_compute_service_attachment.psc_ilb_service_attachment", plancheck.ResourceActionUpdate), | ||
| }, | ||
| }, | ||
| Check: resource.TestCheckResourceAttr( | ||
| "google_compute_service_attachment.psc_ilb_service_attachment", "enable_proxy_protocol", "false"), | ||
| }, | ||
| { | ||
| ResourceName: "google_compute_service_attachment.psc_ilb_service_attachment", | ||
| ImportState: true, | ||
| ImportStateVerify: true, | ||
| ImportStateVerifyIgnore: []string{"target_service", "region"}, | ||
| }, |
There was a problem hiding this comment.
this configuration is have an affect on the send_propagated_connection_limit_if_zero field since it's set to true in the configuration but then changed to false due to enable_proxy_protocol being set to false
stdout:
=== RUN TestAccComputeServiceAttachment_serviceAttachmentBasicExampleUpdate
=== PAUSE TestAccComputeServiceAttachment_serviceAttachmentBasicExampleUpdate
=== CONT TestAccComputeServiceAttachment_serviceAttachmentBasicExampleUpdate
resource_compute_service_attachment_test.go:39: Step 9/9 error running import: ImportStateVerify attributes not equivalent. Difference is shown below. The - symbol indicates attributes missing after import.
  map[string]string{
-Â "send_propagated_connection_limit_if_zero": "true",
+Â "send_propagated_connection_limit_if_zero": "false",
  }
--- FAIL: TestAccComputeServiceAttachment_serviceAttachmentBasicExampleUpdate (237.48s)
FAIL
FAIL github.com/hashicorp/terraform-provider-google-beta/google-beta/services/compute 237.576s
FAIL
stderr:There was a problem hiding this comment.
Working on it. Will mention you once it's ready and tests pass.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit cb6db71: Diff reportYour PR generated the following diffs in downstream repositories:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode 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 tests
View the replaying VCR build log Step 2: Recording Mode
🟢 All tests passed! View the recording VCR build log or the debug logs folder for detailed results. @ricardgardella, @BBBmau VCR tests complete for cb6db71! |
Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.