From 2b98e14733b246537a45ed888239a53ba64f8c5e Mon Sep 17 00:00:00 2001 From: Justin Ehlert <justinehlert@flywheel.io> Date: Thu, 14 Dec 2017 08:35:51 -0600 Subject: [PATCH] Pin the mongodb version to 3.2 (current supported version) in run-tests-docker.sh --- TESTING.md | 3 +++ tests/bin/run-tests-docker.sh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/TESTING.md b/TESTING.md index 26b292e5..a6c16817 100644 --- a/TESTING.md +++ b/TESTING.md @@ -26,12 +26,15 @@ Build scitran-core image and run automated tests in a docker container: * To skip building the image, use `--no-build` (`-B`) * To pass any arguments to `run-tests-ubuntu.sh`, use `-- TEST_ARGS` + #### Example Without rebuilding the image, run only integration tests matching `foo`, use the highest verbosity level for test output and jump into a python debugger session in case an assertion fails: ``` ./tests/bin/run-tests-docker.sh -B -- -i -- -k foo -vvv --pdb ``` +**NOTE:** The mongodb version is pinned via the `MONGO_VERSION` variable in `tests/bin/run-tests-docker.sh`. + ### Tools - [abao](https://github.com/cybertk/abao/) diff --git a/tests/bin/run-tests-docker.sh b/tests/bin/run-tests-docker.sh index afcd42c2..7cb55be2 100755 --- a/tests/bin/run-tests-docker.sh +++ b/tests/bin/run-tests-docker.sh @@ -23,6 +23,7 @@ EOF function main() { local DOCKER_BUILD=true local TEST_ARGS= + local MONGO_VERSION=3.2 while [[ "$#" > 0 ]]; do case "$1" in @@ -47,7 +48,7 @@ function main() { docker run -d \ --name scitran-core-test-mongo \ --network scitran-core-test-network \ - mongo + mongo:${MONGO_VERSION} # Execute tests docker run -it \ -- GitLab