Skip to content

Commit

Permalink
test: certificate commonName to null
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Jan 6, 2025
1 parent f08fb9e commit 0aa2f14
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions application/tests/certificate_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ tests:
- hasDocuments:
count: 0

- it: does not set Certificate cname if commonName is set to null
set:
certificate:
enabled: true
dnsNames:
- a.com
commonName: null
capabilities:
apiVersions:
- cert-manager.io/v1
asserts:
- hasDocuments:
count: 1
- isKind:
of: Certificate
- notExists:
path: spec.commonName

- it: yields Certificate resource if enabled and API version is available
set:
certificate:
Expand Down

0 comments on commit 0aa2f14

Please sign in to comment.