Skip to content

Commit

Permalink
Merge pull request #74 from IABTechLab/tjm-UID2-2771-update-e2e-optou…
Browse files Browse the repository at this point in the history
…t-url

Adding environment variables for core and optout
  • Loading branch information
thomasm-ttd authored Mar 1, 2024
2 parents 3496eaf + 18df153 commit f6fb9a1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/shared-run-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ jobs:
echo "uid2_e2e_pipeline_operator_type=PUBLIC" >> $GITHUB_OUTPUT
echo "uid2_e2e_pipeline_operator_url=http://publicoperator:8080" >> $GITHUB_OUTPUT
echo "uid2_e2e_pipeline_operator_cloud_provider=PUBLIC" >> $GITHUB_OUTPUT
echo "uid2_e2e_pipeline_core_url=http://core:8088" >> $GITHUB_OUTPUT
echo "uid2_e2e_pipeline_optout_url=http://optout:8090" >> $GITHUB_OUTPUT
else
echo "uid2_e2e_pipeline_operator_type=PRIVATE" >> $GITHUB_OUTPUT
if [ "$OPERATOR_TYPE" == "gcp" ]; then
Expand All @@ -231,6 +233,8 @@ jobs:
echo "uid2_e2e_pipeline_operator_cloud_provider=AZURE" >> $GITHUB_OUTPUT
echo "uid2_e2e_pipeline_operator_url=${{ steps.start_azure_private_operator.outputs.uid2_e2e_pipeline_operator_url }}" >> $GITHUB_OUTPUT
fi
echo "uid2_e2e_pipeline_core_url=${{ steps.bore.outputs.BORE_URL_CORE }}" >> $GITHUB_OUTPUT
echo "uid2_e2e_pipeline_optout_url=${{ steps.bore.outputs.BORE_URL_OPTOUT }}" >> $GITHUB_OUTPUT
fi
- name: Run E2E tests
Expand Down
13 changes: 13 additions & 0 deletions actions/run_e2e_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ inputs:
required: false
type: string
default: 'true'
uid2_e2e_pipeline_core_url:
description: 'Environment variable for the Core service'
required: false
type: string
default: 'http://core:8088'
uid2_e2e_pipeline_optout_url:
description: 'Environment variable for the OptOut service'
required: false
type: string
default: 'http://optout:8090'

runs:
using: "composite"
Expand Down Expand Up @@ -62,5 +72,8 @@ runs:
--env UID2_E2E_PIPELINE_OPERATOR_TYPE='${{ inputs.uid2_e2e_pipeline_operator_type }}' \
--env UID2_E2E_PIPELINE_OPERATOR_URL='${{ inputs.uid2_e2e_pipeline_operator_url }}' \
--env UID2_E2E_SITE_ID='999' \
--env UID2_E2E_CORE_API_TOKEN='UID2-O-L-999-dp9Dt0.JVoGpynN4J8nMA7FxmzsavxJa8B9H74y9xdEE=' \
--env UID2_E2E_CORE_URL='${{ inputs.uid2_e2e_pipeline_core_url }}' \
--env UID2_E2E_OPTOUT_URL='${{ inputs.uid2_e2e_pipeline_optout_url }}' \
--network e2e_default \
ghcr.io/iabtechlab/uid2-e2e:${{ inputs.e2e_image_version }}

0 comments on commit f6fb9a1

Please sign in to comment.