Skip to content

Commit

Permalink
Merge pull request #2112 from yuwenma/stricter-test-ai-prefix
Browse files Browse the repository at this point in the history
fix: override mockgcp vertexai pathPrefix
  • Loading branch information
google-oss-prow[bot] committed Jun 22, 2024
2 parents 6d851c4 + e29d920 commit bcb4e37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
region: us-central1
resourceID: projects/${projectNumber}/locations/us-central1/tensorboards/${tensorboardId}
status:
blobStoragePathPrefix: cloud-ai-platform-4c7152f6-07a9-47d6-8f51-4299e2fdff92
blobStoragePathPrefix: cloud-ai-platform-00000000-1111-2222-3333-444444444444
conditions:
- lastTransitionTime: "1970-01-01T00:00:00Z"
message: The resource is up to date
Expand Down
3 changes: 3 additions & 0 deletions tests/e2e/normalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ func normalizeKRMObject(u *unstructured.Unstructured, project testgcp.GCPProject
visitor.replacePaths[".status.serverCaCert.createTime"] = "1970-01-01T00:00:00Z"
visitor.replacePaths[".status.serverCaCert.expirationTime"] = "1970-01-01T00:00:00Z"

// Specific to VertexAI
visitor.replacePaths[".status.blobStoragePathPrefix"] = "cloud-ai-platform-00000000-1111-2222-3333-444444444444"

// Specific to Monitoring
visitor.replacePaths[".status.creationRecord[].mutateTime"] = "1970-01-01T00:00:00Z"
visitor.replacePaths[".status.creationRecord[].mutatedBy"] = "user@google.com"
Expand Down

0 comments on commit bcb4e37

Please sign in to comment.