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
Copy file name to clipboardExpand all lines: tests/acceptance/semiautomation/test6g.fish
+20-8Lines changed: 20 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,27 @@ source helper.fish
4
4
checkImages
5
5
6
6
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
10
11
printheader
11
12
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."
13
19
14
20
# Deploy and check
15
21
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
19
25
and waitForKubectl "get service""$DEPLOYMENT *ClusterIP" 8529 1 2
20
26
and waitForKubectl "get service""$DEPLOYMENT-ea *LoadBalancer""-v;pending" 1 3
27
+
and waitForKubectl "get pvc""$DEPLOYMENT""RWO *acceptance" 6 2
21
28
or fail "Deployment did not get ready."
22
29
23
30
# Automatic check
@@ -26,12 +33,17 @@ testArangoDB $ip 2
26
33
or fail "ArangoDB was not reachable."
27
34
28
35
# 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."
0 commit comments