@@ -15,7 +15,7 @@ setup() {
15
15
}
16
16
17
17
verify_helm () {
18
- helm template ../drupal | kubectl apply --dry-run -f -
18
+ helm template ../drupal | kubectl apply --dry-run -f -
19
19
}
20
20
21
21
@@ -29,7 +29,7 @@ verify_helm() {
29
29
@test " verify the deployment of the chart in dry-run mode" {
30
30
31
31
run verify_helm
32
- [ " $status " -eq 0 ]
32
+ [ " $status " -eq 0 ]
33
33
}
34
34
35
35
@@ -59,28 +59,28 @@ verify_helm() {
59
59
run verify " there is 1 pod named 'my-test-drupal'"
60
60
[ " $status " -eq 0 ]
61
61
62
- run verify " there is 1 pod named 'my-test-varnish'"
63
- [ " $status " -eq 0 ]
62
+ run verify " there is 1 pod named 'my-test-varnish'"
63
+ [ " $status " -eq 0 ]
64
64
65
65
# Postgres specifics
66
66
run verify " there is 1 service named 'my-test-postgres'"
67
- [ " $status " -eq 0 ]
67
+ [ " $status " -eq 0 ]
68
68
69
69
run verify " there is 1 ep named 'my-test-postgres'"
70
- [ " $status " -eq 0 ]
70
+ [ " $status " -eq 0 ]
71
71
72
72
run verify " '.subsets[*].ports[*].port' is '44320' for endpoints named 'my-test-postgres'"
73
- [ " $status " -eq 0 ]
73
+ [ " $status " -eq 0 ]
74
74
75
75
run verify " '.subsets[*].addresses[*].ip' is '10.234.121.117' for endpoints named 'my-test-postgres'"
76
- [ " $status " -eq 0 ]
76
+ [ " $status " -eq 0 ]
77
77
78
78
# Services
79
79
run verify " there is 1 service named 'my-test-drupal'"
80
80
[ " $status " -eq 0 ]
81
81
82
82
run verify " there is 1 service named 'my-test-varnish'"
83
- [ " $status " -eq 0 ]
83
+ [ " $status " -eq 0 ]
84
84
85
85
run verify " 'port' is '80' for services named 'my-test-drupal'"
86
86
[ " $status " -eq 0 ]
@@ -93,24 +93,24 @@ verify_helm() {
93
93
[ " $status " -eq 0 ]
94
94
95
95
run verify " there is 1 deployment named 'my-test-varnish'"
96
- [ " $status " -eq 0 ]
96
+ [ " $status " -eq 0 ]
97
97
98
98
# Ingress
99
99
run verify " there is 1 ingress named 'my-test-varnish'"
100
- [ " $status " -eq 0 ]
100
+ [ " $status " -eq 0 ]
101
101
102
102
run verify " '.spec.rules[*].host' is 'varnish.test.local' for ingress named 'my-test-varnish'"
103
- [ " $status " -eq 0 ]
103
+ [ " $status " -eq 0 ]
104
104
105
105
run verify " '.spec.rules[*].http.paths[*].backend.serviceName' is 'my-test-varnish' for ingress named 'my-test-varnish'"
106
- [ " $status " -eq 0 ]
106
+ [ " $status " -eq 0 ]
107
107
108
108
# PODs should be started
109
109
run try " at most 5 times every 30s to get pods named 'my-test-drupal' and verify that 'status' is 'running'"
110
110
[ " $status " -eq 0 ]
111
111
112
- run try " at most 5 times every 30s to get pods named 'my-test-varnish' and verify that 'status' is 'running'"
113
- [ " $status " -eq 0 ]
112
+ run try " at most 5 times every 30s to get pods named 'my-test-varnish' and verify that 'status' is 'running'"
113
+ [ " $status " -eq 0 ]
114
114
115
115
# Indicate to other tests the deployment succeeded
116
116
echo " started" > tests.status.tmp
@@ -140,15 +140,15 @@ verify_helm() {
140
140
[ " $status " -eq 0 ]
141
141
[ " $output " == " release \" my-test\" deleted" ]
142
142
143
- run verify " there is 0 service named 'my-test'"
144
- [ " $status " -eq 0 ]
143
+ run verify " there is 0 service named 'my-test'"
144
+ [ " $status " -eq 0 ]
145
145
146
- run verify " there is 0 deployment named 'my-test'"
147
- [ " $status " -eq 0 ]
146
+ run verify " there is 0 deployment named 'my-test'"
147
+ [ " $status " -eq 0 ]
148
148
149
149
sleep 60
150
- run verify " there is 0 pod named 'my-test'"
151
- [ " $status " -eq 0 ]
150
+ run verify " there is 0 pod named 'my-test'"
151
+ [ " $status " -eq 0 ]
152
152
}
153
153
154
154
0 commit comments