File tree Expand file tree Collapse file tree 5 files changed +84
-118
lines changed
Expand file tree Collapse file tree 5 files changed +84
-118
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,8 +29,29 @@ tests:
2929 - equal :
3030 path : spec.rules[0].host
3131 value : hyperdx.example.com
32- - matchSnapshot :
33- path : metadata.annotations
32+ # Validate ingress annotations
33+ - equal :
34+ path : metadata.annotations["nginx.ingress.kubernetes.io/proxy-body-size"]
35+ value : " 100m"
36+ - equal :
37+ path : metadata.annotations["nginx.ingress.kubernetes.io/proxy-connect-timeout"]
38+ value : " 60"
39+ - equal :
40+ path : metadata.annotations["nginx.ingress.kubernetes.io/proxy-read-timeout"]
41+ value : " 60"
42+ - equal :
43+ path : metadata.annotations["nginx.ingress.kubernetes.io/proxy-send-timeout"]
44+ value : " 60"
45+ - equal :
46+ path : metadata.annotations["nginx.ingress.kubernetes.io/rewrite-target"]
47+ value : " /$1"
48+ - equal :
49+ path : metadata.annotations["nginx.ingress.kubernetes.io/use-regex"]
50+ value : " true"
51+ # Validate chart version format without exact match
52+ - matchRegex :
53+ path : metadata.labels["helm.sh/chart"]
54+ pattern : ^hdx-oss-v2-\d+\.\d+\.\d+$
3455
3556 - it : should render ingress with TLS when enabled
3657 set :
Original file line number Diff line number Diff line change @@ -31,7 +31,67 @@ tests:
3131 asserts :
3232 - hasDocuments :
3333 count : 2
34- - matchSnapshot : {}
34+ # App secrets validation
35+ - isKind :
36+ of : Secret
37+ documentIndex : 0
38+ - equal :
39+ path : metadata.name
40+ value : RELEASE-NAME-hdx-oss-v2-app-secrets
41+ documentIndex : 0
42+ - equal :
43+ path : type
44+ value : Opaque
45+ documentIndex : 0
46+ - isNotEmpty :
47+ path : data.api-key
48+ documentIndex : 0
49+ # ClickHouse secrets validation
50+ - isKind :
51+ of : Secret
52+ documentIndex : 1
53+ - equal :
54+ path : metadata.name
55+ value : RELEASE-NAME-hdx-oss-v2-clickhouse-secrets
56+ documentIndex : 1
57+ - equal :
58+ path : type
59+ value : Opaque
60+ documentIndex : 1
61+ - equal :
62+ path : data.appUserPassword
63+ value : dGVzdC1wYXNzd29yZA==
64+ documentIndex : 1
65+ - equal :
66+ path : data.otelUserPassword
67+ value : dGVzdC1vdGVsLXBhc3N3b3Jk
68+ documentIndex : 1
69+ # Validate standard labels exist (without checking helm.sh/chart)
70+ - isSubset :
71+ path : metadata.labels
72+ content :
73+ app.kubernetes.io/instance : RELEASE-NAME
74+ app.kubernetes.io/managed-by : Helm
75+ app.kubernetes.io/name : hdx-oss-v2
76+ app.kubernetes.io/version : 1.0.0
77+ documentIndex : 0
78+ - isSubset :
79+ path : metadata.labels
80+ content :
81+ app.kubernetes.io/instance : RELEASE-NAME
82+ app.kubernetes.io/managed-by : Helm
83+ app.kubernetes.io/name : hdx-oss-v2
84+ app.kubernetes.io/version : 1.0.0
85+ documentIndex : 1
86+ # Validate chart version format without exact match
87+ - matchRegex :
88+ path : metadata.labels["helm.sh/chart"]
89+ pattern : ^hdx-oss-v2-\d+\.\d+\.\d+$
90+ documentIndex : 0
91+ - matchRegex :
92+ path : metadata.labels["helm.sh/chart"]
93+ pattern : ^hdx-oss-v2-\d+\.\d+\.\d+$
94+ documentIndex : 1
3595
3696 - it : should not render clickhouse secrets when clickhouse is disabled
3797 set :
You can’t perform that action at this time.
0 commit comments