Skip to content

Commit 6af2ef3

Browse files
authored
Merge pull request #168 from IABTechLab/gdm-UID2-5040-e2e
Fixed E2E test suites to work against real operators
2 parents 8a3f1d5 + f72088e commit 6af2ef3

File tree

15 files changed

+359
-87
lines changed

15 files changed

+359
-87
lines changed

.github/workflows/shared-run-e2e-tests.yaml

Lines changed: 81 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
description: The target environment [mock, integ, prod]
1515
type: string
1616
default: mock
17-
operator_shutdown:
17+
delay_operator_shutdown:
1818
description: If true, will automatically shut down operators after E2E tests. Defaults to true.
1919
type: boolean
2020
default: true
@@ -64,7 +64,7 @@ on:
6464
type: string
6565

6666
aws_region:
67-
description: The AWS region [us-east-1, us-west-1, ca-central-1, eu-central-1]
67+
description: The AWS region
6868
type: string
6969
aws_ami:
7070
description: The AWS AMI ID
@@ -76,13 +76,22 @@ on:
7676
env:
7777
REGISTRY: ghcr.io
7878

79+
E2E_UID2_INTEG_GCP_ARGS_JSON: ${{ secrets.E2E_UID2_INTEG_GCP_ARGS_JSON }}
80+
E2E_UID2_INTEG_AWS_ARGS_JSON: ${{ secrets.E2E_UID2_INTEG_AWS_ARGS_JSON }}
81+
E2E_UID2_INTEG_AZURE_ARGS_JSON: ${{ secrets.E2E_UID2_INTEG_AZURE_ARGS_JSON }}
7982
E2E_UID2_INTEG_GCP_OPERATOR_API_KEY: ${{ secrets.E2E_UID2_INTEG_GCP_OPERATOR_API_KEY }}
8083
E2E_UID2_INTEG_AWS_OPERATOR_API_KEY: ${{ secrets.E2E_UID2_INTEG_AWS_OPERATOR_API_KEY }}
8184

85+
E2E_UID2_PROD_GCP_ARGS_JSON: ${{ secrets.E2E_UID2_PROD_GCP_ARGS_JSON }}
86+
E2E_UID2_PROD_AZURE_ARGS_JSON: ${{ secrets.E2E_UID2_PROD_AZURE_ARGS_JSON }}
87+
E2E_UID2_PROD_AWS_ARGS_JSON: ${{ secrets.E2E_UID2_PROD_AWS_ARGS_JSON }}
8288
E2E_UID2_PROD_GCP_OPERATOR_API_KEY: ${{ secrets.E2E_UID2_PROD_GCP_OPERATOR_API_KEY }}
8389
E2E_UID2_PROD_AWS_OPERATOR_API_KEY: ${{ secrets.E2E_UID2_PROD_AWS_OPERATOR_API_KEY }}
8490

91+
E2E_EUID_INTEG_AWS_ARGS_JSON: ${{ secrets.E2E_EUID_INTEG_AWS_ARGS_JSON }}
8592
E2E_EUID_INTEG_AWS_OPERATOR_API_KEY: ${{ secrets.E2E_EUID_INTEG_AWS_OPERATOR_API_KEY }}
93+
94+
E2E_EUID_PROD_AWS_ARGS_JSON: ${{ secrets.E2E_EUID_PROD_AWS_ARGS_JSON }}
8695
E2E_EUID_PROD_AWS_OPERATOR_API_KEY: ${{ secrets.E2E_EUID_PROD_AWS_OPERATOR_API_KEY }}
8796

8897
jobs:
@@ -93,6 +102,10 @@ jobs:
93102
contents: write
94103
packages: read
95104
id-token: write
105+
outputs:
106+
gcp_instance_name: ${{ steps.start_gcp_private_operator.outputs.gcp_instance_name }}
107+
azure_container_group_name: ${{ steps.start_azure_private_operator.outputs.azure_container_group_name }}
108+
aws_stack_name: ${{ steps.start_aws_private_operator.outputs.aws_stack_name }}
96109
steps:
97110
- name: Log in to the Docker container registry
98111
uses: docker/login-action@v3
@@ -265,15 +278,14 @@ jobs:
265278
shell: bash
266279
env:
267280
OPERATOR_TYPE: ${{ inputs.operator_type }}
268-
OPERATOR_URL: ${{ steps.start_gcp_private_operator.outputs.uid2_e2e_pipeline_operator_url }}
269281
IDENTITY_SCOPE: ${{ inputs.identity_scope }}
270282
TARGET_ENVIRONMENT: ${{ inputs.target_environment }}
271283
BORE_URL_CORE: ${{ steps.bore.outputs.bore_url_core }}
272284
BORE_URL_OPTOUT: ${{ steps.bore.outputs.bore_url_optout }}
273-
GCP_OPERATOR_URL: ${{ steps.start_gcp_private_operator.outputs.uid2_e2e_pipeline_operator_url }}
274-
AZURE_OPERATOR_URL: ${{ steps.start_azure_private_operator.outputs.uid2_e2e_pipeline_operator_url }}
275-
AWS_OPERATOR_URL: ${{ steps.start_aws_private_operator.outputs.uid2_e2e_pipeline_operator_url }}
276-
AKS_OPERATOR_URL: ${{ steps.start_aks_private_operator.outputs.uid2_e2e_pipeline_operator_url }}
285+
GCP_OPERATOR_URL: ${{ steps.start_gcp_private_operator.outputs.uid2_pipeline_e2e_operator_url }}
286+
AZURE_OPERATOR_URL: ${{ steps.start_azure_private_operator.outputs.uid2_pipeline_e2e_operator_url }}
287+
AWS_OPERATOR_URL: ${{ steps.start_aws_private_operator.outputs.uid2_pipeline_e2e_operator_url }}
288+
AKS_OPERATOR_URL: ${{ steps.start_aks_private_operator.outputs.uid2_pipeline_e2e_operator_url }}
277289
run: |
278290
bash uid2-shared-actions/scripts/decide_e2e_env.sh
279291
@@ -283,16 +295,20 @@ jobs:
283295
with:
284296
e2e_network: ${{ steps.decide_env_var.outputs.e2e_network }}
285297
e2e_image_version: ${{ inputs.e2e_image_version }}
286-
uid2_e2e_identity_scope: ${{ inputs.identity_scope }}
287-
uid2_e2e_pipeline_operator_url: ${{ steps.decide_env_var.outputs.uid2_e2e_pipeline_operator_url }}
288-
uid2_e2e_pipeline_operator_type: ${{ steps.decide_env_var.outputs.uid2_e2e_pipeline_operator_type }}
289-
uid2_e2e_pipeline_operator_cloud_provider: ${{ steps.decide_env_var.outputs.uid2_e2e_pipeline_operator_cloud_provider }}
290-
uid2_e2e_phone_support: ${{ steps.decide_env_var.outputs.uid2_e2e_phone_support }}
291-
uid2_e2e_pipeline_core_url: ${{ steps.decide_env_var.outputs.uid2_e2e_pipeline_core_url }}
292-
uid2_e2e_pipeline_optout_url: ${{ steps.decide_env_var.outputs.uid2_e2e_pipeline_optout_url }}
298+
e2e_suites: ${{ steps.decide_env_var.outputs.e2e_suites }}
299+
e2e_args_json: ${{ steps.decide_env_var.outputs.e2e_args_json }}
300+
e2e_env: ${{ steps.decide_env_var.outputs.e2e_env }}
301+
e2e_identity_scope: ${{ inputs.identity_scope }}
302+
e2e_phone_support: ${{ steps.decide_env_var.outputs.e2e_phone_support }}
303+
uid2_core_e2e_core_url: ${{ steps.decide_env_var.outputs.uid2_core_e2e_core_url }}
304+
uid2_core_e2e_optout_url: ${{ steps.decide_env_var.outputs.uid2_core_e2e_optout_url }}
305+
uid2_pipeline_e2e_core_url: ${{ steps.decide_env_var.outputs.uid2_pipeline_e2e_core_url }}
306+
uid2_pipeline_e2e_operator_url: ${{ steps.decide_env_var.outputs.uid2_pipeline_e2e_operator_url }}
307+
uid2_pipeline_e2e_operator_type: ${{ steps.decide_env_var.outputs.uid2_pipeline_e2e_operator_type }}
308+
uid2_pipeline_e2e_operator_cloud_provider: ${{ steps.decide_env_var.outputs.uid2_pipeline_e2e_operator_cloud_provider }}
293309

294310
- name: Stop GCP private operator
295-
if: ${{ always() && inputs.operator_shutdown && inputs.operator_type == 'gcp' }}
311+
if: ${{ always() && !inputs.delay_operator_shutdown && inputs.operator_type == 'gcp' }}
296312
env:
297313
GCP_PROJECT: ${{ inputs.gcp_project }}
298314
SERVICE_ACCOUNT: ${{ inputs.gcp_service_account }}
@@ -301,21 +317,68 @@ jobs:
301317
bash uid2-shared-actions/scripts/gcp/stop_gcp_enclave.sh
302318
303319
- name: Stop Azure private operator
304-
if: ${{ always() && inputs.operator_shutdown && inputs.operator_type == 'azure' }}
320+
if: ${{ always() && !inputs.delay_operator_shutdown && inputs.operator_type == 'azure' }}
305321
env:
306322
AZURE_CONTAINER_GROUP_NAME: ${{ steps.start_azure_private_operator.outputs.azure_container_group_name }}
307323
run: |
308324
bash uid2-shared-actions/scripts/azure/stop_azure_enclave.sh
309325
310326
- name: Stop AWS private operator
311-
if: ${{ always() && inputs.operator_shutdown && inputs.operator_type == 'aws' }}
327+
if: ${{ always() && !inputs.delay_operator_shutdown && inputs.operator_type == 'aws' }}
312328
env:
313329
AWS_STACK_NAME: ${{ steps.start_aws_private_operator.outputs.aws_stack_name }}
314330
AWS_REGION: ${{ inputs.aws_region }}
315331
run: |
316332
bash uid2-shared-actions/scripts/aws/stop_aws_enclave.sh
317333
318334
- name: Stop AKS operator
319-
if: ${{ always() && inputs.operator_shutdown && inputs.operator_type == 'aks' }}
335+
if: ${{ always() && !inputs.delay_operator_shutdown && inputs.operator_type == 'aks' }}
320336
run: |
321337
bash uid2-shared-actions/scripts/aks/stop_aks_enclave.sh
338+
339+
e2e-test-cleanup:
340+
name: E2E Test Cleanup (Delayed Operator Shutdown)
341+
if: ${{ always() && inputs.delay_operator_shutdown && inputs.operator_type != 'public' }}
342+
needs: [e2e-test]
343+
runs-on: ubuntu-latest
344+
environment: 'e2e-test-cleanup'
345+
permissions:
346+
contents: write
347+
packages: read
348+
id-token: write
349+
steps:
350+
- name: Checkout uid2-shared-actions repo
351+
uses: actions/checkout@v4
352+
with:
353+
ref: v3
354+
repository: IABTechLab/uid2-shared-actions
355+
path: uid2-shared-actions
356+
357+
- name: Stop GCP private operator
358+
if: ${{ inputs.operator_type == 'gcp' }}
359+
uses: IABTechLab/uid2-shared-actions/actions/stop_gcp_private_operator@v3
360+
with:
361+
gcp_project: ${{ inputs.gcp_project }}
362+
gcp_service_account: ${{ inputs.gcp_service_account }}
363+
gcp_workload_identity_provider_id: ${{ inputs.gcp_workload_identity_provider_id }}
364+
gcp_instance_name: ${{ needs.e2e-test.outputs.gcp_instance_name }}
365+
366+
- name: Stop Azure private operator
367+
if: ${{ inputs.operator_type == 'azure' }}
368+
uses: IABTechLab/uid2-shared-actions/actions/stop_azure_private_operator@v3
369+
with:
370+
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}
371+
azure_container_group_name: ${{ needs.e2e-test.outputs.azure_container_group_name }}
372+
373+
- name: Stop AWS private operator
374+
if: ${{ inputs.operator_type == 'aws' }}
375+
uses: IABTechLab/uid2-shared-actions/actions/stop_aws_private_operator@v3
376+
with:
377+
aws_stack_name: ${{ needs.e2e-test.outputs.aws_stack_name }}
378+
aws_region: ${{ inputs.aws_region }}
379+
380+
- name: Stop AKS operator
381+
if: ${{ inputs.operator_type == 'aks' }}
382+
uses: IABTechLab/uid2-shared-actions/actions/stop_aks_private_operator@v3
383+
with:
384+
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}

actions/run_e2e_tests/action.yaml

Lines changed: 75 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,61 +8,98 @@ inputs:
88
e2e_image_version:
99
description: The version of E2E image
1010
default: latest
11-
uid2_e2e_identity_scope:
11+
e2e_suites:
1212
description: Environment variable to run the E2E test
13-
default: UID2
14-
uid2_e2e_pipeline_operator_type:
13+
default: E2ECoreTestSuite,E2EPublicOperatorTestSuite
14+
e2e_args_json:
1515
description: Environment variable to run the E2E test
16-
default: PUBLIC
17-
uid2_e2e_pipeline_operator_url:
16+
default: ''
17+
e2e_env:
1818
description: Environment variable to run the E2E test
19-
default: http://publicoperator:8080
20-
uid2_e2e_pipeline_operator_cloud_provider:
19+
default: github-test-pipeline-local
20+
e2e_identity_scope:
2121
description: Environment variable to run the E2E test
22-
default: PUBLIC
23-
uid2_e2e_phone_support:
22+
default: UID2
23+
e2e_phone_support:
2424
description: Environment variable to run the E2E test
2525
default: 'true'
26-
uid2_e2e_pipeline_core_url:
26+
uid2_core_e2e_core_url:
2727
description: Environment variable for Core service
28-
default: 'http://core:8088'
29-
uid2_e2e_pipeline_optout_url:
28+
default: http://core:8088
29+
uid2_core_e2e_optout_url:
3030
description: Environment variable for OptOut service
31-
default: 'http://optout:8081'
31+
default: http://optout:8081
32+
uid2_pipeline_e2e_core_url:
33+
description: Environment variable to run the E2E test
34+
default: http://core:8088
35+
uid2_pipeline_e2e_operator_url:
36+
description: Environment variable to run the E2E test
37+
default: http://publicoperator:8080
38+
uid2_pipeline_e2e_operator_type:
39+
description: Environment variable to run the E2E test
40+
default: PUBLIC
41+
uid2_pipeline_e2e_operator_cloud_provider:
42+
description: Environment variable to run the E2E test
43+
default: PUBLIC
3244

3345
runs:
3446
using: "composite"
3547

3648
steps:
37-
- name: Run E2E tests
49+
- name: Pull E2E image
3850
shell: bash
3951
run: |
4052
docker pull ghcr.io/iabtechlab/uid2-e2e:${{ inputs.e2e_image_version }}
4153
docker images
42-
echo $UID2_E2E_PIPELINE_OPERATOR_TYPE
54+
55+
- name: Run mock E2E tests
56+
if: ${{ inputs.e2e_env == 'github-test-pipeline-local' }}
57+
shell: bash
58+
run: |
59+
docker run \
60+
--env E2E_SUITES=${{ inputs.e2e_suites }} \
61+
--env E2E_ENV=${{ inputs.e2e_env }} \
62+
--env E2E_IDENTITY_SCOPE='${{ inputs.e2e_identity_scope }}' \
63+
--env E2E_PHONE_SUPPORT='${{ inputs.e2e_phone_support }}' \
64+
--env UID2_CORE_E2E_OPERATOR_API_KEY='UID2-O-L-999-dp9Dt0.JVoGpynN4J8nMA7FxmzsavxJa8B9H74y9xdEE=' \
65+
--env UID2_CORE_E2E_OPTOUT_API_KEY='UID2-O-L-127-pDqphU.6FuXzThQMY8YEsCA8crqvAlzyGrjcF8P6XO84=' \
66+
--env UID2_CORE_E2E_CORE_URL='${{ inputs.uid2_core_e2e_core_url }}' \
67+
--env UID2_CORE_E2E_OPTOUT_URL='${{ inputs.uid2_core_e2e_optout_url }}' \
68+
--env UID2_OPERATOR_E2E_CLIENT_SITE_ID='999' \
69+
--env UID2_OPERATOR_E2E_CLIENT_API_KEY='UID2-C-L-999-fCXrMM.fsR3mDqAXELtWWMS+xG1s7RdgRTMqdOH2qaAo=' \
70+
--env UID2_OPERATOR_E2E_CLIENT_API_SECRET='DzBzbjTJcYL0swDtFs2krRNu+g1Eokm2tBU4dEuD0Wk=' \
71+
--env UID2_OPERATOR_E2E_CLIENT_API_KEY_BEFORE_OPTOUT_CUTOFF='UID2-C-L-1000-qxpBsF.ibeCDBpD2bq4Zm7inDacGioUk1aaLeNJrabow=' \
72+
--env UID2_OPERATOR_E2E_CLIENT_API_SECRET_BEFORE_OPTOUT_CUTOFF='VT7+t0G/RVueMuVZAL56I2c3JJFSYQfhbu8yo0V/Tds=' \
73+
--env UID2_OPERATOR_E2E_CLIENT_API_KEY_SHARING_RECIPIENT='UID2-C-L-1000-qxpBsF.ibeCDBpD2bq4Zm7inDacGioUk1aaLeNJrabow=' \
74+
--env UID2_OPERATOR_E2E_CLIENT_API_SECRET_SHARING_RECIPIENT='VT7+t0G/RVueMuVZAL56I2c3JJFSYQfhbu8yo0V/Tds=' \
75+
--env UID2_OPERATOR_E2E_CLIENT_API_KEY_NON_SHARING_RECIPIENT='UID2-C-L-123-t32pCM.5NCX1E94UgOd2f8zhsKmxzCoyhXohHYSSWR8U=' \
76+
--env UID2_OPERATOR_E2E_CLIENT_API_SECRET_NON_SHARING_RECIPIENT='FsD4bvtjMkeTonx6HvQp6u0EiI1ApGH4pIZzZ5P7UcQ=' \
77+
--env UID2_OPERATOR_E2E_CSTG_SUBSCRIPTION_ID='LBk2xJsgrS' \
78+
--env UID2_OPERATOR_E2E_CSTG_SERVER_PUBLIC_KEY='UID2-X-L-MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWyCP9O/6ppffj8f5PUWsEhAoMNdTBnpnkiOPZBkVnLkxOyTjPsKzf5J3ApPHzutAGNGgKAzFc6TuCfo+BWsZtQ==' \
79+
--env UID2_OPERATOR_E2E_CSTG_ORIGIN='https://example.com' \
80+
--env UID2_OPERATOR_E2E_CSTG_INVALID_ORIGIN='https://example.org' \
81+
--env UID2_PIPELINE_E2E_CORE_URL='${{ inputs.uid2_pipeline_e2e_core_url }}' \
82+
--env UID2_PIPELINE_E2E_OPERATOR_URL='${{ inputs.uid2_pipeline_e2e_operator_url }}' \
83+
--env UID2_PIPELINE_E2E_OPERATOR_TYPE='${{ inputs.uid2_pipeline_e2e_operator_type }}' \
84+
--env UID2_PIPELINE_E2E_OPERATOR_CLOUD_PROVIDER='${{ inputs.uid2_pipeline_e2e_operator_cloud_provider }}' \
85+
--network '${{ inputs.e2e_network }}' \
86+
ghcr.io/iabtechlab/uid2-e2e:${{ inputs.e2e_image_version }}
87+
88+
- name: Run real E2E tests
89+
if: ${{ inputs.e2e_env == 'github-test-pipeline' }}
90+
shell: bash
91+
run: |
4392
docker run \
44-
--env UID2_E2E_ENV='github-test-pipeline' \
45-
--env UID2_E2E_API_KEY='UID2-C-L-999-fCXrMM.fsR3mDqAXELtWWMS+xG1s7RdgRTMqdOH2qaAo=' \
46-
--env UID2_E2E_API_KEY_NON_SHARING_RECIPIENT='UID2-C-L-123-t32pCM.5NCX1E94UgOd2f8zhsKmxzCoyhXohHYSSWR8U=' \
47-
--env UID2_E2E_API_KEY_OLD='UID2-C-L-1000-qxpBsF.ibeCDBpD2bq4Zm7inDacGioUk1aaLeNJrabow=' \
48-
--env UID2_E2E_API_KEY_SHARING_RECIPIENT='UID2-C-L-1000-qxpBsF.ibeCDBpD2bq4Zm7inDacGioUk1aaLeNJrabow=' \
49-
--env UID2_E2E_API_SECRET='DzBzbjTJcYL0swDtFs2krRNu+g1Eokm2tBU4dEuD0Wk=' \
50-
--env UID2_E2E_API_SECRET_NON_SHARING_RECIPIENT='FsD4bvtjMkeTonx6HvQp6u0EiI1ApGH4pIZzZ5P7UcQ=' \
51-
--env UID2_E2E_API_SECRET_OLD='VT7+t0G/RVueMuVZAL56I2c3JJFSYQfhbu8yo0V/Tds=' \
52-
--env UID2_E2E_API_SECRET_SHARING_RECIPIENT='VT7+t0G/RVueMuVZAL56I2c3JJFSYQfhbu8yo0V/Tds=' \
53-
--env UID2_E2E_SUBSCRIPTION_ID='LBk2xJsgrS' \
54-
--env UID2_E2E_SERVER_PUBLIC_KEY='UID2-X-L-MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWyCP9O/6ppffj8f5PUWsEhAoMNdTBnpnkiOPZBkVnLkxOyTjPsKzf5J3ApPHzutAGNGgKAzFc6TuCfo+BWsZtQ==' \
55-
--env UID2_E2E_ORIGIN='https://example.com' \
56-
--env UID2_E2E_INVALID_ORIGIN='https://example.org' \
57-
--env UID2_E2E_IDENTITY_SCOPE='${{ inputs.uid2_e2e_identity_scope }}' \
58-
--env UID2_E2E_PHONE_SUPPORT='${{ inputs.uid2_e2e_phone_support }}' \
59-
--env UID2_E2E_PIPELINE_OPERATOR_CLOUD_PROVIDER='${{ inputs.uid2_e2e_pipeline_operator_cloud_provider }}' \
60-
--env UID2_E2E_PIPELINE_OPERATOR_TYPE='${{ inputs.uid2_e2e_pipeline_operator_type }}' \
61-
--env UID2_E2E_PIPELINE_OPERATOR_URL='${{ inputs.uid2_e2e_pipeline_operator_url }}' \
62-
--env UID2_E2E_SITE_ID='999' \
63-
--env UID2_E2E_CORE_API_TOKEN='UID2-O-L-999-dp9Dt0.JVoGpynN4J8nMA7FxmzsavxJa8B9H74y9xdEE=' \
64-
--env UID2_E2E_OPTOUT_TO_CALL_CORE_API_TOKEN='UID2-O-L-127-pDqphU.6FuXzThQMY8YEsCA8crqvAlzyGrjcF8P6XO84=' \
65-
--env UID2_E2E_CORE_URL='${{ inputs.uid2_e2e_pipeline_core_url }}' \
66-
--env UID2_E2E_OPTOUT_URL='${{ inputs.uid2_e2e_pipeline_optout_url }}' \
93+
--env E2E_SUITES='${{ inputs.e2e_suites }}' \
94+
--env E2E_ARGS_JSON='${{ inputs.e2e_args_json }}' \
95+
--env E2E_ENV='${{ inputs.e2e_env }}' \
96+
--env E2E_IDENTITY_SCOPE='${{ inputs.e2e_identity_scope }}' \
97+
--env E2E_PHONE_SUPPORT='${{ inputs.e2e_phone_support }}' \
98+
--env UID2_CORE_E2E_CORE_URL='${{ inputs.uid2_core_e2e_core_url }}' \
99+
--env UID2_CORE_E2E_OPTOUT_URL='${{ inputs.uid2_core_e2e_optout_url }}' \
100+
--env UID2_PIPELINE_E2E_CORE_URL='${{ inputs.uid2_pipeline_e2e_core_url }}' \
101+
--env UID2_PIPELINE_E2E_OPERATOR_URL='${{ inputs.uid2_pipeline_e2e_operator_url }}' \
102+
--env UID2_PIPELINE_E2E_OPERATOR_TYPE='${{ inputs.uid2_pipeline_e2e_operator_type }}' \
103+
--env UID2_PIPELINE_E2E_OPERATOR_CLOUD_PROVIDER='${{ inputs.uid2_pipeline_e2e_operator_cloud_provider }}' \
67104
--network '${{ inputs.e2e_network }}' \
68105
ghcr.io/iabtechlab/uid2-e2e:${{ inputs.e2e_image_version }}

actions/start_aks_private_operator/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ inputs:
1010
required: true
1111

1212
outputs:
13-
uid2_e2e_pipeline_operator_url:
13+
uid2_pipeline_e2e_operator_url:
1414
description: The AKS operator URL
15-
value: ${{ steps.start_aks.outputs.uid2_e2e_pipeline_operator_url }}
15+
value: ${{ steps.start_aks.outputs.uid2_pipeline_e2e_operator_url }}
1616

1717
runs:
1818
using: "composite"

actions/start_aws_private_operator/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ outputs:
3131
aws_stack_name:
3232
description: The AWS instance name
3333
value: ${{ steps.start_aws.outputs.AWS_STACK_NAME }}
34-
uid2_e2e_pipeline_operator_url:
34+
uid2_pipeline_e2e_operator_url:
3535
description: The AWS operator URL
36-
value: ${{ steps.start_aws.outputs.uid2_e2e_pipeline_operator_url }}
36+
value: ${{ steps.start_aws.outputs.uid2_pipeline_e2e_operator_url }}
3737

3838
runs:
3939
using: "composite"

actions/start_azure_private_operator/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ outputs:
2525
azure_container_group_name:
2626
description: The Azure instance name
2727
value: ${{ steps.start_azure.outputs.azure_container_group_name }}
28-
uid2_e2e_pipeline_operator_url:
28+
uid2_pipeline_e2e_operator_url:
2929
description: The Azure operator URL
30-
value: ${{ steps.start_azure.outputs.uid2_e2e_pipeline_operator_url }}
30+
value: ${{ steps.start_azure.outputs.uid2_pipeline_e2e_operator_url }}
3131

3232
runs:
3333
using: "composite"

actions/start_gcp_private_operator/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ outputs:
2525
gcp_instance_name:
2626
description: The GCP instance name
2727
value: ${{ steps.start_gcp.outputs.GCP_INSTANCE_NAME }}
28-
uid2_e2e_pipeline_operator_url:
28+
uid2_pipeline_e2e_operator_url:
2929
description: The GCP operator URL
30-
value: ${{ steps.start_gcp.outputs.uid2_e2e_pipeline_operator_url }}
30+
value: ${{ steps.start_gcp.outputs.uid2_pipeline_e2e_operator_url }}
3131

3232
runs:
3333
using: "composite"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Stop AKS Private Operator
2+
description: Spins down an AKS private operator
3+
4+
inputs:
5+
azure_credentials:
6+
description: The Azure credentials
7+
required: true
8+
9+
runs:
10+
using: "composite"
11+
12+
steps:
13+
- name: Log in to Azure
14+
uses: azure/login@v2
15+
with:
16+
creds: ${{ inputs.azure_credentials }}
17+
enable-AzPSSession: true
18+
19+
- name: Stop AKS private operator
20+
shell: bash
21+
run: |
22+
bash uid2-shared-actions/scripts/aks/stop_aks_enclave.sh

0 commit comments

Comments
 (0)