Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #295 from willkg/1531865-redo-tests
fix bug 1531865: redo tests and configuration
- Loading branch information
Showing
18 changed files
with
279 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,3 +52,5 @@ target/ | |
# Docker things | ||
/.docker-build | ||
/fakes3_root/ | ||
docker-compose.override.yml | ||
my.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file is for settings that are specific to your docker local development | ||
# environment. Since these are specific to your local development environment, | ||
# don't check them in. | ||
|
||
# --------------------------------------------- | ||
# Docker settings | ||
# --------------------------------------------- | ||
|
||
# If you want to set the uid and gid of the app user that we use in the | ||
# containers, you can do that with these two variables. | ||
# ANTENNA_UID= | ||
# ANTENNA_GID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Runs linting. | ||
|
||
# This should be called from inside a container | ||
|
||
set -e | ||
|
||
echo ">>> flake8" | ||
flake8 --statistics antenna tests/unittest/ | ||
|
||
echo ">>> bandit" | ||
bandit -r antenna/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Runs tests. | ||
# | ||
# This should be called from inside a container and after the dependent | ||
# services have been launched. It depends on: | ||
# | ||
# * elasticsearch | ||
# * postgresql | ||
# * rabbitmq | ||
|
||
# Failures should cause setup to fail | ||
set -v -e -x | ||
|
||
echo ">>> pytest" | ||
# Set up environment variables | ||
|
||
LOCALSTACK_S3_URL=http://localstack-s3:5000 | ||
|
||
export PYTHONPATH=/app/:$PYTHONPATH | ||
PYTEST="$(which pytest)" | ||
PYTHON="$(which python)" | ||
|
||
# Wait for services to be ready | ||
urlwait "${LOCALSTACK_S3_URL}" 10 | ||
|
||
# Run tests | ||
"${PYTEST}" |
Oops, something went wrong.