mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-03 02:59:16 -03:00
fix one more unittest
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
suite: cnpg recovery configmap test
|
||||
templates:
|
||||
- common.yaml
|
||||
release:
|
||||
name: test-release-name
|
||||
namespace: test-release-namespace
|
||||
tests:
|
||||
- it: should create configmap with recovery string when forceRecovery is enabled
|
||||
set:
|
||||
cnpg:
|
||||
my-pg:
|
||||
enabled: true
|
||||
forceRecovery: true
|
||||
user: test-user
|
||||
database: test-db
|
||||
asserts:
|
||||
- documentIndex: &configMapDoc 2
|
||||
isKind:
|
||||
of: ConfigMap
|
||||
- documentIndex: *configMapDoc
|
||||
isAPIVersion:
|
||||
of: v1
|
||||
- documentIndex: *configMapDoc
|
||||
equal:
|
||||
path: metadata.name
|
||||
value: test-release-name-common-test-cnpg-my-pg-recovery-string
|
||||
- documentIndex: *configMapDoc
|
||||
matchRegex:
|
||||
path: data.recovery-string
|
||||
pattern: ^[a-zA-Z0-9]{5}$
|
||||
Reference in New Issue
Block a user