Skip to content

Commit 01534b5

Browse files
committed
More tests ready.
1 parent ad9e603 commit 01534b5

17 files changed

+307
-24
lines changed

tests/acceptance/cluster-local-storage.template.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ spec:
88
externalAccess:
99
type: LoadBalancer
1010
mode: Cluster
11-
storageClassName: acceptance
11+
agents:
12+
storageClassName: acceptance
13+
dbservers:
14+
storageClassName: acceptance

tests/acceptance/cluster-sync.template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ spec:
1010
mode: Cluster
1111
sync:
1212
enabled: true
13+
externalAccess:
14+
type: LoadBalancer

tests/acceptance/generate.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ version="arangodb-preview:3.4.0-rc.3"
55
enterprise_secret="$ARANGO_EP_SECRET" #only the number
66
community="arangodb/$version"
77
enterprise="registry.arangodb.com/arangodb/$version-$enterprise_secret"
8+
community="neunhoef/arangodb:3.4"
9+
enterprise="neunhoef/arangodb:3.4"
810

911
rm -fr generated
1012
mkdir -p generated
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: "storage.arangodb.com/v1alpha"
2+
kind: "ArangoLocalStorage"
3+
metadata:
4+
name: "acceptance-local-storage"
5+
spec:
6+
storageClass:
7+
name: acceptance
8+
localPath:
9+
- /var/lib/acceptance-test

tests/acceptance/semiautomation/helper.fish

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function output
4545
if which say > /dev/null
4646
say $argv[1] > /dev/null ^ /dev/null
4747
end
48+
echo
4849
for l in $argv[2..-1] ; echo $l ; end
4950
end
5051

@@ -55,6 +56,7 @@ end
5556
function inputAndLogResult
5657
read -P "Test result: " result
5758
log $result
59+
echo
5860
end
5961

6062
function waitForUser
@@ -81,9 +83,11 @@ function testArangoDB
8183
return 1
8284
end
8385
echo Waiting "$n($timeout)"...
86+
sleep 1
8487
end
8588
end
8689

8790
function fail
8891
output "Failed" $argv
92+
exit 1
8993
end

tests/acceptance/semiautomation/test1a.fish

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source helper.fish
44

55
set -g TESTNAME test1a
6-
set -g TESTDESC "Deployment of mode single"
6+
set -g TESTDESC "Deployment of mode single (development)"
77
set -g YAMLFILE generated/single-community-dev.yaml
88
set -g DEPLOYMENT acceptance-single
99
printheader
@@ -12,12 +12,12 @@ printheader
1212
kubectl apply -f $YAMLFILE
1313
and waitForKubectl "get pod" "$DEPLOYMENT-sngl" "1/1 *Running" 1 120
1414
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
15-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 120
15+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
1616
or fail "Deployment did not get ready."
1717

1818
# Automatic check
1919
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
20-
testArangoDB $ip 60
20+
testArangoDB $ip 120
2121
or fail "ArangoDB was not reachable."
2222

2323
# Manual check

tests/acceptance/semiautomation/test1b.fish

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
source helper.fish
44

55
set -g TESTNAME test1b
6-
set -g TESTDESC "Deployment of mode active/failover"
7-
set -g YAMLFILE generated/activefailover-community-pro.yaml
6+
set -g TESTDESC "Deployment of mode active/failover (development)"
7+
set -g YAMLFILE generated/activefailover-community-dev.yaml
88
set -g DEPLOYMENT acceptance-activefailover
99
printheader
1010

@@ -14,12 +14,12 @@ and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 120
1414
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 120
1515
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 120
1616
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
17-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 120
17+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
1818
or fail "Deployment did not get ready."
1919

2020
# Automatic check
2121
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
22-
testArangoDB $ip 60
22+
testArangoDB $ip 120
2323
or fail "ArangoDB was not reachable."
2424

2525
# Manual check

tests/acceptance/semiautomation/test1c.fish

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source helper.fish
44

55
set -g TESTNAME test1c
6-
set -g TESTDESC "Deployment of mode cluster (enterprise)"
6+
set -g TESTDESC "Deployment of mode cluster (development, enterprise)"
77
set -g YAMLFILE generated/cluster-enterprise-dev.yaml
88
set -g DEPLOYMENT acceptance-cluster
99
printheader
@@ -14,12 +14,12 @@ and waitForKubectl "get pod" "$DEPLOYMENT-prmr" "1/1 *Running" 3 120
1414
and waitForKubectl "get pod" "$DEPLOYMENT-agnt" "1/1 *Running" 3 120
1515
and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 120
1616
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
17-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 120
17+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
1818
or fail "Deployment did not get ready."
1919

2020
# Automatic check
2121
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
22-
testArangoDB $ip 60
22+
testArangoDB $ip 120
2323
or fail "ArangoDB was not reachable."
2424

2525
# Manual check

tests/acceptance/semiautomation/test1d.fish

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source helper.fish
44

55
set -g TESTNAME test1d
6-
set -g TESTDESC "Deployment of mode cluster with sync (enterprise)"
6+
set -g TESTDESC "Deployment of mode cluster with sync (development, enterprise)"
77
set -g YAMLFILE generated/cluster-sync-enterprise-dev.yaml
88
set -g DEPLOYMENT acceptance-cluster
99
printheader
@@ -17,13 +17,13 @@ and waitForKubectl "get pod" "$DEPLOYMENT-crdn" "1/1 *Running" 3 120
1717
and waitForKubectl "get pod" "$DEPLOYMENT-syma" "1/1 *Running" 3 120
1818
and waitForKubectl "get pod" "$DEPLOYMENT-sywo" "1/1 *Running" 3 120
1919
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
20-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 120
21-
and waitForKubectl "get service" "$DEPLOYMENT-sync *LoadBalancer" "-v;pending" 1 120
20+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
21+
and waitForKubectl "get service" "$DEPLOYMENT-sync *LoadBalancer" "-v;pending" 1 180
2222
or fail "Deployment did not get ready."
2323

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

2929
# Manual check

tests/acceptance/semiautomation/test2a.fish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 120
1414
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*1/1 *Running" "" 1 120
1515
and waitForKubectl "get pod" "$DEPLOYMENT-sngl.*0/1 *Running" "" 1 120
1616
and waitForKubectl "get service" "$DEPLOYMENT *ClusterIP" 8529 1 120
17-
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 120
17+
and waitForKubectl "get service" "$DEPLOYMENT-ea *LoadBalancer" "-v;pending" 1 180
1818
or fail "Deployment did not get ready."
1919

2020
# Automatic check
2121
set ip (getLoadBalancerIP "$DEPLOYMENT-ea")
22-
testArangoDB $ip 60
22+
testArangoDB $ip 120
2323
or fail "ArangoDB was not reachable."
2424

2525
# Scale up the deployment

0 commit comments

Comments
 (0)