Skip to content

Commit 2ea94c1

Browse files
committed
New test.
1 parent 01534b5 commit 2ea94c1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/fish
2+
3+
source helper.fish
4+
5+
set -g TESTNAME test5a
6+
set -g TESTDESC "Pod resilience in mode single (production)"
7+
set -g YAMLFILE generated/single-community-pro.yaml
8+
set -g DEPLOYMENT acceptance-single
9+
printheader
10+
11+
# Deploy and check
12+
kubectl apply -f $YAMLFILE
13+
and waitForKubectl "get pod" "$DEPLOYMENT-sngl" "1/1 *Running" 1 120
14+
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
15+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
16+
or fail "Deployment did not get ready."
17+
18+
# Automatic check
19+
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
20+
testArangoDB $ip 120
21+
or fail "ArangoDB was not reachable."
22+
23+
# Manual check
24+
output "Work" "Now please check external access on this URL with your browser:" " https://$ip:8529/" "then type the outcome followed by ENTER." "Furthermore, put some data in and kill the single server pod." "Wait until it comes back and then see if the data is still there."
25+
inputAndLogResult
26+
27+
# Cleanup
28+
kubectl delete -f $YAMLFILE
29+
waitForKubectl "get pod" $DEPLOYMENT-sngl "" 0 120
30+
or fail "Could not delete deployment."
31+
32+
output "Ready" ""

0 commit comments

Comments
 (0)