Skip to content

Commit 581864a

Browse files
yogeshmoYogesh Mohanraj
andauthored
[Communication][Email] Adding PPE Only Parameter to Email Live Tests (Azure#29492)
* Testing only running the PPE stage * Making PPE stage conditional * Fixing yaml * Fixing yaml * Fixing yaml * Adding stagesToRun parameter * Making stagesToRun a variable * Fixing yaml * Use runtime syntax * Use template syntax * Removing variable value * Adding only PPE parameter * Fixing syntax error --------- Co-authored-by: Yogesh Mohanraj <[email protected]>
1 parent a26cb33 commit 581864a

File tree

1 file changed

+16
-7
lines changed
  • sdk/communication/azure-communication-email

1 file changed

+16
-7
lines changed

sdk/communication/azure-communication-email/tests.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
trigger: none
22

3+
parameters:
4+
- name: runOnlyPPE
5+
displayName: "Run only the PPE stage"
6+
type: boolean
7+
default: false
8+
39
stages:
410
- template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml
511
parameters:
612
BuildTargetingString: 'azure-communication-email'
713
JobName: email
814
ServiceDirectory: communication
915
CloudConfig:
16+
PPE:
17+
SubscriptionConfigurations:
18+
- $(sub-config-communication-ppe-test-resources-common)
19+
- $(sub-config-communication-ppe-test-resources-python)
20+
MatrixReplace:
21+
- TestSamples=.*/true
1022
Public:
1123
SubscriptionConfigurations:
1224
- $(sub-config-azure-cloud-test-resources)
@@ -16,13 +28,10 @@ stages:
1628
SubscriptionConfigurations:
1729
- $(sub-config-communication-int-test-resources-common)
1830
- $(sub-config-communication-int-test-resources-python)
19-
PPE:
20-
SubscriptionConfigurations:
21-
- $(sub-config-communication-ppe-test-resources-common)
22-
- $(sub-config-communication-ppe-test-resources-python)
23-
MatrixReplace:
24-
- TestSamples=.*/true
25-
Clouds: 'Public,PPE,Int'
31+
${{ if eq(parameters.runOnlyPPE, true) }}:
32+
Clouds: 'PPE'
33+
${{ if eq(parameters.runOnlyPPE, false) }}:
34+
Clouds: 'Public,Int,PPE'
2635
EnvVars:
2736
AZURE_SKIP_LIVE_RECORDING: 'True'
2837
AZURE_TEST_RUN_LIVE: 'true'

0 commit comments

Comments
 (0)