Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(daml-on-sawtooth): add stable names tests
Signed-off-by: Kevin O'Donnell <kevin@blockchaintp.com>
- Loading branch information
1 parent
6e3c9a1
commit e2dadac
Showing
3 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ | |
|
||
package-lock.json | ||
package.json | ||
tests/ |
16 changes: 16 additions & 0 deletions
16
charts/daml-on-sawtooth/tests/__snapshot__/stable-names_test.yaml.snap
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,16 @@ | ||
check for stable PVC names: | ||
1: | | ||
pgdata | ||
check for stable entity names (services, statefulsets, serviceaccounts): | ||
1: | | ||
mynetwork-daml-rpc | ||
2: | | ||
mynetwork-daml-rpc | ||
3: | | ||
mynetwork-sa | ||
4: | | ||
mynetwork-validator | ||
5: | | ||
mynetwork-rest-api | ||
6: | | ||
mynetwork-validator |
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,24 @@ | ||
suite: test for stable names | ||
templates: | ||
- daml-rpc-service.yaml | ||
- daml-rpc.yaml | ||
- serviceaccount.yaml | ||
- validator-set.yaml | ||
- validators-svcs.yaml | ||
release: | ||
name: test | ||
namespace: testns | ||
tests: | ||
- it: check for stable entity names (services, statefulsets, serviceaccounts) | ||
asserts: | ||
- matchSnapshot: | ||
path: metadata.name | ||
- it: check for stable PVC names | ||
template: daml-rpc.yaml | ||
set: | ||
postgres: | ||
persistence: | ||
enabled: true | ||
asserts: | ||
- matchSnapshot: | ||
path: spec.volumeClaimTemplates[0].metadata.name |