Skip to content

Commit

Permalink
fix: update verified test
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyz committed Sep 6, 2023
1 parent 106b8c1 commit d655b1a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package simple_regional_with_networking

import (
"strings"
"testing"

"github.com/GoogleCloudPlatform/cloud-foundation-toolkit/infra/blueprint-test/pkg/gcloud"
Expand All @@ -32,16 +33,16 @@ func TestSimpleRegionalWithNetworking(t *testing.T) {
projectId := bpt.GetStringOutput("project_id")
location := bpt.GetStringOutput("location")
clusterName := bpt.GetStringOutput("cluster_name")
serviceAccount := bpt.GetStringOutput("service_account")
serviceAccount := strings.ReplaceAll(bpt.GetStringOutput("service_account"), projectId, "PROJECT_ID")
region := bpt.GetStringOutput("region")
subnetName := bpt.GetStringOutput("subnet_name")
ipRangeServicesName := bpt.GetStringOutput("ip_range_services_name")
ipRangePodName := bpt.GetStringOutput("ip_range_pods_name")

op := gcloud.Runf(t, "container clusters describe %s --zone %s --project %s", clusterName, location, projectId)
g := golden.NewOrUpdate(t, op.String(),
golden.WithSanitizer(golden.StringSanitizer(serviceAccount, "SERVICE_ACCOUNT")),
golden.WithSanitizer(golden.StringSanitizer(projectId, "PROJECT_ID")),
golden.WithSanitizer(golden.StringSanitizer(serviceAccount, "SERVICE_ACCOUNT")),
golden.WithSanitizer(golden.StringSanitizer(clusterName, "CLUSTER_NAME")),
)
validateJSONPaths := []string{
Expand Down

0 comments on commit d655b1a

Please sign in to comment.