Skip to content

Run Operator E2E Tests - azure by @gmsdelmundo #354

Run Operator E2E Tests - azure by @gmsdelmundo

Run Operator E2E Tests - azure by @gmsdelmundo #354

name: Run Operator E2E Tests
run-name: ${{ format('Run Operator E2E Tests - {0}', inputs.operator_type) }} by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
operator_type:
description: The operator type [public, gcp, azure, aws]
required: true
type: choice
options:
- public
- gcp
- azure
- aws
operator_image_version:
description: The pipeline will run the E2E test with this operator image version (for GCP/Azure, check https://github.com/IABTechLab/uid2-operator/pkgs/container/uid2-operator)
type: string
default: latest
core_image_version:
description: The pipeline will run the E2E test with this core image version
type: string
default: latest
optout_image_version:
description: The pipeline will run the E2E test with this optout image version
type: string
default: latest
e2e_image_version:
description: The pipeline will run the E2E test with this E2E image version
type: string
default: latest
core_branch:
description: 'Core: use this branch for Core config to test with'
type: string
default: main
optout_branch:
description: 'Optout: use this branch for Optout config to test with'
type: string
default: main
admin_branch:
description: 'Admin: use this branch for Admin config to test with'
type: string
default: main
operator_branch:
description: 'Operator: use this branch for Operator config to test with'
type: string
default: main
aws:
description: The arguments for AWS private operator
type: string
default: '{
"region": "us-east-1",
"ami": "ami-xxxxx",
"pcr0": "xxxxx"
}'
workflow_call:
inputs:
operator_type:
description: The operator type [public, gcp, azure, aws]
type: string
default: public
operator_image_version:
description: The pipeline will run the E2E test with this operator image version
type: string
default: latest
core_image_version:
description: The pipeline will run the E2E test with this core image version
type: string
default: latest
optout_image_version:
description: The pipeline will run the E2E test with this optout image version
type: string
default: latest
e2e_image_version:
description: The pipeline will run the E2E test with this e2e image version
type: string
default: latest
core_branch:
description: 'Core: use this branch for Core config to test with'
type: string
default: main
optout_branch:
description: 'Optout: use this branch for Optout config to test with'
type: string
default: main
admin_branch:
description: 'Admin: use this branch for Admin config to test with'
type: string
default: main
operator_branch:
description: 'Operator: use this branch for Operator config to test with'
type: string
default: main
aws:
description: The arguments for AWS private operator
type: string
default: '{
"region": "us-east-1",
"ami": "ami-xxxxx",
"pcr0": "xxxxx"
}'
jobs:
e2e-test:
name: E2E Test
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-run-e2e-tests.yaml@gdm-UID2-2341-aws-test-pipeline
with:
operator_type: ${{ inputs.operator_type }}
operator_image_version: ${{ inputs.operator_image_version }}
core_image_version: ${{ inputs.core_image_version }}
optout_image_version: ${{ inputs.optout_image_version }}
e2e_image_version: ${{ inputs.e2e_image_version }}
core_branch: ${{ inputs.core_branch }}
optout_branch: ${{ inputs.optout_branch }}
admin_branch: ${{ inputs.admin_branch }}
operator_branch: ${{ github.ref }}
gcp_workload_identity_provider_id: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER_ID }}
gcp_service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
gcp_project: ${{ vars.GCP_PROJECT }}
aws_region: ${{ fromJson(inputs.aws).region }}
aws_ami: ${{ fromJson(inputs.aws).ami }}
aws_pcr0: ${{ fromJson(inputs.aws).pcr0 }}
secrets: inherit