From cad88bf24ec6babd7a5aeb4e7a8503367eeb877c Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 1 Nov 2023 12:20:18 -0300 Subject: [PATCH] Update */src/.cicd/test.sh --- auth-domain/user-manager/src/.cicd/test.sh | 11 ++--------- flights-domain/flights-information/src/.cicd/test.sh | 10 ++-------- gateway/src/.cicd/test.sh | 10 ++-------- .../subscription-manager/src/.cicd/test.sh | 9 ++------- 4 files changed, 8 insertions(+), 32 deletions(-) diff --git a/auth-domain/user-manager/src/.cicd/test.sh b/auth-domain/user-manager/src/.cicd/test.sh index afbc6e1..1148d48 100644 --- a/auth-domain/user-manager/src/.cicd/test.sh +++ b/auth-domain/user-manager/src/.cicd/test.sh @@ -2,21 +2,14 @@ if [ "${TEST_TARGET:-}" = "INTEGRATION" ]; then - # Execute your command here /usr/src/app/.venv/bin/gunicorn manage:app else - ## pytest python -m pytest "src/tests" --junitxml=report.xml - - ## Coverage python -m pytest "src/tests" -p no:warnings --cov="src" --cov-report xml - - ## Linting flake8 src --extend-ignore E221 --extend-ignore E501 - # black src --check - # isort src --check + black src --check + isort . --src-path src --check --profile black - ## Security # bandit -c .bandit.yml -r . fi diff --git a/flights-domain/flights-information/src/.cicd/test.sh b/flights-domain/flights-information/src/.cicd/test.sh index 831fa9d..b08f691 100755 --- a/flights-domain/flights-information/src/.cicd/test.sh +++ b/flights-domain/flights-information/src/.cicd/test.sh @@ -4,18 +4,12 @@ if [ "${TEST_TARGET:-}" = "INTEGRATION" ]; then /usr/src/app/.venv/bin/gunicorn src.api.main:app --worker-class uvicorn.workers.UvicornWorker else - ## pytest python -m pytest "src/tests" --junitxml=report.xml - - ## Coverage python -m pytest "src/tests" -p no:warnings --cov="src" --cov-report xml - - ## Linting flake8 src --extend-ignore E221 --extend-ignore E501 - # black src --check - # isort . --src-path src --check + black src --check + isort . --src-path src --check --profile black - ## Security # bandit -c .bandit.yml -r . fi diff --git a/gateway/src/.cicd/test.sh b/gateway/src/.cicd/test.sh index c2ddf36..0e6b41b 100755 --- a/gateway/src/.cicd/test.sh +++ b/gateway/src/.cicd/test.sh @@ -4,20 +4,14 @@ if [ "${TEST_TARGET:-}" = "INTEGRATION" ]; then /usr/src/app/.venv/bin/gunicorn src.api.main:app --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:5002 else - ## pytest # python -m pytest "src/tests" --junitxml=report.xml touch report.xml - - # ## Coverage # python -m pytest "src/tests" -p no:warnings --cov="src" --cov-report xml touch coverage.xml - - ## Linting flake8 src --extend-ignore E221 --extend-ignore E501 - # black src --check - # isort . --src-path src --check + black src --check + isort . --src-path src --check --profile black - ## Security # bandit -c .bandit.yml -r . fi diff --git a/subscription-domain/subscription-manager/src/.cicd/test.sh b/subscription-domain/subscription-manager/src/.cicd/test.sh index 4a80c7d..93da23a 100755 --- a/subscription-domain/subscription-manager/src/.cicd/test.sh +++ b/subscription-domain/subscription-manager/src/.cicd/test.sh @@ -1,22 +1,17 @@ #!/bin/bash -e - if [ "${TEST_TARGET:-}" = "INTEGRATION" ]; then /usr/src/app/.venv/bin/gunicorn src.api.main:app --worker-class uvicorn.workers.UvicornWorker else - ## pytest # python -m pytest "src/tests" --junitxml=report.xml touch report.xml - ## Coverage # python -m pytest "src/tests" -p no:warnings --cov="src" --cov-report xml touch coverage.xml - ## Linting flake8 src --extend-ignore E221 --extend-ignore E501 - # black src --check - # isort . --src-path src --check + black src --check + isort . --src-path src --check --profile black - ## Security # bandit -c .bandit.yml -r . fi