Skip to content

Commit

Permalink
add some extra unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Oct 25, 2023
1 parent 5e2c101 commit 652bb4c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions application/tests/secret_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,44 @@ tests:
- equal:
path: data.testNoEncodedData
value: dGVzdFZhbHVl

- it: include stringData if it is set
set:
secret:
enabled: enable
files:
test:
stringData:
testStringData: testValue
asserts:
- equal:
path: stringData.testStringData
value: testValue

- it: include data if it is set
set:
secret:
enabled: enable
files:
test:
data:
testNoEncodedData: testValue
asserts:
- equal:
path: data.testNoEncodedData
value: dGVzdFZhbHVl



- it: include encoded data if it is set
set:
secret:
enabled: enable
files:
test:
encodedData:
testEncodedData: dGVzdFZhbHVl
asserts:
- equal:
path: data.testEncodedData
value: dGVzdFZhbHVl

0 comments on commit 652bb4c

Please sign in to comment.