Skip to content

Commit 387fb82

Browse files
author
lamai93
committed
Fixed tests once again.
1 parent b60e34f commit 387fb82

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

scripts/kube_create_license_key_secret.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
#!/bin/sh
22

3-
LICENSE=$2
43
NS=$1
54

6-
if [ -z $LICENSE ]; then
7-
echo "No enterprise license set"
8-
exit 0
9-
fi
10-
115
if [ -z $NS ]; then
126
echo "Specify a namespace argument"
137
exit 1
148
fi
159

10+
if [ -z $2 ]; then
11+
echo "No enterprise license set"
12+
exit 0
13+
fi
14+
15+
LICENSE=$(echo -n "$2" | base64 -w 0)
16+
1617
kubectl apply -f - <<EOF
1718
apiVersion: v1
1819
data:

tests/test_util.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ func newDeployment(name string) *api.ArangoDeployment {
250250
},
251251
Spec: api.DeploymentSpec{
252252
ImagePullPolicy: util.NewPullPolicy(v1.PullAlways),
253-
LicenseKey: util.NewString(TestEnterpriseLicenseKeySecretName),
253+
License: api.LicenseSpec{
254+
SecretName: util.NewString(TestEnterpriseLicenseKeySecretName),
255+
},
254256
},
255257
}
256258

0 commit comments

Comments
 (0)