Skip to content

Commit d6d5163

Browse files
authored
Add support to test multi service API version (Azure#12719)
* [WIP] prototype: multi-service-version test support * Move multi-version test support into its own package * Add some unit tests * Add README * Fix missing rollup error in CI build * Disable browser test bundling * Remove option to specify custom string comparison function Now it's required to have a sorted list of API version strings supported by the service from the oldest to the latest. This list is used to compare version strings. Add missing `skip` method to the chain object. Add unit tests * Fix README analysis issue * Move `forEach()` and `onVersions()` into `versionsToTest()` * Ignore README verification errors * Fix rollup error * Undo file moves * Minor README tweak * Fix build error in pipeline * Add `DISABLE_MULTI_VERSION_TESTING` env var
1 parent 0b18dd6 commit d6d5163

File tree

16 files changed

+925
-197
lines changed

16 files changed

+925
-197
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 29 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dataplane.code-workspace

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@
204204
"name": "perfstress",
205205
"path": "sdk/test-utils/perfstress"
206206
},
207+
{
208+
"name": "multi-version test",
209+
"path": "sdk/test-utils/multi-version"
210+
},
207211
{
208212
"path": "sdk\\digitaltwins\\digital-twins-core"
209213
}

eng/.docsettings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ known_content_issues:
130130
- ["sdk/synapse/synapse/README.md",  "#1583"]
131131
- ["sdk/template/template/README.md",  "#1583"]
132132
- ["sdk/test-utils/recorder/README.md",  "#1583"]
133+
- ["sdk/test-utils/multi-version/README.md", "#1583"]
133134
- ["sdk/test-utils/perfstress/CHANGELOG.md", "#1583"]
134135

135136
package_indexing_exclusion_list:

rush.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,11 @@
597597
"projectFolder": "sdk/test-utils/perfstress",
598598
"versionPolicyName": "utility"
599599
},
600+
{
601+
"packageName": "@azure/test-utils-multi-version",
602+
"projectFolder": "sdk/test-utils/multi-version",
603+
"versionPolicyName": "utility"
604+
},
600605
{
601606
"packageName": "@azure/digital-twins-core",
602607
"projectFolder": "sdk/digitaltwins/digital-twins-core",

sdk/keyvault/keyvault-keys/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
9999
"@azure/identity": "^1.1.0",
100100
"@azure/test-utils-recorder": "^1.0.0",
101+
"@azure/test-utils-multi-version": "^1.0.0",
101102
"@microsoft/api-extractor": "7.7.11",
102103
"@rollup/plugin-commonjs": "11.0.2",
103104
"@rollup/plugin-json": "^4.0.0",

0 commit comments

Comments
 (0)