Skip to content

Conversation

@daniel-cit
Copy link
Contributor

This PR creates simple wrapper modules for ADC

@daniel-cit
Copy link
Contributor Author

/gcbrun

Copy link
Collaborator

@apeabody apeabody left a comment

Choose a reason for hiding this comment

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

Thanks @daniel-cit!

@apeabody apeabody self-assigned this Aug 5, 2025
@daniel-cit
Copy link
Contributor Author

Hi @apeabody
how can I fix this error?

Step #37 - "verify upstream-nameservers-local":         	Error:      	Not equal: 
Step #37 - "verify upstream-nameservers-local":         	            	expected: "RUNNING"
Step #37 - "verify upstream-nameservers-local":         	            	actual  : "RECONCILING"
Step #37 - "verify upstream-nameservers-local":         	            	
Step #37 - "verify upstream-nameservers-local":         	            	Diff:
Step #37 - "verify upstream-nameservers-local":         	            	--- Expected
Step #37 - "verify upstream-nameservers-local":         	            	+++ Actual
Step #37 - "verify upstream-nameservers-local":         	            	@@ -1 +1 @@
Step #37 - "verify upstream-nameservers-local":         	            	-RUNNING
Step #37 - "verify upstream-nameservers-local":         	            	+RECONCILING
Step #37 - "verify upstream-nameservers-local":         	Test:       	TestUpstreamNameservers
Step #37 - "verify upstream-nameservers-local":         	Messages:   	For path "status" expected "RECONCILING" to match fixture "RUNNING"

should I remove the status from the golden file and test the status like this?

assert.Contains([]string{"RUNNING", "RECONCILING"}, op.Get("status").String())

@apeabody
Copy link
Collaborator

apeabody commented Aug 5, 2025

Hi @apeabody how can I fix this error?

Step #37 - "verify upstream-nameservers-local":         	Error:      	Not equal: 
Step #37 - "verify upstream-nameservers-local":         	            	expected: "RUNNING"
Step #37 - "verify upstream-nameservers-local":         	            	actual  : "RECONCILING"
Step #37 - "verify upstream-nameservers-local":         	            	
Step #37 - "verify upstream-nameservers-local":         	            	Diff:
Step #37 - "verify upstream-nameservers-local":         	            	--- Expected
Step #37 - "verify upstream-nameservers-local":         	            	+++ Actual
Step #37 - "verify upstream-nameservers-local":         	            	@@ -1 +1 @@
Step #37 - "verify upstream-nameservers-local":         	            	-RUNNING
Step #37 - "verify upstream-nameservers-local":         	            	+RECONCILING
Step #37 - "verify upstream-nameservers-local":         	Test:       	TestUpstreamNameservers
Step #37 - "verify upstream-nameservers-local":         	Messages:   	For path "status" expected "RECONCILING" to match fixture "RUNNING"

should I remove the status from the golden file and test the status like this?

assert.Contains([]string{"RUNNING", "RECONCILING"}, op.Get("status").String())

Hi @daniel-cit - Yes, this is becoming an increasing common, so let's do that. Thanks!

@daniel-cit daniel-cit marked this pull request as ready for review August 5, 2025 19:16
@daniel-cit daniel-cit requested review from a team and ericyz as code owners August 5, 2025 19:16
@apeabody
Copy link
Collaborator

apeabody commented Aug 5, 2025

Looks like we are seeing drift for in the new autopilot example's network:

Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: Terraform will perform the following actions:
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: 
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:   # module.example.module.gcp-network.module.subnets.google_compute_subnetwork.subnetwork["us-central1/autopilot-subnet"] will be updated in-place
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:   ~ resource "google_compute_subnetwork" "subnetwork" {
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:         id                         = "projects/ci-gke-6984750c-d3ac/regions/us-central1/subnetworks/autopilot-subnet"
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:         name                       = "autopilot-subnet"
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:         # (22 unchanged attributes hidden)
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: 
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:       - secondary_ip_range {
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:           - ip_cidr_range           = "10.2.0.0/17" -> null
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:           - range_name              = "gke-gke-autopilot-cluster-pods-9ef2a7f5" -> null
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:           - reserved_internal_range = "https://networkconnectivity.googleapis.com/v1/projects/ci-gke-6984750c-d3ac/locations/global/internalRanges/gke-gke-autopilot-cluster-pods-9ef2a7f5" -> null
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:         }
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: 
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:         # (2 unchanged blocks hidden)
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206:     }
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: 
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: Plan: 0 to add, 1 to change, 0 to destroy.
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: 
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: ─────────────────────────────────────────────────────────────────────────────
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: 
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: Note: You didn't use the -out option to save this plan, so Terraform can't
Step #52 - "verify gke-autopilot-cluster": TestGKEAutopilotCluster 2025-08-05T19:17:07Z command.go:206: guarantee to take exactly these actions if you run "terraform apply" now.
Step #52 - "verify gke-autopilot-cluster":     terraform.go:537: 
Step #52 - "verify gke-autopilot-cluster":         	Error Trace:	/builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/tft/terraform.go:537
Step #52 - "verify gke-autopilot-cluster":         	            				/workspace/test/integration/gke_autopilot_cluster/gke_autopilot_cluster_test.go:33
Step #52 - "verify gke-autopilot-cluster":         	            				/builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/tft/terraform.go:638
Step #52 - "verify gke-autopilot-cluster":         	            				/builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/tft/terraform.go:670
Step #52 - "verify gke-autopilot-cluster":         	            				/builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/utils/stages.go:31
Step #52 - "verify gke-autopilot-cluster":         	            				/builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/tft/terraform.go:670
Step #52 - "verify gke-autopilot-cluster":         	Error:      	Should not be: 2
Step #52 - "verify gke-autopilot-cluster":         	Test:       	TestGKEAutopilotCluster
Step #52 - "verify gke-autopilot-cluster":         	Messages:   	plan after apply should have no diff

@apeabody
Copy link
Collaborator

apeabody commented Aug 5, 2025

re-triggered in case it was transitory

@daniel-cit
Copy link
Contributor Author

@apeabody all green :)

Copy link
Collaborator

@apeabody apeabody left a comment

Choose a reason for hiding this comment

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

Thanks @daniel-cit!

@apeabody apeabody merged commit 1859b17 into terraform-google-modules:main Aug 5, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants