Skip to content

Commit

Permalink
176777460-Failing-domain-integration-tests-not-being-detected-by-pipe…
Browse files Browse the repository at this point in the history
…line (go-delve#143)

* and together the two integration script run commands

* drop sender integration test

* separate webhook from sender integration tests in workflow

* not using shell scripts for the integration tests

* prob with run

* typo

* attempt to exit script with appropriate exit code

* recombine integration tests

* some odd syntax is required

* fixed integration test run shell scripts

* restored fix to the webhook integration tests for health check postgres not available test
  • Loading branch information
Neil Clifton authored Feb 4, 2021
1 parent 6fb59e3 commit 9b356ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
10 changes: 3 additions & 7 deletions backend/sender/integration_test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pushd $DIR &> /dev/null

export $(grep -v '^#' ../rpc/infra/values/dev-values.env | xargs)

export MIGRATION_ROOT="file://../migration/sql"
export TEST_FIXTURE_POSTGRES_USER=gnomock
export TEST_FIXTURE_POSTGRES_USER_PASSWORD=gnomick

go test -timeout 30s -tags integration -run ^Test_.*$
go test -timeout 30s -tags integration -run ^Test_.*$ -v
status=$?

popd &> /dev/null
exit $status
13 changes: 4 additions & 9 deletions backend/webhook/integration_test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pushd $DIR &> /dev/null

export $(grep -v '^#' ../rpc/infra/values/dev-values.env | xargs)

export MIGRATION_ROOT="file://../migration/sql"
export TEST_FIXTURE_POSTGRES_USER=gnomock
export TEST_FIXTURE_POSTGRES_USER_PASSWORD=gnomick
export TEST_FIXTURE_RABBITMQ_USER=gnomock
export TEST_FIXTURE_RABBITMQ_USER_PASSWORD=gnomick

go test -timeout 300s -tags integration -v -run ^Test_.*$
status=$?

popd &> /dev/null

popd &> /dev/null
exit $status

0 comments on commit 9b356ab

Please sign in to comment.