-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: enhancements for e2e tests (#200)
- Loading branch information
abalias
authored
Dec 6, 2022
1 parent
403eb38
commit 15abef6
Showing
20 changed files
with
715 additions
and
271 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 |
---|---|---|
|
@@ -30,6 +30,11 @@ jobs: | |
with: | ||
java-version: [email protected] | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
|
@@ -43,27 +48,45 @@ jobs: | |
version: v2.12.2 # defaults to 'latest' | ||
legacy: true # will also install in PATH as `docker-compose` | ||
|
||
- name: Start services | ||
- name: Start services for issuer | ||
env: | ||
PORT: 8080 | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: "./infrastructure/shared/docker-compose.yml" | ||
compose-flags: "--env-file ./infrastructure/local/.env -p issuer" | ||
up-flags: "--wait" | ||
down-flags: "--volumes" | ||
|
||
- name: Start services for holder | ||
env: | ||
PORT: 8090 | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: "./infrastructure/ci/docker-compose-multiple-actors.yml" | ||
compose-file: "./infrastructure/shared/docker-compose.yml" | ||
compose-flags: "--env-file ./infrastructure/local/.env -p holder" | ||
up-flags: "--wait" | ||
down-flags: "--volumes" | ||
|
||
- name: Run e2e tests | ||
env: | ||
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }} | ||
run: | | ||
./gradlew test --info | ||
../../infrastructure/local/update_env.sh | ||
cat ../../infrastructure/local/.env | ||
./gradlew test --tests "E2eTestsRunner" | ||
- uses: actions/upload-artifact@v2 | ||
if: always() | ||
with: | ||
name: e2e-tests-result | ||
path: tests/e2e-tests/target/site/reports | ||
path: tests/e2e-tests/target/site/serenity | ||
|
||
- name: Publish e2e test Results | ||
if: always() | ||
id: publish-unit-tests | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
junit_files: "tests/e2e-tests/target/site/reports/SERENITY-JUNIT-*.xml" | ||
junit_files: "tests/e2e-tests/target/site/serenity/SERENITY-JUNIT-*.xml" | ||
comment_title: "E2E Test Results" | ||
check_name: "E2E Test Results" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MERCURY_MEDIATOR_VERSION=0.2.0 | ||
IRIS_SERVICE_VERSION=0.1.0 | ||
PRISM_AGENT_VERSION=0.6.0 | ||
PRISM_AGENT_VERSION=0.10.0 | ||
PORT=80 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
ENV_FILE="${SCRIPT_DIR}/.env" | ||
|
||
pip install ${SCRIPT_DIR}/../utils/python/github-helpers > /dev/null 2>&1 | ||
|
||
MERCURY_MEDIATOR_VERSION=$(github get-latest-package-version --package mercury-mediator --package-type container) | ||
IRIS_SERVICE_VERSION=$(github get-latest-package-version --package iris-service --package-type container) | ||
PRISM_AGENT_VERSION=$(github get-latest-package-version --package prism-agent --package-type container) | ||
|
||
sed -i.bak "s/MERCURY_MEDIATOR_VERSION=.*/MERCURY_MEDIATOR_VERSION=${MERCURY_MEDIATOR_VERSION}/" ${ENV_FILE} && rm -f ${ENV_FILE}.bak | ||
sed -i.bak "s/IRIS_SERVICE_VERSION=.*/IRIS_SERVICE_VERSION=${IRIS_SERVICE_VERSION}/" ${ENV_FILE} && rm -f ${ENV_FILE}.bak | ||
sed -i.bak "s/PRISM_AGENT_VERSION=.*/PRISM_AGENT_VERSION=${PRISM_AGENT_VERSION}/" ${ENV_FILE} && rm -f ${ENV_FILE}.bak |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build/ | ||
*.egg-info/ | ||
.env-e |
Empty file.
Oops, something went wrong.