Skip to content

Commit

Permalink
Merge pull request #2108 from yuwenma/stricter-test-sslcertificate
Browse files Browse the repository at this point in the history
fix: Add more new golden http log for managed SSL Certificate
  • Loading branch information
google-oss-prow[bot] authored Jun 22, 2024
2 parents 8ccafcf + b958070 commit 6d851c4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: compute.cnrm.cloud.google.com/v1alpha1
kind: ComputeManagedSSLCertificate
metadata:
annotations:
cnrm.cloud.google.com/management-conflict-prevention-policy: none
cnrm.cloud.google.com/state-into-spec: absent
finalizers:
- cnrm.cloud.google.com/finalizer
- cnrm.cloud.google.com/deletion-defender
generation: 1
labels:
cnrm-test: "true"
name: computemanagedsslcertificate-${uniqueId}
namespace: ${uniqueId}
spec:
managed:
domains:
- sslcert.kcc-test.club.
projectRef:
external: ${projectId}
resourceID: computemanagedsslcertificate-${uniqueId}
status:
certificateId: 1111011111111110000
conditions:
- lastTransitionTime: "1970-01-01T00:00:00Z"
message: The resource is up to date
reason: UpToDate
status: "True"
type: Ready
creationTimestamp: "1970-01-01T00:00:00Z"
observedGeneration: 1
selfLink: https://compute.googleapis.com/compute/v1/projects/${projectId}/global/sslCertificates/computemanagedsslcertificate-${uniqueId}
4 changes: 4 additions & 0 deletions tests/e2e/normalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ func normalizeKRMObject(u *unstructured.Unstructured, project testgcp.GCPProject
// Specific to Sql
visitor.replacePaths[".items[].etag"] = "abcdef0123A="

// Specific to global SSL certificate. This is a server generated id.
visitor.replacePaths[".status.certificateId"] = 1111011111111110000

// Specific to AlloyDB
visitor.replacePaths[".status.continuousBackupInfo[].enabledTime"] = "1970-01-01T00:00:00Z"
visitor.replacePaths[".status.ipAddress"] = "10.1.2.3"

// Specific to BigQuery
visitor.replacePaths[".spec.access[].userByEmail"] = "[email protected]"

Expand Down

0 comments on commit 6d851c4

Please sign in to comment.