Skip to content

Commit

Permalink
Merge pull request edgexfoundry#611 from jinlinGuan/issue-610
Browse files Browse the repository at this point in the history
Update blackbox test jobs to remove mongo test
  • Loading branch information
ernestojeda authored Jun 23, 2020
2 parents 5c7b353 + 384b1b8 commit 9f87549
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion jjb/edgex-templates-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
name: DATABASE
values:
- "redis"
- "mongo"
- axis:
type: label-expression
name: node
Expand Down
8 changes: 2 additions & 6 deletions shell/integration-test-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
set -e -o pipefail

docker run --rm -v $PWD:$PWD:rw,z -w $PWD -v /var/run/docker.sock:/var/run/docker.sock --privileged \
-e SECURITY_SERVICE_NEEDED=$SECURITY_SERVICE_NEEDED -e DATABASE=$DATABASE --env-file $ENV_FILE \
-e SECURITY_SERVICE_NEEDED=$SECURITY_SERVICE_NEEDED --env-file $ENV_FILE \
-e docker_compose_test_tools=$docker_compose_test_tools \
--entrypoint /bin/sh $DOCKER_COMPOSE bin/run.sh -all postman-integration-test

sudo chown jenkins:jenkins bin/testResult
sudo chmod g+w bin/testResult

if [ "${DATABASE:=redis}" = redis ]; then
sed -E -i "s/testsuite name=\"/testsuite name=\"redis_/" $(ls bin/testResult/*.xml)
else
sed -E -i "s/testsuite name=\"/testsuite name=\"mongo_/" $(ls bin/testResult/*.xml)
fi
sed -E -i "s/testsuite name=\"/testsuite name=\"redis_/" $(ls bin/testResult/*.xml)
3 changes: 2 additions & 1 deletion shell/integration-test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fi
export docker_compose_test_tools=$PWD/docker-compose-test-tools.yml

docker run --rm -v $PWD:$PWD:rw,z -w $PWD -v /var/run/docker.sock:/var/run/docker.sock --privileged \
-e SECURITY_SERVICE_NEEDED=$SECURITY_SERVICE_NEEDED -e DATABASE=$DATABASE --env-file $ENV_FILE \
-e SECURITY_SERVICE_NEEDED=$SECURITY_SERVICE_NEEDED --env-file $ENV_FILE \
--entrypoint /bin/sh $DOCKER_COMPOSE deploy-edgeX.sh


0 comments on commit 9f87549

Please sign in to comment.