fix one more unittest

This commit is contained in:
Kjeld Schouten
2024-03-09 01:25:53 +01:00
parent e5dafb33aa
commit a782da916a

View File

@@ -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}$