Skip to content

Commit 90784a0

Browse files
authored
Merge pull request #371 from arangodb/feature/acc-tests-semi-license-key
License Key Tests
2 parents fd1a4e4 + 029d819 commit 90784a0

31 files changed

+96
-0
lines changed

tests/acceptance/semiautomation/activefailover.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ spec:
88
disableIPv6: @DISABLEIPV6@
99
externalAccess:
1010
type: LoadBalancer
11+
license:
12+
secretName: arangodb-license-key
1113
mode: ActiveFailover

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ spec:
99
externalAccess:
1010
type: LoadBalancer
1111
mode: Cluster
12+
license:
13+
secretName: arangodb-license-key
1214
agents:
1315
storageClassName: acceptance
1416
dbservers:

tests/acceptance/semiautomation/cluster-sync.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ spec:
99
externalAccess:
1010
type: LoadBalancer
1111
mode: Cluster
12+
license:
13+
secretName: arangodb-license-key
1214
sync:
1315
enabled: true
1416
externalAccess:

tests/acceptance/semiautomation/cluster-sync1.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ spec:
99
externalAccess:
1010
type: LoadBalancer
1111
mode: Cluster
12+
license:
13+
secretName: arangodb-license-key
1214
sync:
1315
enabled: true
1416
externalAccess:

tests/acceptance/semiautomation/cluster-sync2.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ spec:
99
externalAccess:
1010
type: LoadBalancer
1111
mode: Cluster
12+
license:
13+
secretName: arangodb-license-key
1214
sync:
1315
enabled: true
1416
externalAccess:

tests/acceptance/semiautomation/cluster.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ spec:
88
disableIPv6: @DISABLEIPV6@
99
externalAccess:
1010
type: LoadBalancer
11+
license:
12+
secretName: arangodb-license-key
1113
mode: Cluster

tests/acceptance/semiautomation/helper.fish

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ function output
4949
for l in $argv[2..-1] ; echo $l ; end
5050
end
5151

52+
function ensureLicenseKey
53+
if test -z "$ARANGO_LICENSE_KEY"
54+
echo "Need ARANGO_LICENSE_KEY for enterprise image."
55+
exit 1
56+
end
57+
kubectl get secret arangodb-license-key ; or kubectl create secret generic arangodb-license-key \
58+
--from-literal=token="$ARANGO_LICENSE_KEY" > /dev/null
59+
end
60+
5261
function log
5362
echo "$argv[1] Test: $TESTNAME, Desc: $TESTDESC" >> testprotocol.log
5463
end

tests/acceptance/semiautomation/single.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ spec:
88
disableIPv6: @DISABLEIPV6@
99
externalAccess:
1010
type: LoadBalancer
11+
license:
12+
secretName: arangodb-license-key
1113
mode: Single

tests/acceptance/semiautomation/test1a.fish

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ printheader
1111

1212
patchYamlFile $YAMLFILE $ARANGODB_COMMUNITY Development work.yaml
1313

14+
# Ensure enterprise license key
15+
ensureLicenseKey
16+
1417
# Deploy and check
1518
kubectl apply -f work.yaml
1619
and waitForKubectl "get pod" "$DEPLOYMENT-sngl" "1/1 *Running" 1 2

tests/acceptance/semiautomation/test1b.fish

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ printheader
1111

1212
patchYamlFile $YAMLFILE $ARANGODB_COMMUNITY Development work.yaml
1313

14+
# Ensure enterprise license key
15+
ensureLicenseKey
16+
17+
1418
# Deploy and check
1519
kubectl apply -f work.yaml
1620
and waitForKubectl "get pod" $DEPLOYMENT "1 *Running" 5 2

0 commit comments

Comments
 (0)