File tree 31 files changed +231
-79
lines changed
tests/acceptance/semiautomation
31 files changed +231
-79
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : " database.arangodb.com/v1alpha"
2
+ kind : " ArangoDeployment"
3
+ metadata :
4
+ name : " acceptance-activefailover"
5
+ spec :
6
+ environment : @ENVIRONMENT@
7
+ image : @IMAGE@
8
+ externalAccess :
9
+ type : LoadBalancer
10
+ mode : ActiveFailover
Original file line number Diff line number Diff line change
1
+ apiVersion : " database.arangodb.com/v1alpha"
2
+ kind : " ArangoDeployment"
3
+ metadata :
4
+ name : " acceptance-cluster"
5
+ spec :
6
+ environment : @ENVIRONMENT@
7
+ image : @IMAGE@
8
+ externalAccess :
9
+ type : LoadBalancer
10
+ mode : Cluster
11
+ agents :
12
+ storageClassName : acceptance
13
+ dbservers :
14
+ storageClassName : acceptance
Original file line number Diff line number Diff line change
1
+ apiVersion : " database.arangodb.com/v1alpha"
2
+ kind : " ArangoDeployment"
3
+ metadata :
4
+ name : " acceptance-cluster"
5
+ spec :
6
+ environment : @ENVIRONMENT@
7
+ image : @IMAGE@
8
+ externalAccess :
9
+ type : LoadBalancer
10
+ mode : Cluster
11
+ sync :
12
+ enabled : true
13
+ externalAccess :
14
+ type : LoadBalancer
15
+ accessPackageSecretNames : ["src-accesspackage"]
Original file line number Diff line number Diff line change
1
+ apiVersion : " database.arangodb.com/v1alpha"
2
+ kind : " ArangoDeployment"
3
+ metadata :
4
+ name : " acceptance-cluster2"
5
+ spec :
6
+ environment : @ENVIRONMENT@
7
+ image : @IMAGE@
8
+ externalAccess :
9
+ type : LoadBalancer
10
+ mode : Cluster
11
+ sync :
12
+ enabled : true
13
+ externalAccess :
14
+ type : LoadBalancer
Original file line number Diff line number Diff line change
1
+ apiVersion : " database.arangodb.com/v1alpha"
2
+ kind : " ArangoDeployment"
3
+ metadata :
4
+ name : " acceptance-cluster"
5
+ spec :
6
+ environment : @ENVIRONMENT@
7
+ image : @IMAGE@
8
+ externalAccess :
9
+ type : LoadBalancer
10
+ mode : Cluster
Original file line number Diff line number Diff line change @@ -91,3 +91,22 @@ function fail
91
91
output " Failed" $argv
92
92
exit 1
93
93
end
94
+
95
+ function patchYamlFile
96
+ set -l YAMLFILE $argv [1]
97
+ set -l IMAGE $argv [2]
98
+ set -l ENVIRONMENT $argv [3]
99
+ set -l RESULT $argv [4]
100
+ cp " $YAMLFILE " " $RESULT "
101
+ sed -i " s|@IMAGE@|$IMAGE |" " $RESULT "
102
+ sed -i " s|@ENVIRONMENT|$ENVIRONMENT |" " $RESULT "
103
+ end
104
+
105
+ function checkImages
106
+ if test -z " $ARANGODB_COMMUNITY " -o -z " $ARANGODB_ENTERPRISE "
107
+ echo " Need ARANGODB_COMMUNITY and ARANGODB_ENTERPRISE."
108
+ exit 1
109
+ end
110
+ end
111
+
112
+ checkImages
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ apiVersion : " database.arangodb.com/v1alpha"
2
+ kind : " ArangoDeployment"
3
+ metadata :
4
+ name : " acceptance-single"
5
+ spec :
6
+ environment : @ENVIRONMENT@
7
+ image : @IMAGE@
8
+ externalAccess :
9
+ type : LoadBalancer
10
+ mode : Single
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ source helper.fish
4
4
5
5
set -g TESTNAME test1a
6
6
set -g TESTDESC " Deployment of mode single (development)"
7
- set -g YAMLFILE generated/ single-community-dev .yaml
7
+ set -g YAMLFILE single.yaml
8
8
set -g DEPLOYMENT acceptance-single
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_COMMUNITY Development work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" " $DEPLOYMENT -sngl" " 1/1 *Running" 1 120
14
16
and waitForKubectl " get service" " $DEPLOYMENT *ClusterIP" 8529 1 120
15
17
and waitForKubectl " get service" " $DEPLOYMENT -ea *LoadBalancer" " -v;pending" 1 180
@@ -25,7 +27,7 @@ output "Work" "Now please check external access on this URL with your browser:"
25
27
inputAndLogResult
26
28
27
29
# Cleanup
28
- kubectl delete -f $YAMLFILE
30
+ kubectl delete -f work.yaml
29
31
waitForKubectl " get pod" $DEPLOYMENT -sngl " " 0 120
30
32
or fail " Could not delete deployment."
31
33
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ source helper.fish
4
4
5
5
set -g TESTNAME test1b
6
6
set -g TESTDESC " Deployment of mode active/failover (development)"
7
- set -g YAMLFILE generated/ activefailover-community-dev .yaml
7
+ set -g YAMLFILE activefailover.yaml
8
8
set -g DEPLOYMENT acceptance-activefailover
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_COMMUNITY Development work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" $DEPLOYMENT " 1 *Running" 5 120
14
16
and waitForKubectl " get pod" " $DEPLOYMENT -sngl.*1/1 *Running" " " 1 120
15
17
and waitForKubectl " get pod" " $DEPLOYMENT -sngl.*0/1 *Running" " " 1 120
@@ -27,7 +29,7 @@ output "Work" "Now please check external access on this URL with your browser:"
27
29
inputAndLogResult
28
30
29
31
# Cleanup
30
- kubectl delete -f $YAMLFILE
32
+ kubectl delete -f work.yaml
31
33
waitForKubectl " get pod" $DEPLOYMENT " " 0 120
32
34
or fail " Could not delete deployment."
33
35
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ source helper.fish
4
4
5
5
set -g TESTNAME test1c
6
6
set -g TESTDESC " Deployment of mode cluster (development, enterprise)"
7
- set -g YAMLFILE generated/ cluster-enterprise-dev .yaml
7
+ set -g YAMLFILE cluster.yaml
8
8
set -g DEPLOYMENT acceptance-cluster
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 3 120
14
16
and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
15
17
and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 3 120
@@ -27,7 +29,7 @@ output "Work" "Now please check external access on this URL with your browser:"
27
29
inputAndLogResult
28
30
29
31
# Cleanup
30
- kubectl delete -f $YAMLFILE
32
+ kubectl delete -f work.yaml
31
33
waitForKubectl " get pod" $DEPLOYMENT " " 0 120
32
34
or fail " Could not delete deployment."
33
35
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ source helper.fish
4
4
5
5
set -g TESTNAME test1d
6
6
set -g TESTDESC " Deployment of mode cluster with sync (development, enterprise)"
7
- set -g YAMLFILE generated/ cluster-sync-enterprise-dev .yaml
7
+ set -g YAMLFILE cluster-sync.yaml
8
8
set -g DEPLOYMENT acceptance-cluster
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 15 120
14
16
and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 3 120
15
17
and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
@@ -31,7 +33,7 @@ output "Work" "Now please check external access on this URL with your browser:"
31
33
inputAndLogResult
32
34
33
35
# Cleanup
34
- kubectl delete -f $YAMLFILE
36
+ kubectl delete -f work.yaml
35
37
waitForKubectl " get pod" $DEPLOYMENT " " 0 120
36
38
or fail " Could not delete deployment."
37
39
Original file line number Diff line number Diff line change 3
3
source helper.fish
4
4
5
5
set -g TESTNAME test2a
6
- set -g TESTDESC " Scale an active failover deployment (enterprise)"
7
- set -g YAMLFILE generated/ activefailover-enterprise-dev .yaml
6
+ set -g TESTDESC " Scale an active failover deployment (enterprise, development )"
7
+ set -g YAMLFILE activefailover.yaml
8
8
set -g DEPLOYMENT acceptance-activefailover
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" $DEPLOYMENT " 1 *Running" 5 120
14
16
and waitForKubectl " get pod" " $DEPLOYMENT -sngl.*1/1 *Running" " " 1 120
15
17
and waitForKubectl " get pod" " $DEPLOYMENT -sngl.*0/1 *Running" " " 1 120
@@ -43,7 +45,7 @@ output "Work" "Now please check external access on this URL with your browser:"
43
45
inputAndLogResult
44
46
45
47
# Cleanup
46
- kubectl delete -f $YAMLFILE
48
+ kubectl delete -f work.yaml
47
49
waitForKubectl " get pod" $DEPLOYMENT -sngl " " 0 120
48
50
or fail " Could not delete deployment."
49
51
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ source helper.fish
4
4
5
5
set -g TESTNAME test2b
6
6
set -g TESTDESC " Scale a cluster deployment (development, enterprise)"
7
- set -g YAMLFILE generated/ cluster-enterprise-dev .yaml
7
+ set -g YAMLFILE cluster.yaml
8
8
set -g DEPLOYMENT acceptance-cluster
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Development work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 9 120
14
16
and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 3 120
15
17
and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
@@ -64,7 +66,7 @@ output "Work" "Now please check external access on this URL with your browser:"
64
66
inputAndLogResult
65
67
66
68
# Cleanup
67
- kubectl delete -f $YAMLFILE
69
+ kubectl delete -f work.yaml
68
70
and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 0 120
69
71
or fail " Could not delete deployment."
70
72
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ source helper.fish
4
4
5
5
set -g TESTNAME test3a
6
6
set -g TESTDESC " Deployment of mode single (production)"
7
- set -g YAMLFILE generated/ single-enterprise-pro .yaml
7
+ set -g YAMLFILE single.yaml
8
8
set -g DEPLOYMENT acceptance-single
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Production work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" " $DEPLOYMENT -sngl" " 1/1 *Running" 1 120
14
16
and waitForKubectl " get service" " $DEPLOYMENT *ClusterIP" 8529 1 120
15
17
and waitForKubectl " get service" " $DEPLOYMENT -ea *LoadBalancer" " -v;pending" 1 180
@@ -25,7 +27,7 @@ output "Work" "Now please check external access on this URL with your browser:"
25
27
inputAndLogResult
26
28
27
29
# Cleanup
28
- kubectl delete -f $YAMLFILE
30
+ kubectl delete -f work.yaml
29
31
waitForKubectl " get pod" $DEPLOYMENT -sngl " " 0 120
30
32
or fail " Could not delete deployment."
31
33
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ source helper.fish
4
4
5
5
set -g TESTNAME test3b
6
6
set -g TESTDESC " Deployment of mode active/failover (production)"
7
- set -g YAMLFILE generated/ activefailover-community-pro .yaml
7
+ set -g YAMLFILE activefailover.yaml
8
8
set -g DEPLOYMENT acceptance-activefailover
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_COMMUNITY Production work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" $DEPLOYMENT " 1 *Running" 5 120
14
16
and waitForKubectl " get pod" " $DEPLOYMENT -sngl.*1/1 *Running" " " 1 120
15
17
and waitForKubectl " get pod" " $DEPLOYMENT -sngl.*0/1 *Running" " " 1 120
@@ -27,7 +29,7 @@ output "Work" "Now please check external access on this URL with your browser:"
27
29
inputAndLogResult
28
30
29
31
# Cleanup
30
- kubectl delete -f $YAMLFILE
32
+ kubectl delete -f work.yaml
31
33
waitForKubectl " get pod" $DEPLOYMENT " " 0 120
32
34
or fail " Could not delete deployment."
33
35
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ source helper.fish
4
4
5
5
set -g TESTNAME test3c
6
6
set -g TESTDESC " Deployment of mode cluster (production, enterprise)"
7
- set -g YAMLFILE generated/ cluster-enterprise-pro .yaml
7
+ set -g YAMLFILE cluster.yaml
8
8
set -g DEPLOYMENT acceptance-cluster
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Production work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 3 120
14
16
and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
15
17
and waitForKubectl " get pod" " $DEPLOYMENT -crdn" " 1/1 *Running" 3 120
@@ -27,7 +29,7 @@ output "Work" "Now please check external access on this URL with your browser:"
27
29
inputAndLogResult
28
30
29
31
# Cleanup
30
- kubectl delete -f $YAMLFILE
32
+ kubectl delete -f work.yaml
31
33
waitForKubectl " get pod" $DEPLOYMENT " " 0 120
32
34
or fail " Could not delete deployment."
33
35
Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ source helper.fish
4
4
5
5
set -g TESTNAME test3d
6
6
set -g TESTDESC " Scale a cluster deployment (production, enterprise)"
7
- set -g YAMLFILE generated/ cluster-enterprise-pro .yaml
7
+ set -g YAMLFILE cluster.yaml
8
8
set -g DEPLOYMENT acceptance-cluster
9
9
printheader
10
10
11
+ patchYamlFile $YAMLFILE $ARANGODB_ENTERPRISE Production work.yaml
12
+
11
13
# Deploy and check
12
- kubectl apply -f $YAMLFILE
14
+ kubectl apply -f work.yaml
13
15
and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 9 120
14
16
and waitForKubectl " get pod" " $DEPLOYMENT -prmr" " 1/1 *Running" 3 120
15
17
and waitForKubectl " get pod" " $DEPLOYMENT -agnt" " 1/1 *Running" 3 120
@@ -64,7 +66,7 @@ output "Work" "Now please check external access on this URL with your browser:"
64
66
inputAndLogResult
65
67
66
68
# Cleanup
67
- kubectl delete -f $YAMLFILE
69
+ kubectl delete -f work.yaml
68
70
and waitForKubectl " get pod" " $DEPLOYMENT " " 1/1 *Running" 0 120
69
71
or fail " Could not delete deployment."
70
72
You can’t perform that action at this time.
0 commit comments