mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-09-06 03:59:15 +00:00
34 lines
794 B
YAML
34 lines
794 B
YAML
suite: rpc secret
|
|
templates:
|
|
- templates/secret.yaml
|
|
tests:
|
|
- it: generates a Secret holding the rpc secret by default
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 1
|
|
- isKind:
|
|
of: Secret
|
|
- equal:
|
|
path: metadata.name
|
|
value: RELEASE-NAME-garage-rpc-secret
|
|
- equal:
|
|
path: type
|
|
value: Opaque
|
|
- isNotNull:
|
|
path: data.rpcSecret
|
|
|
|
- it: does not render a Secret when an existing one is referenced
|
|
values:
|
|
- ./values/existing-secret.yaml
|
|
asserts:
|
|
- hasDocuments:
|
|
count: 0
|
|
|
|
- it: base64-encodes an explicitly provided rpc secret
|
|
set:
|
|
garage.rpcSecret: my-plain-secret
|
|
asserts:
|
|
- equal:
|
|
path: data.rpcSecret
|
|
value: bXktcGxhaW4tc2VjcmV0
|