Skip to content

Commit

Permalink
Add Dockerfile for e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine committed Dec 11, 2023
1 parent e3b60cc commit 7ed2ddd
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 10 deletions.
38 changes: 38 additions & 0 deletions e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
######################
# Build dependencies #
######################
FROM maven:3.9.1-eclipse-temurin-17

WORKDIR /app

COPY ./pom.xml ./pom.xml
COPY ./src ./src

######################
# Configure env vars #
######################
ENV UID2_E2E_ENV "github-test-pipeline"

ENV UID2_E2E_SITE_ID "999"
ENV UID2_E2E_API_KEY "UID2-C-L-999-fCXrMM.fsR3mDqAXELtWWMS+xG1s7RdgRTMqdOH2qaAo="
ENV UID2_E2E_API_SECRET "DzBzbjTJcYL0swDtFs2krRNu+g1Eokm2tBU4dEuD0Wk="
ENV UID2_E2E_API_KEY_OLD "UID2-C-L-1000-qxpBsF.ibeCDBpD2bq4Zm7inDacGioUk1aaLeNJrabow="
ENV UID2_E2E_API_SECRET_OLD "VT7+t0G/RVueMuVZAL56I2c3JJFSYQfhbu8yo0V/Tds="

ENV UID2_E2E_IDENTITY_SCOPE "UID2"
ENV UID2_E2E_PHONE_SUPPORT "true"

ENV UID2_E2E_PIPELINE_OPERATOR_URL ""
ENV UID2_E2E_PIPELINE_OPERATOR_TYPE "PUBLIC"
ENV UID2_E2E_PIPELINE_OPERATOR_CLOUD_PROVIDER ""

CMD \
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
14 changes: 4 additions & 10 deletions e2e/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,11 @@ services:
interval: 5s

e2etest:
container_name: E2E tests
container_name: e2e_test
image: ghcr.io/iabtechlab/uid2-e2e:<E2E_VERSION>
environment:
- UID2_E2E_API_KEY=UID2-C-L-999-fCXrMM.fsR3mDqAXELtWWMS+xG1s7RdgRTMqdOH2qaAo=
- UID2_E2E_API_KEY_OLD=UID2-C-L-1000-qxpBsF.ibeCDBpD2bq4Zm7inDacGioUk1aaLeNJrabow=
- UID2_E2E_API_SECRET=DzBzbjTJcYL0swDtFs2krRNu+g1Eokm2tBU4dEuD0Wk=
- UID2_E2E_API_SECRET_OLD=VT7+t0G/RVueMuVZAL56I2c3JJFSYQfhbu8yo0V/Tds=
- UID2_E2E_ENV=local
- UID2_E2E_IDENTITY_SCOPE=UID2
- UID2_E2E_PHONE_SUPPORT=true
- UID2_E2E_SITE_ID=999
build:
context: .
dockerfile: Dockerfile
depends_on:
core:
condition: service_healthy
Expand Down

0 comments on commit 7ed2ddd

Please sign in to comment.