2018-03-19 13:45:47 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Run kubectl run to run the integration tests.
|
|
|
|
|
|
|
|
DEPLOYMENTNAMESPACE=$1
|
|
|
|
TESTIMAGE=$2
|
2018-10-19 12:47:44 +00:00
|
|
|
ARANGODIMAGE=$3
|
|
|
|
ENTERPRISEIMAGE=$4
|
|
|
|
TESTTIMEOUT=$5
|
|
|
|
TESTLENGTHOPTIONS=$6
|
2019-07-30 15:21:23 +00:00
|
|
|
TESTOPTIONS=$7
|
2019-09-27 11:04:23 +00:00
|
|
|
TESTREPOPATH=$8
|
2018-03-19 13:45:47 +00:00
|
|
|
|
|
|
|
IMAGEID=$(docker inspect ${TESTIMAGE} '--format={{index .RepoDigests 0}}')
|
|
|
|
|
|
|
|
kubectl --namespace ${DEPLOYMENTNAMESPACE} \
|
2019-09-27 11:04:23 +00:00
|
|
|
run arangodb-operator-test -i --restart=Never \
|
2018-03-19 13:45:47 +00:00
|
|
|
--image=${IMAGEID} \
|
|
|
|
--env="ENTERPRISEIMAGE=${ENTERPRISEIMAGE}" \
|
2018-10-19 12:47:44 +00:00
|
|
|
--env="ARANGODIMAGE=${ARANGODIMAGE}" \
|
2018-03-19 13:45:47 +00:00
|
|
|
--env="TEST_NAMESPACE=${DEPLOYMENTNAMESPACE}" \
|
2018-04-06 08:40:16 +00:00
|
|
|
--env="CLEANDEPLOYMENTS=${CLEANDEPLOYMENTS}" \
|
2018-10-31 13:52:33 +00:00
|
|
|
--env="TESTDISABLEIPV6=${TESTDISABLEIPV6}" \
|
2019-09-23 07:00:10 +00:00
|
|
|
--serviceaccount=arangodb-test \
|
2019-09-27 11:04:23 +00:00
|
|
|
--env="TEST_REMOTE_REPOSITORY=${TESTREPOPATH}" \
|
2018-03-19 13:45:47 +00:00
|
|
|
-- \
|
2018-03-19 14:02:12 +00:00
|
|
|
-test.v -test.timeout $TESTTIMEOUT $TESTLENGTHOPTIONS $TESTOPTIONS
|