-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI to use the latest
staging
api service to run tests against.
- Loading branch information
Showing
5 changed files
with
452 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ export BACKEND_DIR=/tmp/cryoet-data-portal-backend-test-infra | |
.PHONY: set-api-version | ||
set-api-version: | ||
if [ ! -e $(BACKEND_DIR) ]; then git clone [email protected]:chanzuckerberg/cryoet-data-portal-backend.git $(BACKEND_DIR); fi | ||
export STAGING_SHA=$$(python3 tests/test_infra/get_deployment.sh staging); \ | ||
if [ -z $STAGING_SHA ]; then \ | ||
export STAGING_SHA=$$(./tests/test_infra/get_deployment.sh staging); \ | ||
if [ -n "$${STAGING_SHA}" ]; then \ | ||
echo "Setting backend to SHA: $${STAGING_SHA}"; \ | ||
cd $(BACKEND_DIR); \ | ||
git fetch; \ | ||
|
@@ -32,7 +32,7 @@ coverage: | |
export AWS_REGION=us-west-2; \ | ||
export AWS_ACCESS_KEY_ID=test; \ | ||
export AWS_SECRET_ACCESS_KEY=test; \ | ||
export BOTO_ENDPOINT_URL=http://localhost:4000; \ | ||
export BOTO_ENDPOINT_URL=http://localhost:5566; \ | ||
export BOTO_SIGNATURE_VERSION=s3v4; \ | ||
coverage run --parallel-mode -m pytest -v -rP --durations=20 ./tests/ | ||
|
||
|
@@ -41,7 +41,7 @@ test: | |
export AWS_REGION=us-west-2; \ | ||
export AWS_ACCESS_KEY_ID=test; \ | ||
export AWS_SECRET_ACCESS_KEY=test; \ | ||
export BOTO_ENDPOINT_URL=http://localhost:4000; \ | ||
export BOTO_ENDPOINT_URL=http://localhost:5566; \ | ||
export BOTO_SIGNATURE_VERSION=s3v4; \ | ||
pytest -vvv -s . $(TEST) | ||
|
||
|
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
client/python/cryoet_data_portal/tests/test_infra/get_deployment.sh
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
Oops, something went wrong.