Skip to content
Snippets Groups Projects
Commit 87adfbcb authored by Lukas Malte Monnerjahn's avatar Lukas Malte Monnerjahn
Browse files

OZG-4880 fix helm unittest

neues Release von helm-unittest scheint die Chart.Version über das Ende des Testcases hinaus bis zum Ende der Suite beizubehalten
parent eb77b5c2
No related branches found
No related tags found
1 merge request!25OZG-4880 Helm Env Values für OSI-Postfach 2.0
...@@ -44,13 +44,16 @@ set: ...@@ -44,13 +44,16 @@ set:
imagePullSecret: image-pull-secret imagePullSecret: image-pull-secret
tests: tests:
- it: should not fail on .Release.Namespace length less than 63 characters
asserts:
- notFailedTemplate: { }
- it: should fail on .Release.Namespace length longer than 63 characters - it: should fail on .Release.Namespace length longer than 63 characters
release: release:
namespace: test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890 namespace: test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890
asserts: asserts:
- failedTemplate: - failedTemplate:
errorMessage: .Release.Namespace test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890 ist zu lang (max. 63 Zeichen) errorMessage: .Release.Namespace test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890 ist zu lang (max. 63 Zeichen)
- it: should not fail on .Release.Namespace length less than 63 characters - it: should not fail on .Chart.Name-.Chart.Version length less than 63 characters
asserts: asserts:
- notFailedTemplate: { } - notFailedTemplate: { }
- it: should fail on .Chart.Name-.Chart.Version length longer than 63 characters - it: should fail on .Chart.Name-.Chart.Version length longer than 63 characters
...@@ -59,6 +62,3 @@ tests: ...@@ -59,6 +62,3 @@ tests:
asserts: asserts:
- failedTemplate: - failedTemplate:
errorMessage: .Chart.Name-.Chart.Version alfa-1.0-test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890 ist zu lang (max. 63 Zeichen) errorMessage: .Chart.Name-.Chart.Version alfa-1.0-test1234567890123123456789012345678901234567890123456789012345678901234567890123456789012345678904567890 ist zu lang (max. 63 Zeichen)
- it: should not fail on .Chart.Name-.Chart.Version length less than 63 characters
asserts:
- notFailedTemplate: {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment