-
Notifications
You must be signed in to change notification settings - Fork 17
130 lines (127 loc) · 4.17 KB
/
run-e2e-tests-on-operator.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: Run Operator E2E Tests
run-name: ${{ format('Run Operator E2E Tests - {0} {1}', inputs.operator_type, inputs.identity_scope) }} by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
operator_type:
description: The operator type [public, gcp, azure, aws, eks]
required: true
type: choice
options:
- public
- gcp
- azure
- aws
- eks
identity_scope:
description: The identity scope [UID2, EUID]
required: true
type: choice
options:
- UID2
- EUID
operator_image_version:
description: 'Image: Operator image version (for gcp/azure, set appropriate image)'
type: string
default: latest
core_image_version:
description: 'Image: Core image version'
type: string
default: latest
optout_image_version:
description: 'Image: Optout image version'
type: string
default: latest
e2e_image_version:
description: 'Image: E2E image version'
type: string
default: latest
branch:
description: The arguments for custom branches
type: string
default: '{
"core": "main",
"optout": "main",
"admin": "main" }'
aws:
description: The arguments for AWS private operator
type: string
default: '{
"region": "us-east-1",
"ami": "ami-xxxxx",
"pcr0": "xxxxx" }'
eks:
description: The arguments for EKS operator
type: string
default: '{
"pcr0": "xxxxx" }'
workflow_call:
inputs:
operator_type:
description: The operator type [public, gcp, azure, aws, eks]
type: string
default: public
identity_scope:
description: The identity scope [UID2, EUID]
type: string
default: UID2
operator_image_version:
description: 'Image: Operator image version (for gcp/azure, set appropriate image)'
type: string
default: latest
core_image_version:
description: 'Image: Core image version'
type: string
default: latest
optout_image_version:
description: 'Image: Optout image version'
type: string
default: latest
e2e_image_version:
description: 'Image: E2E image version'
type: string
default: latest
branch:
description: The arguments for custom branches
type: string
default: '{
"core": "main",
"optout": "main",
"admin": "main" }'
aws:
description: The arguments for AWS private operator
type: string
default: '{
"region": "us-east-1",
"ami": "ami-xxxxx",
"pcr0": "xxxxx" }'
eks:
description: The arguments for EKS operator
type: string
default: '{
"pcr0": "xxxxx" }'
jobs:
e2e-test:
name: E2E Test
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-run-e2e-tests.yaml@tjm-UID2-4147-correct-eif-version-number
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 }}
operator_branch: ${{ github.ref }}
branch_core: ${{ fromJson(inputs.branch).core }}
branch_optout: ${{ fromJson(inputs.branch).optout }}
branch_admin: ${{ fromJson(inputs.branch).admin }}
uid2_e2e_identity_scope: ${{ inputs.identity_scope }}
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 }}
eks_pcr0: ${{ fromJson(inputs.eks).pcr0 }}
eks_test_cluster: ${{ vars.EKS_TEST_CLUSTER }}
eks_test_cluster_region: ${{ vars.EKS_TEST_CLUSTER_REGION }}
secrets: inherit