Skip to content

Commit

Permalink
fix: Add more new golden http log for managed SSL Certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenma committed Jun 22, 2024
1 parent 8edc244 commit 32c4503
Show file tree
Hide file tree
Showing 2 changed files with 38 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}
6 changes: 6 additions & 0 deletions tests/e2e/normalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,18 @@ func normalizeKRMObject(u *unstructured.Unstructured, project testgcp.GCPProject
visitor.replacePaths[".status.etag"] = "abcdef123456"
visitor.replacePaths[".status.observedState.etag"] = "abcdef123456"

<<<<<<< Updated upstream

Check failure on line 64 in tests/e2e/normalize.go

View workflow job for this annotation

GitHub Actions / lint

syntax error: unexpected <<, expected }

Check failure on line 64 in tests/e2e/normalize.go

View workflow job for this annotation

GitHub Actions / validations

expected statement, found '<<'
// Specific to Sql
visitor.replacePaths[".items[].etag"] = "abcdef0123A="
=======
// Specific to global SSL certificate. This is a server generated id.
visitor.replacePaths[".status.certificateId"] = 1111011111111110000
>>>>>>> Stashed changes

// 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 32c4503

Please sign in to comment.