-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #715 from linoleparquet/fix/acme
fix(acme): fix templating and add unit tests (#655)
- Loading branch information
Showing
5 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
suite: Test with custom values | ||
templates: | ||
- clusterIssuer.yaml | ||
- secret.yaml | ||
tests: | ||
- it: should create a Secret with the correct value | ||
set: | ||
acme: | ||
clientSecrets: | ||
- name: acme-test-secret | ||
value: password | ||
template: secret.yaml | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: Secret | ||
- equal: | ||
path: data.CLIENT_SECRET | ||
value: cGFzc3dvcmQ= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
suite: Test with default values | ||
templates: | ||
- clusterIssuer.yaml | ||
- secret.yaml | ||
tests: | ||
- it: should create a cluster issuer by default | ||
template: clusterIssuer.yaml | ||
asserts: | ||
- hasDocuments: | ||
count: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters