You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[ !-f"chart/jenkins-operator/deploy.tmp" ]] && skip "Jenkins helm chart have not been deployed correctly"
37
47
run verify "there is 1 deployment named 'default-jenkins-operator'"
38
48
assert_success
@@ -44,8 +54,8 @@ diag() {
44
54
assert_success
45
55
}
46
56
47
-
#bats test_tags=phase:helm
48
-
@test "1.3 Helm: check Jenkins Pod status" {
57
+
#bats test_tags=phase:helm,scenario:vanilla
58
+
@test "1.3 Helm: check Jenkins Pod status" {
49
59
[[ !-f"chart/jenkins-operator/deploy.tmp" ]] && skip "Jenkins helm chart have not been deployed correctly"
50
60
run try "at most 20 times every 10s to get pods named 'jenkins-jenkins' and verify that '.status.containerStatuses[?(@.name==\"jenkins-master\")].ready' is 'true'"
51
61
assert_success
@@ -54,8 +64,8 @@ diag() {
54
64
assert_success
55
65
}
56
66
57
-
#bats test_tags=phase:helm
58
-
@test "1.4 Helm: check Jenkins service status" {
67
+
#bats test_tags=phase:helm,scenario:vanilla
68
+
@test "1.4 Helm: check Jenkins service status" {
59
69
[[ !-f"chart/jenkins-operator/deploy.tmp" ]] && skip "Jenkins helm chart have not been deployed correctly"
60
70
run verify "there is 1 service named 'jenkins-operator-http-jenkins'"
@test "1.11 Helm: check Jenkins operator pods status again" {
138
+
[[ !-f"chart/jenkins-operator/deploy.tmp" ]] && skip "Jenkins helm chart have not been deployed correctly"
139
+
run verify "there is 1 deployment named 'default-jenkins-operator'"
140
+
assert_success
141
+
142
+
run verify "there is 1 pod named 'default-jenkins-operator-'"
143
+
assert_success
144
+
145
+
run try "at most 20 times every 10s to get pods named 'default-jenkins-operator-' and verify that '.status.containerStatuses[?(@.name==\"jenkins-operator\")].ready' is 'true'"
[[ !-f"chart/jenkins-operator/deploy.tmp" ]] && skip "Jenkins helm chart have not been deployed correctly"
152
+
run verify "there is 1 deployment named 'default-jenkins-operator'"
153
+
assert_success
154
+
155
+
run verify "there is 1 pod named 'default-jenkins-operator-'"
156
+
assert_success
157
+
158
+
run try "at most 20 times every 10s to get pods named 'default-jenkins-operator-' and verify that '.status.containerStatuses[?(@.name==\"jenkins-operator\")].ready' is 'true'"
159
+
assert_success
160
+
}
161
+
162
+
#bats test_tags=phase:helm,scenario:vanilla
163
+
@test "1.13 Helm: check Jenkins Pod status" {
164
+
[[ !-f"chart/jenkins-operator/deploy.tmp" ]] && skip "Jenkins helm chart have not been deployed correctly"
165
+
run try "at most 20 times every 10s to get pods named 'jenkins-jenkins' and verify that '.status.containerStatuses[?(@.name==\"jenkins-master\")].ready' is 'true'"
166
+
assert_success
167
+
168
+
run try "at most 20 times every 5s to get pods named 'jenkins-jenkins' and verify that '.status.containerStatuses[?(@.name==\"jenkins-master\")].ready' is 'true'"
169
+
assert_success
170
+
}
171
+
172
+
#bats test_tags=phase:helm,scenario:vanilla
173
+
@test "1.14 Helm: clean" {
111
174
run ${HELM} uninstall default
112
175
assert_success
113
176
# Wait for the complete removal
114
177
sleep 30
178
+
115
179
run verify "there is 0 pvc named 'jenkins backup'"
0 commit comments