Skip to content

Commit 7e9582d

Browse files
Enabling testing for multiple versions of the Host (#2599)
* Added version testing for Host * Testing multiple versions * Testing multiple versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Testing E2E versions * Resetting tests * Resetting tests * Resetting tests * Resetting changes to templates * Experimenting with templates * Fixed spacing * Fixed spacing * Fixed spacing * Fixed spacing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Testing * Fixed merge conflict * Added condition * Added condition * Removed condition
1 parent 27c798e commit 7e9582d

File tree

3 files changed

+47
-18
lines changed

3 files changed

+47
-18
lines changed

azure-pipelines.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ resources:
2020
- repository: AppHostingSdk
2121
type: git
2222
name: ISS/metaos-hub-sdk
23-
ref: refs/heads/main
23+
ref: $(AppHostLatestBranch)
24+
- repository: AppHostingSdkV4
25+
type: git
26+
name: ISS/metaos-hub-sdk
27+
ref: $(AppHostV4ReleaseBranch)
2428
- repository: AndroidAppHostingSdk
2529
type: git
2630
name: ISS/metaos-hub-sdk-android
@@ -54,6 +58,7 @@ extends:
5458
sourceRepositoriesToScan:
5559
include:
5660
- repository: AppHostingSdk
61+
- repository: AppHostingSdkV4
5762
- repository: AndroidAppHostingSdk
5863
- repository: IOSAppHostingSdk
5964
customBuildTags:
@@ -133,25 +138,15 @@ extends:
133138
mergeTestResults: true
134139
condition: succeededOrFailed()
135140

136-
- template: tools/yaml-templates/web-e2e-tests-job.yml@self
137-
parameters:
138-
AppHostingSdk: AppHostingSdk
139-
hostingEnvironmentType: 'standardWeb'
140-
teamsJsReferenceType: 'npm'
141-
testPrefixPatternGroups: ['{[0-9],[A-D],[a-d]}', '{[E],[e]}', '{[F-M],[f-m]}', '{[N-Z],[n-z]}']
142-
143-
- template: tools/yaml-templates/web-e2e-tests-job.yml@self
141+
- template: tools/yaml-templates/web-e2e-versions.yml@self
144142
parameters:
145143
AppHostingSdk: AppHostingSdk
146-
hostingEnvironmentType: 'standardWeb'
147-
teamsJsReferenceType: 'scriptTag'
148-
testPrefixPatternGroups: ['{[0-9],[A-D],[a-d]}', '{[E],[e]}', '{[F-M],[f-m]}', '{[N-Z],[n-z]}']
144+
versionBranch: 'Latest'
149145

150-
- template: tools/yaml-templates/web-e2e-tests-job.yml@self
146+
- template: tools/yaml-templates/web-e2e-versions.yml@self
151147
parameters:
152-
AppHostingSdk: AppHostingSdk
153-
hostingEnvironmentType: 'electron'
154-
teamsJsReferenceType: 'npm'
148+
AppHostingSdk: AppHostingSdkV4
149+
versionBranch: 'v4'
155150

156151
- job: E2ETestCDN
157152
displayName: 'E2E Tests - CDN (only runs on release builds)'

tools/yaml-templates/web-e2e-tests-job.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ parameters:
1818
- name: testPrefixPatternGroups
1919
type: object
2020
default: ['{[A-Z],[a-z],[0-9]}']
21+
- name: versionBranch
22+
type: string
23+
default: none
2124

2225
jobs:
2326
- ${{each testPrefixPattern in parameters.testPrefixPatternGroups}}:
2427
# This replaces all characters expected to be see in the test prefix pattern that are not valid in a job name with underscores.
2528
# Sadly ADO does not support regex matching here at this time.
26-
- job: E2ETestsWeb_${{parameters.teamsJsReferenceType}}_${{ replace(replace(replace(replace(replace(replace(testPrefixPattern, '[', '_'), ']', '_' ), '{', '_'), '}', '_'), ',', '_'), '-', '_') }}
27-
displayName: 'E2E Tests - Web - Via ${{parameters.teamsJsReferenceType}} - ${{parameters.hostingEnvironmentType}} Hosted - ${{testPrefixPattern}}'
29+
- job: E2ETestsWeb_${{parameters.versionBranch}}_${{parameters.teamsJsReferenceType}}_${{ replace(replace(replace(replace(replace(replace(testPrefixPattern, '[', '_'), ']', '_' ), '{', '_'), '}', '_'), ',', '_'), '-', '_') }}
30+
displayName: 'E2E Tests - Web ${{parameters.versionBranch}} - Via ${{parameters.teamsJsReferenceType}} - ${{parameters.hostingEnvironmentType}} Hosted - ${{testPrefixPattern}}'
2831
pool:
2932
name: Azure-Pipelines-1ESPT-ExDShared
3033
image: 'ubuntu-2004'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
parameters:
2+
- name: AppHostingSdk
3+
default: none
4+
type: string
5+
- name: versionBranch
6+
default: 'Latest'
7+
type: string
8+
9+
jobs:
10+
- template: web-e2e-tests-job.yml@self
11+
parameters:
12+
AppHostingSdk: AppHostingSdk
13+
hostingEnvironmentType: 'standardWeb'
14+
teamsJsReferenceType: 'npm'
15+
testPrefixPatternGroups: ['{[0-9],[A-D],[a-d]}', '{[E],[e]}', '{[F-M],[f-m]}', '{[N-Z],[n-z]}']
16+
versionBranch: ${{parameters.versionBranch}}
17+
18+
- template: web-e2e-tests-job.yml@self
19+
parameters:
20+
AppHostingSdk: AppHostingSdk
21+
hostingEnvironmentType: 'standardWeb'
22+
teamsJsReferenceType: 'scriptTag'
23+
testPrefixPatternGroups: ['{[0-9],[A-D],[a-d]}', '{[E],[e]}', '{[F-M],[f-m]}', '{[N-Z],[n-z]}']
24+
versionBranch: ${{parameters.versionBranch}}
25+
26+
- template: web-e2e-tests-job.yml@self
27+
parameters:
28+
AppHostingSdk: AppHostingSdk
29+
hostingEnvironmentType: 'electron'
30+
teamsJsReferenceType: 'npm'
31+
versionBranch: ${{parameters.versionBranch}}

0 commit comments

Comments
 (0)