Skip to content

Commit

Permalink
Use E2E image directly to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine committed Dec 12, 2023
1 parent b1e0bd5 commit 51158ea
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,24 +92,23 @@ jobs:
run: |
cd ./e2e && bash ./docker-build-public.sh
- name: Check out the E2E repo
uses: actions/checkout@v3
with:
repository: IABTechLab/uid2-e2e
token: ${{ secrets.GHCR_PAT }}
path: github-e2e-test

- name: Run E2E tests
id: e2e-tests
env:
UID2_E2E_ENV: "github-test-pipeline"
UID2_E2E_SITE_ID: "999"
UID2_E2E_API_KEY: "UID2-C-L-999-fCXrMM.fsR3mDqAXELtWWMS+xG1s7RdgRTMqdOH2qaAo="
UID2_E2E_API_SECRET: "DzBzbjTJcYL0swDtFs2krRNu+g1Eokm2tBU4dEuD0Wk="
UID2_E2E_API_KEY_OLD: "UID2-C-L-1000-qxpBsF.ibeCDBpD2bq4Zm7inDacGioUk1aaLeNJrabow="
UID2_E2E_API_SECRET_OLD: "VT7+t0G/RVueMuVZAL56I2c3JJFSYQfhbu8yo0V/Tds="
UID2_E2E_IDENTITY_SCOPE: "UID2"
UID2_E2E_PHONE_SUPPORT: "true"
UID2_E2E_PIPELINE_OPERATOR_TYPE: "PUBLIC"
UID2_E2E_PIPELINE_OPERATOR_URL: "http://localhost:8080"
run: |
if [ "$UID2_E2E_PIPELINE_OPERATOR_TYPE" != "PUBLIC" ] && [ "$UID2_E2E_PIPELINE_OPERATOR_TYPE" != "PRIVATE" ] ; then
echo "ERROR: Incorrect operator type: $UID2_E2E_PIPELINE_OPERATOR_TYPE"
elif [ "$UID2_E2E_PIPELINE_OPERATOR_TYPE" = "PUBLIC" ] ; then
mvn test -Dtest="E2EPublicOperatorTestSuite"
else
mvn test -Dtest="E2EPrivateOperatorTestSuite"
fi
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/iabtechlab/uid2-e2e:latest
run: |
export UID2_E2E_PIPELINE_OPERATOR_TYPE="PUBLIC"
if [ "$UID2_E2E_PIPELINE_OPERATOR_TYPE" != "PUBLIC" ] && [ "$UID2_E2E_PIPELINE_OPERATOR_TYPE" != "PRIVATE" ] ; then
echo "ERROR: Incorrect operator type: $UID2_E2E_PIPELINE_OPERATOR_TYPE"
elif [ "$UID2_E2E_PIPELINE_OPERATOR_TYPE" = "PUBLIC" ] ; then
mvn test -Dtest="E2EPublicOperatorTestSuite"
else
mvn test -Dtest="E2EPrivateOperatorTestSuite"
fi

0 comments on commit 51158ea

Please sign in to comment.