Skip to content

Commit afc8416

Browse files
committed
Finalize test6g
1 parent a52da27 commit afc8416

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

tests/acceptance/semiautomation/test6g.fish

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,27 @@ source helper.fish
44
checkImages
55

66
set -g TESTNAME test6g
7-
set -g TESTDESC "Node resilience in active/failover, repl factor 1 (production)"
8-
set -g YAMLFILE activefailover.yaml
9-
set -g DEPLOYMENT acceptance-activefailover
7+
set -g TESTDESC "Node resilience in mode cluster (development, enterprise, local storage)"
8+
set -g YAMLFILE cluster-local-storage.yaml
9+
set -g YAMLFILESTORAGE local-storage.yaml
10+
set -g DEPLOYMENT acceptance-cluster
1011
printheader
1112

12-
patchYamlFile $YAMLFILE $ARANGODB_COMMUNITY Production work.yaml
13+
patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
14+
15+
# Deploy local storage:
16+
kubectl apply -f $YAMLFILESTORAGE
17+
and waitForKubectl "get storageclass" "acceptance.*arangodb.*localstorage" "" 1 1
18+
or fail "Local storage could not be deployed."
1319

1420
# Deploy and check
1521
kubectl apply -f work.yaml
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
22+
and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 3 2
23+
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 2
24+
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 2
1925
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 2
2026
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 3
27+
and waitForKubectl "get pvc" "$DEPLOYMENT" "RWO *acceptance" 6 2
2128
or fail "Deployment did not get ready."
2229

2330
# Automatic check
@@ -26,12 +33,17 @@ testArangoDB $ip 2
2633
or fail "ArangoDB was not reachable."
2734

2835
# Manual check
29-
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, use replication factor 1 for one collection." "Then, remove the node on which the dbserver pod with the shard resides." "The lost pods should come back (on a different machine), except the one." "The service should be uninterrupted, except for the one collection." "All data except the one must still be there." "This is only for locally attached persistent volumes."
36+
output "Work" "Now please check external access on this URL with your browser:" " https://$ip:8529/" "then put some data in there in different collections, some with" "replicationFactor set to 1 and some set to 2." "Then cordon off a node running a dbserver pod and delete the pod." "Service (including writes) must continue, except for the collection without" "replication. It should be possible to drop that collection and eventually" "remove the dbserver. A new dbserver should come up on a different node" "after some time."
3037
inputAndLogResult
3138

3239
# Cleanup
3340
kubectl delete -f work.yaml
3441
waitForKubectl "get pod" $DEPLOYMENT "" 0 2
3542
or fail "Could not delete deployment."
3643

44+
kubectl delete -f $YAMLFILESTORAGE
45+
kubectl delete storageclass acceptance
46+
waitForKubectl "get storageclass" "acceptance.*arangodb.*localstorage" "" 0 2
47+
or fail "Could not delete deployed storageclass."
48+
3749
output "Ready" ""

0 commit comments

Comments
 (0)