Skip to content

Commit 89564fe

Browse files
author
Lars Maier
authored
Merge pull request #298 from arangodb/timeout-configurable
Make timeout configurable.
2 parents ee976b4 + afc8416 commit 89564fe

24 files changed

+248
-225
lines changed

tests/acceptance/semiautomation/helper.fish

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function waitForKubectl
1414
set -l select $argv[2]
1515
set -l good (string split -- ";" "$argv[3]")
1616
set -l expected $argv[4]
17-
set -l timeout $argv[5]
17+
set -l timeout (math "$argv[5]" \* "$TIMEOUT")
1818

1919
echo
2020
echo "Testing `kubectl $op`"
@@ -42,8 +42,8 @@ function waitForKubectl
4242
end
4343

4444
function output
45-
if which say > /dev/null
46-
say $argv[1] > /dev/null ^ /dev/null
45+
if test -n "$SAY"
46+
eval $SAY $argv[1] > /dev/null ^ /dev/null
4747
end
4848
echo
4949
for l in $argv[2..-1] ; echo $l ; end
@@ -71,7 +71,7 @@ end
7171

7272
function testArangoDB
7373
set -l ip $argv[1]
74-
set -l timeout $argv[2]
74+
set -l timeout (math "$argv[2]" \* "$TIMEOUT")
7575
set -l n 0
7676
echo Waiting for ArangoDB to be ready...
7777
while true
@@ -114,3 +114,14 @@ function checkImages
114114
exit 1
115115
end
116116
end
117+
118+
if test -z "$TIMEOUT"
119+
set -xg TIMEOUT 60
120+
end
121+
122+
if test -z "$SAY"
123+
if which say > /dev/null
124+
set -xg SAY say
125+
end
126+
end
127+

tests/acceptance/semiautomation/test1a.fish

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ patchYamlFile $YAMLFILE $ARANGODB_COMMUNITY Development work.yaml
1313

1414
# Deploy and check
1515
kubectl apply -f work.yaml
16-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl" "1/1 *Running" 1 120
17-
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
18-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
16+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl" "1/1 *Running" 1 2
17+
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 2
18+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 3
1919
or fail "Deployment did not get ready."
2020

2121
# Automatic check
2222
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
23-
testArangoDB $ip 120
23+
testArangoDB $ip 2
2424
or fail "ArangoDB was not reachable."
2525

2626
# Manual check
@@ -29,7 +29,7 @@ inputAndLogResult
2929

3030
# Cleanup
3131
kubectl delete -f work.yaml
32-
waitForKubectl "get pod" $DEPLOYMENT-sngl "" 0 120
32+
waitForKubectl "get pod" $DEPLOYMENT-sngl "" 0 2
3333
or fail "Could not delete deployment."
3434

3535
output "Ready" ""

tests/acceptance/semiautomation/test1b.fish

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ patchYamlFile $YAMLFILE $ARANGODB_COMMUNITY Development work.yaml
1313

1414
# Deploy and check
1515
kubectl apply -f work.yaml
16-
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 120
17-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 120
18-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 120
19-
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
20-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
16+
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 2
17+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 2
18+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 2
19+
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 2
20+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 3
2121
or fail "Deployment did not get ready."
2222

2323
# Automatic check
2424
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
25-
testArangoDB $ip 120
25+
testArangoDB $ip 2
2626
or fail "ArangoDB was not reachable."
2727

2828
# Manual check
@@ -31,7 +31,7 @@ inputAndLogResult
3131

3232
# Cleanup
3333
kubectl delete -f work.yaml
34-
waitForKubectl "get pod" $DEPLOYMENT "" 0 120
34+
waitForKubectl "get pod" $DEPLOYMENT "" 0 2
3535
or fail "Could not delete deployment."
3636

3737
output "Ready" ""

tests/acceptance/semiautomation/test1c.fish

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
1313

1414
# Deploy and check
1515
kubectl apply -f work.yaml
16-
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 3 120
17-
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 120
18-
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 120
19-
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
20-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
16+
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 3 2
17+
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 2
18+
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 2
19+
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 2
20+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 3
2121
or fail "Deployment did not get ready."
2222

2323
# Automatic check
2424
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
25-
testArangoDB $ip 120
25+
testArangoDB $ip 2
2626
or fail "ArangoDB was not reachable."
2727

2828
# Manual check
@@ -31,7 +31,7 @@ inputAndLogResult
3131

3232
# Cleanup
3333
kubectl delete -f work.yaml
34-
waitForKubectl "get pod" $DEPLOYMENT "" 0 120
34+
waitForKubectl "get pod" $DEPLOYMENT "" 0 2
3535
or fail "Could not delete deployment."
3636

3737
output "Ready" ""

tests/acceptance/semiautomation/test1d.fish

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
1313

1414
# Deploy and check
1515
kubectl apply -f work.yaml
16-
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 15 120
17-
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 3 120
18-
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 120
19-
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 120
20-
and waitForKubectl "get pod" "$DEPLOYMENT-syma" "1/1 *Running" 3 120
21-
and waitForKubectl "get pod" "$DEPLOYMENT-sywo" "1/1 *Running" 3 120
22-
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
23-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
24-
and waitForKubectl "get service" "$DEPLOYMENT-sync *LoadBalancer" "-v;pending" 1 180
16+
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 15 2
17+
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 3 2
18+
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 2
19+
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 2
20+
and waitForKubectl "get pod" "$DEPLOYMENT-syma" "1/1 *Running" 3 2
21+
and waitForKubectl "get pod" "$DEPLOYMENT-sywo" "1/1 *Running" 3 2
22+
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 2
23+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 3
24+
and waitForKubectl "get service" "$DEPLOYMENT-sync *LoadBalancer" "-v;pending" 1 3
2525
or fail "Deployment did not get ready."
2626

2727
# Automatic check
2828
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
29-
testArangoDB $ip 120
29+
testArangoDB $ip 2
3030
or fail "ArangoDB was not reachable."
3131

3232
# Manual check
@@ -35,7 +35,7 @@ inputAndLogResult
3535

3636
# Cleanup
3737
kubectl delete -f work.yaml
38-
waitForKubectl "get pod" $DEPLOYMENT "" 0 120
38+
waitForKubectl "get pod" $DEPLOYMENT "" 0 2
3939
or fail "Could not delete deployment."
4040

4141
output "Ready" ""

tests/acceptance/semiautomation/test2a.fish

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,32 @@ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
1313

1414
# Deploy and check
1515
kubectl apply -f work.yaml
16-
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 120
17-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 120
18-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 120
19-
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
20-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
16+
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 2
17+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 2
18+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 2
19+
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 2
20+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 3
2121
or fail "Deployment did not get ready."
2222

2323
# Automatic check
2424
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
25-
testArangoDB $ip 120
25+
testArangoDB $ip 2
2626
or fail "ArangoDB was not reachable."
2727

2828
# Scale up the deployment
2929
output "Next" "Patching Spec for Scaling up"
3030
kubectl patch arango $DEPLOYMENT --type='json' -p='[{"op": "replace", "path": "/spec/single/count", "value":3}]'
31-
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 6 120
32-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 120
33-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 2 120
31+
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 6 2
32+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 2
33+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 2 2
3434
or fail "Patched deployment did not get ready."
3535

3636
# Scale down the deployment
3737
output "Next" "Patching Spec for Scaling down"
3838
kubectl patch arango $DEPLOYMENT --type='json' -p='[{"op": "replace", "path": "/spec/single/count", "value":2}]'
39-
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 120
40-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 120
41-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 120
39+
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 2
40+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 2
41+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 2
4242
or fail "Patched deployment did not get ready."
4343

4444
# Manual check
@@ -47,7 +47,7 @@ inputAndLogResult
4747

4848
# Cleanup
4949
kubectl delete -f work.yaml
50-
waitForKubectl "get pod" $DEPLOYMENT-sngl "" 0 120
50+
waitForKubectl "get pod" $DEPLOYMENT-sngl "" 0 2
5151
or fail "Could not delete deployment."
5252

5353
output "Ready" ""

tests/acceptance/semiautomation/test2b.fish

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,53 +13,53 @@ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
1313

1414
# Deploy and check
1515
kubectl apply -f work.yaml
16-
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 9 120
17-
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 3 120
18-
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 120
19-
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 120
20-
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
21-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
16+
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 9 2
17+
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 3 2
18+
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 2
19+
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 2
20+
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 2
21+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 3
2222
or fail "Deployment did not get ready."
2323

2424
# Automatic check
2525
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
26-
testArangoDB $ip 120
26+
testArangoDB $ip 2
2727
or fail "ArangoDB was not reachable."
2828

2929
# Patching
3030
output "Scaling db servers up" "Patching Spec for Scaling up DBservers"
3131
kubectl patch arango $DEPLOYMENT --type='json' -p='[{"op": "replace", "path": "/spec/dbservers/count", "value":5}]'
32-
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 11 120
33-
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 5 120
34-
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 120
35-
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 120
32+
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 11 2
33+
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 5 2
34+
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 2
35+
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 2
3636
or fail "Deployment did not get ready."
3737

3838
# Patching
3939
output "Scaling coordinators up" "Patching Spec for Scaling up coordinators"
4040
kubectl patch arango $DEPLOYMENT --type='json' -p='[{"op": "replace", "path": "/spec/coordinators/count", "value":4}]'
41-
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 12 120
42-
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 5 120
43-
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 120
44-
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 4 120
41+
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 12 2
42+
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 5 2
43+
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 2
44+
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 4 2
4545
or fail "Deployment did not get ready."
4646

4747
# Patching
4848
output "Scaling dbservers down" "Patching Spec for Scaling down dbservers"
4949
kubectl patch arango $DEPLOYMENT --type='json' -p='[{"op": "replace", "path": "/spec/dbservers/count", "value":2}]'
50-
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 9 120
51-
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 2 120
52-
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 120
53-
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 4 120
50+
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 9 2
51+
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 2 2
52+
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 2
53+
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 4 2
5454
or fail "Deployment did not get ready."
5555

5656
# Patching
5757
output "Scaling coordinators down" "Patching Spec for Scaling down coordinators"
5858
kubectl patch arango $DEPLOYMENT --type='json' -p='[{"op": "replace", "path": "/spec/coordinators/count", "value":1}]'
59-
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 6 120
60-
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 2 120
61-
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 120
62-
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 1 120
59+
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 6 2
60+
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 2 2
61+
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 2
62+
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 1 2
6363
or fail "Deployment did not get ready."
6464

6565
# Manual check
@@ -68,7 +68,7 @@ inputAndLogResult
6868

6969
# Cleanup
7070
kubectl delete -f work.yaml
71-
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 0 120
71+
and waitForKubectl "get pod" "$DEPLOYMENT" "1/1 *Running" 0 2
7272
or fail "Could not delete deployment."
7373

7474
output "Ready" ""

tests/acceptance/semiautomation/test3a.fish

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Production work.yaml
1313

1414
# Deploy and check
1515
kubectl apply -f work.yaml
16-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl" "1/1 *Running" 1 120
17-
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
18-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
16+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl" "1/1 *Running" 1 2
17+
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 2
18+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 3
1919
or fail "Deployment did not get ready."
2020

2121
# Automatic check
2222
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
23-
testArangoDB $ip 120
23+
testArangoDB $ip 2
2424
or fail "ArangoDB was not reachable."
2525

2626
# Manual check
@@ -29,7 +29,7 @@ inputAndLogResult
2929

3030
# Cleanup
3131
kubectl delete -f work.yaml
32-
waitForKubectl "get pod" $DEPLOYMENT-sngl "" 0 120
32+
waitForKubectl "get pod" $DEPLOYMENT-sngl "" 0 2
3333
or fail "Could not delete deployment."
3434

3535
output "Ready" ""

tests/acceptance/semiautomation/test3b.fish

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ patchYamlFile $YAMLFILE $ARANGODB_COMMUNITY Production work.yaml
1313

1414
# Deploy and check
1515
kubectl apply -f work.yaml
16-
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 120
17-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 120
18-
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 120
19-
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
20-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
16+
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 2
17+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 2
18+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 2
19+
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 2
20+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 3
2121
or fail "Deployment did not get ready."
2222

2323
# Automatic check
2424
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
25-
testArangoDB $ip 120
25+
testArangoDB $ip 2
2626
or fail "ArangoDB was not reachable."
2727

2828
# Manual check
@@ -31,7 +31,7 @@ inputAndLogResult
3131

3232
# Cleanup
3333
kubectl delete -f work.yaml
34-
waitForKubectl "get pod" $DEPLOYMENT "" 0 120
34+
waitForKubectl "get pod" $DEPLOYMENT "" 0 2
3535
or fail "Could not delete deployment."
3636

3737
output "Ready" ""

0 commit comments

Comments
 (0)