Skip to content

Commit

Permalink
fix(helm): previous refactor as failling tests
Browse files Browse the repository at this point in the history
commit: ae72bf4 refactor(helm): rework email configuration to use ident
introduce these failing tests:

* api-configmap_test > test that API configmap will contain the right
  entrypoints > should set allowed from
* api-configmap_test > test that API configmap will contain the right
  entrypoints > should set allowed from with custom values

This fix those tests.

(cherry picked from commit 076f404)

# Conflicts:
#	helm/tests/api-configmap_test.yaml
  • Loading branch information
passionne authored and mergify[bot] committed Dec 5, 2023
1 parent 87f98aa commit 58c1017
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions helm/tests/api-configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -579,3 +579,46 @@ tests:
- matchRegex:
path: data.[gravitee.yml]
pattern: "[ ]{12}- /path/to/default/keystore3.pem"
<<<<<<< HEAD
=======


- it: should set allowed from
set:
smtp:
allowedfrom:
- email@from
enabled: true
asserts:
- hasDocuments:
count: 1
- isKind:
of: ConfigMap
- matchRegex:
path: data.[gravitee.yml]
pattern: " *email:\n
* allowedfrom:\n
* - email@from\n
* enabled: true"

- it: should set allowed from with custom values
set:
smtp:
allowedfrom:
- '*@company.com'
- [email protected]
enabled: true
asserts:
- hasDocuments:
count: 1
- isKind:
of: ConfigMap
- matchRegex:
path: data.[gravitee.yml]
pattern: " *email:\n
* allowedfrom:\n
* - '\\*@company\\.com'\n
* - specific@email\\.com\n
* enabled: true"

>>>>>>> 076f4046bf (fix(helm): previous refactor as failling tests)

0 comments on commit 58c1017

Please sign in to comment.