Skip to content

Commit

Permalink
48: Update system test to set log level to warning to quiet down the …
Browse files Browse the repository at this point in the history
…services as much as possible.
  • Loading branch information
lfse-slafleur committed Jun 17, 2024
1 parent b74c2b4 commit 20e9031
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: run system tests
run: |
cp .env-template .env
./scripts/test_system.sh
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,5 @@ fabric.properties
!.idea/codeStyles
!.idea/runConfigurations

unit_test_coverage/
unit_test_coverage/
.env.test
14 changes: 11 additions & 3 deletions scripts/test_system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@

export COMPOSE_PROJECT_NAME=omotes_system_tests

$DOCKER_COMPOSE -f docker-compose.yml -f system_tests/docker-compose.override.yml down -v
./scripts/setup.sh
$DOCKER_COMPOSE -f docker-compose.yml -f system_tests/docker-compose.override.yml up --build --abort-on-container-exit
ENV_FILE=".env.test"
DOCKER_COMPOSE_FILE="./docker-compose.yml -f system_tests/docker-compose.override.yml"

cp .env-template ${ENV_FILE}
sed -i 's/LOG_LEVEL=[a-z]*/LOG_LEVEL=WARNING/gi' ${ENV_FILE}

$DOCKER_COMPOSE --env-file ${ENV_FILE} -f $DOCKER_COMPOSE_FILE down -v
./scripts/setup_orchestrator_postgres_db.sh $ENV_FILE $DOCKER_COMPOSE_FILE
./scripts/setup_rabbitmq.sh $ENV_FILE $DOCKER_COMPOSE_FILE
./scripts/setup_influxdb.sh $ENV_FILE $DOCKER_COMPOSE_FILE
$DOCKER_COMPOSE --env-file ${ENV_FILE} -f $DOCKER_COMPOSE_FILE up --build --abort-on-container-exit

0 comments on commit 20e9031

Please sign in to comment.