Skip to content

Commit d655b1a

Browse files
committed
fix: update verified test
1 parent 106b8c1 commit d655b1a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration/simple_regional_with_networking/simple_regional_with_networking_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
package simple_regional_with_networking
1515

1616
import (
17+
"strings"
1718
"testing"
1819

1920
"github.com/GoogleCloudPlatform/cloud-foundation-toolkit/infra/blueprint-test/pkg/gcloud"
@@ -32,16 +33,16 @@ func TestSimpleRegionalWithNetworking(t *testing.T) {
3233
projectId := bpt.GetStringOutput("project_id")
3334
location := bpt.GetStringOutput("location")
3435
clusterName := bpt.GetStringOutput("cluster_name")
35-
serviceAccount := bpt.GetStringOutput("service_account")
36+
serviceAccount := strings.ReplaceAll(bpt.GetStringOutput("service_account"), projectId, "PROJECT_ID")
3637
region := bpt.GetStringOutput("region")
3738
subnetName := bpt.GetStringOutput("subnet_name")
3839
ipRangeServicesName := bpt.GetStringOutput("ip_range_services_name")
3940
ipRangePodName := bpt.GetStringOutput("ip_range_pods_name")
4041

4142
op := gcloud.Runf(t, "container clusters describe %s --zone %s --project %s", clusterName, location, projectId)
4243
g := golden.NewOrUpdate(t, op.String(),
43-
golden.WithSanitizer(golden.StringSanitizer(serviceAccount, "SERVICE_ACCOUNT")),
4444
golden.WithSanitizer(golden.StringSanitizer(projectId, "PROJECT_ID")),
45+
golden.WithSanitizer(golden.StringSanitizer(serviceAccount, "SERVICE_ACCOUNT")),
4546
golden.WithSanitizer(golden.StringSanitizer(clusterName, "CLUSTER_NAME")),
4647
)
4748
validateJSONPaths := []string{

0 commit comments

Comments
 (0)