Skip to content

Commit 1e53630

Browse files
committed
validate all paths
1 parent e179ac9 commit 1e53630

File tree

7 files changed

+101
-130
lines changed

7 files changed

+101
-130
lines changed

test/fixtures/node_pool/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,7 @@ output "service_account" {
8383
output "registry_project_ids" {
8484
value = var.registry_project_ids
8585
}
86+
87+
output "random_string" {
88+
value = random_string.suffix.result
89+
}

test/fixtures/safer_cluster_iap_bastion/example.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
locals {
18-
test_command = "gcloud beta compute ssh ${module.example.bastion_name} --tunnel-through-iap --verbosity=error --project ${var.project_ids[1]} --zone ${module.example.bastion_zone} -q -- curl -sS https://${module.example.endpoint}/version -k"
18+
test_command = "gcloud beta compute ssh ${module.example.bastion_name} --tunnel-through-iap --verbosity=error --project ${var.project_ids[1]} --zone ${module.example.bastion_zone} -q --command='curl -sS https://${module.example.endpoint}/version -k'"
1919
}
2020

2121
module "example" {

test/integration/node_pool/node_pool_test.go

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,19 @@ package node_pool
1515

1616
import (
1717
"fmt"
18+
"slices"
1819
"testing"
1920
"time"
2021

22+
"github.com/GoogleCloudPlatform/cloud-foundation-toolkit/infra/blueprint-test/pkg/cai"
2123
"github.com/GoogleCloudPlatform/cloud-foundation-toolkit/infra/blueprint-test/pkg/gcloud"
2224
"github.com/GoogleCloudPlatform/cloud-foundation-toolkit/infra/blueprint-test/pkg/golden"
2325
"github.com/GoogleCloudPlatform/cloud-foundation-toolkit/infra/blueprint-test/pkg/tft"
26+
"github.com/GoogleCloudPlatform/cloud-foundation-toolkit/infra/blueprint-test/pkg/utils"
2427
"github.com/gruntwork-io/terratest/modules/k8s"
2528
"github.com/stretchr/testify/assert"
2629
"github.com/terraform-google-modules/terraform-google-kubernetes-engine/test/integration/testutils"
27-
gkeutils "github.com/terraform-google-modules/terraform-google-kubernetes-engine/test/integration/utils"
30+
"golang.org/x/sync/errgroup"
2831
)
2932

3033
func TestNodePool(t *testing.T) {
@@ -35,15 +38,18 @@ func TestNodePool(t *testing.T) {
3538
bpt.DefineVerify(func(assert *assert.Assertions) {
3639
// Skipping Default Verify as the Verify Stage fails due to change in Client Cert Token
3740
// bpt.DefaultVerify(assert)
38-
gkeutils.TGKEVerify(t, bpt, assert) // Verify Resources
41+
testutils.TGKEVerify(t, bpt, assert) // Verify Resources
3942

4043
projectId := bpt.GetStringOutput("project_id")
4144
location := bpt.GetStringOutput("location")
4245
clusterName := bpt.GetStringOutput("cluster_name")
46+
randomString := bpt.GetStringOutput("random_string")
47+
kubernetesEndpoint := bpt.GetStringOutput("kubernetes_endpoint")
48+
4349

4450
// CAI
4551
clusterResourceName := fmt.Sprintf("//container.googleapis.com/projects/%s/locations/%s/clusters/%s", projectId, location, clusterName)
46-
cluster := gkeutils.GetProjectResources(t, projectId, gkeutils.WithAssetTypes([]string{"container.googleapis.com/Cluster"})).Get("#(name=\"" + clusterResourceName + "\").resource.data")
52+
cluster := cai.GetProjectResources(t, projectId, cai.WithAssetTypes([]string{"container.googleapis.com/Cluster"})).Get("#(name=\"" + clusterResourceName + "\").resource.data")
4753

4854
// Equivalent gcloud describe command
4955
// cluster := gcloud.Runf(t, "container clusters describe %s --zone %s --project %s", clusterName, location, projectId)
@@ -74,6 +80,8 @@ func TestNodePool(t *testing.T) {
7480
golden.WithSanitizer(golden.StringSanitizer(projectId, "PROJECT_ID")),
7581
golden.WithSanitizer(golden.StringSanitizer(location, "LOCATION")),
7682
golden.WithSanitizer(golden.StringSanitizer(clusterName, "CLUSTER_NAME")),
83+
golden.WithSanitizer(golden.StringSanitizer(randomString, "RANDOM_STRING")),
84+
golden.WithSanitizer(golden.StringSanitizer(kubernetesEndpoint, "KUBERNETES_ENDPOINT")),
7785
)
7886
validateJSONPaths := []string{
7987
"autoscaling.autoprovisioningNodePoolDefaults.imageType",
@@ -92,6 +100,49 @@ func TestNodePool(t *testing.T) {
92100
g.JSONEq(assert, cluster, pth)
93101
}
94102

103+
fmt.Println("one path")
104+
g.JSONPathEqs(assert, cluster, []string{"autoscaling.autoprovisioningNodePoolDefaults.imageType"})
105+
106+
fmt.Println("multi path")
107+
g.JSONPathEqs(assert, cluster, validateJSONPaths)
108+
109+
fmt.Println("START all paths 1")
110+
// Test validating all Paths
111+
jsonPaths := utils.GetTerminalJSONPaths(cluster)
112+
113+
// List of paths exempt from validation
114+
exemptJSONPaths := []string{
115+
"createTime",
116+
"id",
117+
"etag",
118+
}
119+
120+
// Remove exempt tags
121+
jsonPaths = slices.DeleteFunc(jsonPaths, func(s string) bool {
122+
return slices.Contains(exemptJSONPaths, s)
123+
})
124+
125+
syncGroup := new(errgroup.Group)
126+
syncGroup.SetLimit(24)
127+
t.Logf("Checking %d JSON paths with max %d goroutines", len(jsonPaths), 24)
128+
for _, jsonPath := range jsonPaths {
129+
jsonPath := jsonPath
130+
syncGroup.Go(func() error {
131+
g.JSONEq(assert, cluster, jsonPath)
132+
return nil
133+
})
134+
}
135+
if err := syncGroup.Wait(); err != nil {
136+
t.Fatal(err)
137+
}
138+
fmt.Println("END all paths 1")
139+
140+
//fmt.Println("all paths 2")
141+
// Test validating all Paths
142+
//evalPaths := utils.GetJSONPaths(cluster)
143+
//fmt.Println(evalPaths)
144+
//g.JSONPathEqs(assert, cluster, evalPaths)
145+
95146
// Pool-01
96147
assert.Equal("pool-01", cluster.Get("nodePools.#(name==\"pool-01\").name").String(), "pool-1 exists")
97148
assert.Equal("e2-medium", cluster.Get("nodePools.#(name==\"pool-01\").config.machineType").String(), "is the expected machine type")
@@ -156,7 +207,7 @@ func TestNodePool(t *testing.T) {
156207
k8sOpts := k8s.KubectlOptions{}
157208
clusterNodesOp, err := k8s.RunKubectlAndGetOutputE(t, &k8sOpts, "get", "nodes", "-o", "json")
158209
assert.NoError(err)
159-
clusterNodes := testutils.ParseKubectlJSONResult(t, clusterNodesOp)
210+
clusterNodes := utils.ParseKubectlJSONResult(t, clusterNodesOp)
160211
assert.JSONEq(`[
161212
{
162213
"effect": "PreferNoSchedule",

test/integration/node_pool/testdata/TestNodePool.json

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"controlPlaneEndpointsConfig": {
5959
"dnsEndpointConfig": {
6060
"allowExternalTraffic": false,
61-
"endpoint": "gke-2cc8593b774242f79d867b885e0b37891ba4-943708007946.europe-west4.gke.goog"
61+
"endpoint": "gke-2cc8593b774242f79d867b885e0b37891ba4-943708007946.LOCATION.gke.goog"
6262
},
6363
"ipEndpointsConfig": {
6464
"authorizedNetworksConfig": {
@@ -67,7 +67,7 @@
6767
"enablePublicEndpoint": true,
6868
"enabled": true,
6969
"privateEndpoint": "10.0.0.2",
70-
"publicEndpoint": "35.204.175.149"
70+
"publicEndpoint": "KUBERNETES_ENDPOINT"
7171
}
7272
},
7373
"createTime": "2024-11-15T22:43:28+00:00",
@@ -81,7 +81,7 @@
8181
"defaultMaxPodsConstraint": {
8282
"maxPodsPerNode": "110"
8383
},
84-
"endpoint": "35.204.175.149",
84+
"endpoint": "KUBERNETES_ENDPOINT",
8585
"enterpriseConfig": {
8686
"clusterTier": "STANDARD"
8787
},
@@ -90,14 +90,14 @@
9090
"identityServiceConfig": {},
9191
"initialClusterVersion": "1.30.5-gke.1443001",
9292
"instanceGroupUrls": [
93-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nc-default-pool-2af7cfca-grp",
94-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-02-4887009c-grp",
95-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-01-868e4268-grp",
96-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-04-171eda64-grp",
97-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-05-7bc6f02a-grp",
98-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-03-402f8758-grp",
99-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-c/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-03-52ff6abd-grp",
100-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluste-nap-e2-medium-1d-71102fd7-grp"
93+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nc-default-pool-2af7cfca-grp",
94+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-02-4887009c-grp",
95+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-01-868e4268-grp",
96+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-04-171eda64-grp",
97+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-05-7bc6f02a-grp",
98+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-03-402f8758-grp",
99+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-c/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-03-52ff6abd-grp",
100+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluste-nap-e2-medium-1d-71102fd7-grp"
101101
],
102102
"ipAllocationPolicy": {
103103
"clusterIpv4Cidr": "192.168.0.0/18",
@@ -115,7 +115,7 @@
115115
"legacyAbac": {},
116116
"location": "LOCATION",
117117
"locations": [
118-
"europe-west4-b"
118+
"LOCATION-b"
119119
],
120120
"loggingConfig": {
121121
"componentConfig": {
@@ -171,7 +171,7 @@
171171
"defaultSnatStatus": {},
172172
"network": "projects/PROJECT_ID/global/networks/cft-gke-test-nca3",
173173
"serviceExternalIpsConfig": {},
174-
"subnetwork": "projects/PROJECT_ID/regions/europe-west4/subnetworks/cft-gke-test-nca3"
174+
"subnetwork": "projects/PROJECT_ID/regions/LOCATION/subnetworks/cft-gke-test-nca3"
175175
},
176176
"nodeConfig": {
177177
"diskSizeGb": 100,
@@ -257,10 +257,10 @@
257257
},
258258
"etag": "e4ce2569-5f6c-49ff-ac35-60dffd51e34a",
259259
"instanceGroupUrls": [
260-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nc-default-pool-2af7cfca-grp"
260+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nc-default-pool-2af7cfca-grp"
261261
],
262262
"locations": [
263-
"europe-west4-b"
263+
"LOCATION-b"
264264
],
265265
"management": {
266266
"autoRepair": true,
@@ -276,7 +276,7 @@
276276
"podRange": "cft-gke-test-pods-nca3"
277277
},
278278
"podIpv4CidrSize": 24,
279-
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/europe-west4/clusters/node-pool-cluster-nca3/nodePools/default-pool",
279+
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/node-pool-cluster-nca3/nodePools/default-pool",
280280
"status": "RUNNING",
281281
"upgradeSettings": {
282282
"maxSurge": 1,
@@ -358,10 +358,10 @@
358358
"etag": "31fce54e-a3f0-4206-84d7-93e3d7c0d773",
359359
"initialNodeCount": 1,
360360
"instanceGroupUrls": [
361-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-02-4887009c-grp"
361+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-02-4887009c-grp"
362362
],
363363
"locations": [
364-
"europe-west4-b"
364+
"LOCATION-b"
365365
],
366366
"management": {
367367
"autoUpgrade": true
@@ -376,7 +376,7 @@
376376
"podRange": "cft-gke-test-pods-nca3"
377377
},
378378
"podIpv4CidrSize": 24,
379-
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/europe-west4/clusters/node-pool-cluster-nca3/nodePools/pool-02",
379+
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/node-pool-cluster-nca3/nodePools/pool-02",
380380
"status": "RUNNING",
381381
"upgradeSettings": {
382382
"maxSurge": 1,
@@ -454,10 +454,10 @@
454454
"etag": "9d43f000-7e58-4903-ba9c-a3f9e8532d33",
455455
"initialNodeCount": 1,
456456
"instanceGroupUrls": [
457-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-01-868e4268-grp"
457+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-01-868e4268-grp"
458458
],
459459
"locations": [
460-
"europe-west4-b"
460+
"LOCATION-b"
461461
],
462462
"management": {
463463
"autoRepair": true,
@@ -473,7 +473,7 @@
473473
"podRange": "cft-gke-test-pods-nca3"
474474
},
475475
"podIpv4CidrSize": 24,
476-
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/europe-west4/clusters/node-pool-cluster-nca3/nodePools/pool-01",
476+
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/node-pool-cluster-nca3/nodePools/pool-01",
477477
"status": "RUNNING",
478478
"upgradeSettings": {
479479
"maxSurge": 1,
@@ -547,10 +547,10 @@
547547
},
548548
"etag": "ad27e635-3daf-466a-91ec-863489f4ca78",
549549
"instanceGroupUrls": [
550-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-04-171eda64-grp"
550+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-04-171eda64-grp"
551551
],
552552
"locations": [
553-
"europe-west4-b"
553+
"LOCATION-b"
554554
],
555555
"management": {
556556
"autoRepair": true,
@@ -569,7 +569,7 @@
569569
"queuedProvisioning": {
570570
"enabled": true
571571
},
572-
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/europe-west4/clusters/node-pool-cluster-nca3/nodePools/pool-04",
572+
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/node-pool-cluster-nca3/nodePools/pool-04",
573573
"status": "RUNNING",
574574
"upgradeSettings": {
575575
"maxSurge": 1,
@@ -640,10 +640,10 @@
640640
"etag": "2f3e3fb1-a3f9-48de-8218-27c281a1e800",
641641
"initialNodeCount": 1,
642642
"instanceGroupUrls": [
643-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-05-7bc6f02a-grp"
643+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-05-7bc6f02a-grp"
644644
],
645645
"locations": [
646-
"europe-west4-b"
646+
"LOCATION-b"
647647
],
648648
"management": {
649649
"autoRepair": true,
@@ -659,7 +659,7 @@
659659
"podRange": "cft-gke-test-pods-nca3"
660660
},
661661
"podIpv4CidrSize": 24,
662-
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/europe-west4/clusters/node-pool-cluster-nca3/nodePools/pool-05",
662+
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/node-pool-cluster-nca3/nodePools/pool-05",
663663
"status": "RUNNING",
664664
"upgradeSettings": {
665665
"maxSurge": 1,
@@ -736,12 +736,12 @@
736736
"etag": "096b8f17-4c88-4e7d-ab95-999ae1c779e3",
737737
"initialNodeCount": 2,
738738
"instanceGroupUrls": [
739-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-03-402f8758-grp",
740-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-c/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-03-52ff6abd-grp"
739+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-03-402f8758-grp",
740+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-c/instanceGroupManagers/gke-node-pool-cluster-nca3-pool-03-52ff6abd-grp"
741741
],
742742
"locations": [
743-
"europe-west4-b",
744-
"europe-west4-c"
743+
"LOCATION-b",
744+
"LOCATION-c"
745745
],
746746
"management": {
747747
"autoRepair": true,
@@ -758,7 +758,7 @@
758758
"podRange": "test"
759759
},
760760
"podIpv4CidrSize": 24,
761-
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/europe-west4/clusters/node-pool-cluster-nca3/nodePools/pool-03",
761+
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/node-pool-cluster-nca3/nodePools/pool-03",
762762
"status": "RUNNING",
763763
"upgradeSettings": {
764764
"maxSurge": 1,
@@ -796,10 +796,10 @@
796796
},
797797
"etag": "18f6eb8a-9ef5-455e-9732-ead4b2dd101b",
798798
"instanceGroupUrls": [
799-
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-west4-b/instanceGroupManagers/gke-node-pool-cluste-nap-e2-medium-1d-71102fd7-grp"
799+
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/LOCATION-b/instanceGroupManagers/gke-node-pool-cluste-nap-e2-medium-1d-71102fd7-grp"
800800
],
801801
"locations": [
802-
"europe-west4-b"
802+
"LOCATION-b"
803803
],
804804
"management": {
805805
"autoRepair": true,
@@ -817,7 +817,7 @@
817817
},
818818
"placementPolicy": {},
819819
"podIpv4CidrSize": 24,
820-
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/europe-west4/clusters/node-pool-cluster-nca3/nodePools/nap-e2-medium-1d469r1p",
820+
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/node-pool-cluster-nca3/nodePools/nap-e2-medium-1d469r1p",
821821
"status": "RUNNING",
822822
"upgradeSettings": {
823823
"maxSurge": 1,
@@ -831,7 +831,7 @@
831831
},
832832
"privateClusterConfig": {
833833
"privateEndpoint": "10.0.0.2",
834-
"publicEndpoint": "35.204.175.149"
834+
"publicEndpoint": "KUBERNETES_ENDPOINT"
835835
},
836836
"rbacBindingConfig": {
837837
"enableInsecureBindingSystemAuthenticated": true,
@@ -847,7 +847,7 @@
847847
"mode": "DISABLED",
848848
"vulnerabilityMode": "VULNERABILITY_DISABLED"
849849
},
850-
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/europe-west4/clusters/node-pool-cluster-nca3",
850+
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/clusters/node-pool-cluster-nca3",
851851
"servicesIpv4Cidr": "192.168.64.0/18",
852852
"shieldedNodes": {
853853
"enabled": true
@@ -858,6 +858,6 @@
858858
"workloadIdentityConfig": {
859859
"workloadPool": "PROJECT_ID.svc.id.goog"
860860
},
861-
"zone": "europe-west4"
861+
"zone": "LOCATION"
862862
}
863863

test/integration/safer_cluster_iap_bastion/safer_cluster_iap_bastion_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"github.com/GoogleCloudPlatform/cloud-foundation-toolkit/infra/blueprint-test/pkg/tft"
2424
"github.com/stretchr/testify/assert"
2525
"github.com/terraform-google-modules/terraform-google-kubernetes-engine/test/integration/testutils"
26-
gkeutils "github.com/terraform-google-modules/terraform-google-kubernetes-engine/test/integration/utils"
2726
)
2827

2928
func TestSaferClusterIapBastion(t *testing.T) {
@@ -34,7 +33,7 @@ func TestSaferClusterIapBastion(t *testing.T) {
3433
bpt.DefineVerify(func(assert *assert.Assertions) {
3534
// Skipping Default Verify as the Verify Stage fails due to change in Client Cert Token
3635
// bpt.DefaultVerify(assert)
37-
gkeutils.TGKEVerify(t, bpt, assert) // Verify Resources
36+
testutils.TGKEVerify(t, bpt, assert) // Verify Resources
3837

3938
test_command, _ := strings.CutPrefix(bpt.GetStringOutput("test_command"), "gcloud ")
4039

0 commit comments

Comments
 (0)