-
-
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.
Signed-off-by: Damien Duportal <[email protected]>
- Loading branch information
Showing
5 changed files
with
49 additions
and
81 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
suite: test secret.yaml | ||
templates: | ||
- secret.yaml | ||
set: | ||
postgresql: | ||
url: "example-url" | ||
client: | ||
id: "example-id" | ||
secret: "example-secret" | ||
sentry.dsn: "example-dsn" | ||
tests: | ||
- it: should ensure the secret is created with custom credentials | ||
asserts: | ||
- isKind: | ||
of: Secret | ||
- equal: | ||
path: metadata.name | ||
value: RELEASE-NAME-uplink | ||
- equal: | ||
path: data['postgresql.url'] | ||
value: "ZXhhbXBsZS11cmw=" # Base64 encoded value of "example-url" | ||
- equal: | ||
path: data['client.id'] | ||
value: "ZXhhbXBsZS1pZA==" # Base64 encoded value of "example-id" | ||
- equal: | ||
path: data['client.secret'] | ||
value: "ZXhhbXBsZS1zZWNyZXQ=" # Base64 encoded value of "example-secret" | ||
- equal: | ||
path: data['sentry.dsn'] | ||
value: "ZXhhbXBsZS1kc24=" # Base64 encoded value of "example-dsn" |
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,19 @@ | ||
suite: test default behavior of secret.yaml with default values | ||
templates: | ||
- secret.yaml | ||
tests: | ||
- it: should render with default values without error | ||
asserts: | ||
- isKind: | ||
of: Secret | ||
- equal: | ||
path: metadata.name | ||
value: RELEASE-NAME-uplink | ||
- notExists: | ||
path: data.postgresql.url | ||
- notExists: | ||
path: data.client.id | ||
- notExists: | ||
path: data.client.secret | ||
- notExists: | ||
path: data.sentry.dsn |