Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving unit test coverage over DRY support #941

Open
wants to merge 46 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ecc279e
Update _helpers.tpl "Jenkins.url" to use TPL function
Ceddaerrix Oct 11, 2023
b5b94a5
Create unit test jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 11, 2023
c83cfdb
Update version in Chart.yaml
Ceddaerrix Oct 11, 2023
14bf107
Correcting suite syntax in jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 11, 2023
55e8b6f
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 11, 2023
0e30e94
Changing last assert in jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 11, 2023
8bfa4bc
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 11, 2023
e16dcbc
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 11, 2023
35391ea
Update version in Chart.yaml
Ceddaerrix Oct 11, 2023
2b6c91b
Merge branch 'main' into main
Ceddaerrix Oct 11, 2023
c50cf57
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 11, 2023
013edaf
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 11, 2023
663ca70
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 11, 2023
aa95dfb
Commenting 'exists' assertion in jenkins-controller-ingress-DRY-test.…
Ceddaerrix Oct 11, 2023
21b2d66
Commenting 'isNotNullOrEmpty' assertion in jenkins-controller-ingress…
Ceddaerrix Oct 11, 2023
e530b19
Attempt fixing 'matchRegex' assertion in jenkins-controller-ingress-D…
Ceddaerrix Oct 12, 2023
286a151
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
604bbd7
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
1f89fc6
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
fca2328
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
7cffa65
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
326dd81
Using 'contains' instead of 'matchRegex' in jenkins-controller-ingres…
Ceddaerrix Oct 12, 2023
0a48945
Reverting to 'matchRegex' in jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
b4313a6
Editing 'matchRegex' pattern in jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
f1d648c
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
c576058
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
abfdd33
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
1a7eaf6
Update jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
c56d7b5
Commenting test case on jcasc-config.yaml in jenkins-controller-ingre…
Ceddaerrix Oct 12, 2023
c70898d
Removing 'jcasc-config' test case in jenkins-controller-ingress-DRY-t…
Ceddaerrix Oct 12, 2023
b1187de
Reverting to 'matchRegex' in jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
eb3d375
Editing 'matchRegex' pattern in jenkins-controller-ingress-DRY-test.yaml
Ceddaerrix Oct 12, 2023
9e8565c
Merge branch 'main' of https://github.com/Ceddaerrix/helm-charts
CeddaerrixGE Nov 7, 2023
1c3dba4
Reintroducing test on jcasc-config with matchRegex
CeddaerrixGE Nov 7, 2023
bf1ba3d
Bumping version
CeddaerrixGE Nov 7, 2023
b017a33
Simplifying jcasc-config matchRegex pattern
CeddaerrixGE Nov 7, 2023
62eb1c6
Correcting jcasc-config matchRegex path
CeddaerrixGE Nov 7, 2023
21fda18
Simplifying jcasc-config matchRegex pattern
CeddaerrixGE Nov 8, 2023
c3dd3f1
Improving matchRegex pattern
CeddaerrixGE Nov 8, 2023
b36f48f
Improving further matchRegex pattern
CeddaerrixGE Nov 8, 2023
375e505
Improving further matchRegex pattern
CeddaerrixGE Nov 8, 2023
1bfaa74
Improving further matchRegex with simpler pattern
CeddaerrixGE Nov 8, 2023
07f736e
Improving further matchRegex with simpler pattern
CeddaerrixGE Nov 8, 2023
3e6bfce
Improving further matchRegex with simpler pattern
CeddaerrixGE Nov 8, 2023
8eff9eb
Improving further matchRegex pattern about escaped characters
CeddaerrixGE Nov 8, 2023
8059ebf
Improving further matchRegex pattern about escaped characters
CeddaerrixGE Nov 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/jenkins/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: jenkins
home: https://jenkins.io/
version: 4.8.2
version: 4.8.3
appVersion: 2.414.3
description: Jenkins - Build great things at any scale! The leading open source automation server, Jenkins provides over 1800 plugins to support building, deploying and automating any project.
sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,18 @@ tests:
- equal:
path: spec.tls[0].hosts[0]
value: "jenkins.example.com"
- it: jcasc-config
template: jcasc-config.yaml
set:
global.jenkinsHostname: "jenkins.example.com"
controller.ingress:
enabled: true
hostName: "{{ .Values.global.jenkinsHostname }}"
resourceRootUrl: "{{ .Values.global.jenkinsHostname }}"
tls:
- hosts:
- "{{ .Values.global.jenkinsHostname }}"
asserts:
- matchRegex:
path: data.[jcasc-default-config.yaml]
pattern: "url: https://jenkins.example.com"