-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Data Plane - Microsoft.AzurePlaywrightService integration into Microsoft.LoadTestService #34012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
83ee5eb
First commit of adding existing Playwright Dataplane APIs in Microsof…
mjmadhu 45940d6
Added APIs for Playwright in Microsoft.Loadtestservice
mjmadhu 52a6fca
Merge branch 'main' into malt-mpt-integration-dataplane
mjmadhu 5002beb
Added readme changes for fixing CI failures
mjmadhu aea1376
Resolved examples error
mjmadhu d658a44
Removed playwright folder for proper naming
mjmadhu 6520954
Renamed playwright service folder
mjmadhu d767dab
Removed shared folder as suggested
mjmadhu fc417e3
Merge branch 'main' into malt-mpt-integration-dataplane
mjmadhu 503b488
Merge branch 'main' into malt-mpt-integration-dataplane
mjmadhu 9f3ffce
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu a05d678
Readme files modifications
mjmadhu 069c158
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu bd419d9
Added missing version from readme
mjmadhu acd1a9b
Renamed folder as suggested
mjmadhu 024bddb
Merge branch 'main' into malt-mpt-integration-dataplane
mjmadhu 78183f9
Removed code to swagger sections from readme
mjmadhu 6d9b907
Merge branch 'malt-mpt-integration-dataplane' of https://github.com/A…
mjmadhu 892d369
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu e37ad94
Generate-metadata set to true
mjmadhu aec41ab
Removed GET workspaces API and added patterns
mjmadhu d074f99
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu 2b16431
Merge branch 'main' into malt-mpt-integration-dataplane
mikeharder 689bc07
TSP Formatting
mjmadhu 5378c05
Merge branch 'malt-mpt-integration-dataplane' of https://github.com/A…
mjmadhu e567cf1
Added suppressions.yaml
mjmadhu a6de0e0
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu 2b5ba50
Removing deprecated preview versions
mjmadhu 2936195
Formatting files
mjmadhu 5fb0ace
Guid maxlength correction
mjmadhu d472e2f
Maxlength correction
mjmadhu 90490b2
Re-checking swagger lint diff errors
mjmadhu 70e4858
Removed all suppressions
mjmadhu d1b7473
Resolved example issue
mjmadhu 27877f0
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu 313c295
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu 3bf37b0
Added runid as query param in get brwosers api
mjmadhu 0df56c1
Added test runs APIs
mjmadhu 25fdede
Added certain validations
mjmadhu dd4c5da
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu 2bd4a64
Updated example
mjmadhu 4a502de
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu f1a0f3e
Updated tspconfig.yaml
mjmadhu ed8f279
TSP Validation fix
mjmadhu 23ca2ba
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu b145fc1
Review comments on Test run model
mjmadhu 916d9ff
Review comments on Test run model
mjmadhu 2567d9a
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
mjmadhu 0b2c892
Fixed Typo in property name for model validation
mjmadhu b45bb0a
Merge branch 'main' into malt-mpt-integration-dataplane
mjmadhu 6b7669d
TSP Validation fix
mjmadhu 35fb2d4
TSP Validation fix
mjmadhu 4303998
TSP Validation fix
mjmadhu 3e64c22
TSP Validation fix
mjmadhu d00ede8
TSP Validation fix
mjmadhu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
.../loadtestservice/Playwright/examples/2025-07-01-preview/AccessTokens_CreateOrReplace.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "title": "AccessTokens_CreateOrReplace", | ||
| "operationId": "AccessTokens_CreateOrReplace", | ||
| "parameters": { | ||
| "api-version": "2025-07-01-preview", | ||
| "workspaceId": "00000000-0000-0000-0000-000000000000", | ||
| "accessTokenId": "00000000-0000-0000-0000-000000000000", | ||
| "resource": { | ||
| "name": "sampleAccessToken", | ||
| "expiryAt": "2022-09-28T12:32:33Z" | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "name": "sampleAccessToken", | ||
| "jwtToken": "sampleJwtToken", | ||
| "createdAt": "2021-09-28T12:32:33Z", | ||
| "expiryAt": "2022-09-28T12:32:33Z", | ||
| "state": "Active" | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "name": "sampleAccessToken", | ||
| "jwtToken": "sampleJwtToken", | ||
| "createdAt": "2021-09-28T12:32:33Z", | ||
| "expiryAt": "2022-09-28T12:32:33Z", | ||
| "state": "Active" | ||
| } | ||
| } | ||
| } | ||
| } |
12 changes: 12 additions & 0 deletions
12
...ification/loadtestservice/Playwright/examples/2025-07-01-preview/AccessTokens_Delete.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "title": "AccessTokens_Delete", | ||
| "operationId": "AccessTokens_Delete", | ||
| "parameters": { | ||
| "api-version": "2025-07-01-preview", | ||
| "workspaceId": "00000000-0000-0000-0000-000000000000", | ||
| "accessTokenId": "00000000-0000-0000-0000-000000000000" | ||
| }, | ||
| "responses": { | ||
| "204": {} | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
specification/loadtestservice/Playwright/examples/2025-07-01-preview/AccessTokens_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "title": "AccessTokens_Get", | ||
| "operationId": "AccessTokens_Get", | ||
| "parameters": { | ||
| "api-version": "2025-07-01-preview", | ||
| "workspaceId": "00000000-0000-0000-0000-000000000000", | ||
| "accessTokenId": "00000000-0000-0000-0000-000000000000" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "name": "sampleAccessToken", | ||
| "createdAt": "2021-09-28T12:32:33Z", | ||
| "expiryAt": "2022-09-28T12:32:33Z", | ||
| "state": "Active" | ||
| } | ||
| } | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
specification/loadtestservice/Playwright/examples/2025-07-01-preview/AccessTokens_List.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "title": "AccessTokens_List", | ||
| "operationId": "AccessTokens_List", | ||
| "parameters": { | ||
| "api-version": "2025-07-01-preview", | ||
| "workspaceId": "00000000-0000-0000-0000-000000000000" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "name": "sampleAccessToken", | ||
| "createdAt": "2021-09-28T12:32:33Z", | ||
| "expiryAt": "2022-09-28T12:32:33Z", | ||
| "state": "Active" | ||
| } | ||
| ], | ||
| "nextLink": null | ||
| } | ||
| } | ||
| } | ||
| } |
86 changes: 86 additions & 0 deletions
86
...ation/loadtestservice/Playwright/examples/2025-07-01-preview/TestRuns_CreateOrUpdate.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| { | ||
| "title": "TestRuns_CreateOrUpdate", | ||
| "operationId": "TestRuns_CreateOrUpdate", | ||
| "parameters": { | ||
| "api-version": "2025-07-01-preview", | ||
| "workspaceId": "00000000-0000-0000-0000-000000000000", | ||
| "runId": "00000000-0000-0000-0000-000000000000", | ||
| "resource": { | ||
| "displayName": "sampleTestRun" | ||
| } | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "displayName": "sampleTestRun", | ||
| "creatorId": "string", | ||
| "creatorName": "string", | ||
| "config": { | ||
| "framework": { | ||
| "name": "string", | ||
| "version": "string", | ||
| "runnerName": "string" | ||
| }, | ||
| "sdkLanguage": "JAVASCRIPT", | ||
| "maxWorkers": 10 | ||
| }, | ||
| "ciConfig": { | ||
| "providerName": "string", | ||
| "branch": "string", | ||
| "author": "string", | ||
| "commitId": "string", | ||
| "revisionUrl": "string" | ||
| }, | ||
| "summary": { | ||
| "status": "RUNNING", | ||
| "billableTime": 0, | ||
| "numBrowserSessions": 1, | ||
| "maxConcurrentBrowserSessions": 10, | ||
| "startTime": "2025-06-06T11:43:28.954Z", | ||
| "endTime": "2025-06-06T11:43:28.954Z", | ||
| "duration": 0, | ||
| "errorMessages": [ | ||
| "string" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "201": { | ||
| "body": { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "displayName": "sampleTestRun", | ||
| "creatorId": "string", | ||
| "creatorName": "string", | ||
| "config": { | ||
| "framework": { | ||
| "name": "string", | ||
| "version": "string", | ||
| "runnerName": "string" | ||
| }, | ||
| "sdkLanguage": "JAVASCRIPT", | ||
| "maxWorkers": 10 | ||
| }, | ||
| "ciConfig": { | ||
| "providerName": "string", | ||
| "branch": "string", | ||
| "author": "string", | ||
| "commitId": "string", | ||
| "revisionUrl": "string" | ||
| }, | ||
| "summary": { | ||
| "status": "RUNNING", | ||
| "billableTime": 0, | ||
| "numBrowserSessions": 1, | ||
| "maxConcurrentBrowserSessions": 10, | ||
| "startTime": "2025-06-06T11:43:28.954Z", | ||
| "endTime": "2025-06-06T11:43:28.954Z", | ||
| "duration": 0, | ||
| "errorMessages": [ | ||
| "string" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
51 changes: 51 additions & 0 deletions
51
specification/loadtestservice/Playwright/examples/2025-07-01-preview/TestRuns_List.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| { | ||
| "title": "TestRuns_List", | ||
| "operationId": "TestRuns_List", | ||
| "parameters": { | ||
| "api-version": "2025-07-01-preview", | ||
| "workspaceId": "00000000-0000-0000-0000-000000000000" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "00000000-0000-0000-0000-000000000000", | ||
| "displayName": "string", | ||
| "creatorId": "string", | ||
| "creatorName": "string", | ||
| "config": { | ||
| "framework": { | ||
| "name": "string", | ||
| "version": "string", | ||
| "runnerName": "string" | ||
| }, | ||
| "sdkLanguage": "JAVASCRIPT", | ||
| "maxWorkers": 10 | ||
| }, | ||
| "ciConfig": { | ||
| "providerName": "string", | ||
| "branch": "string", | ||
| "author": "string", | ||
| "commitId": "string", | ||
| "revisionUrl": "string" | ||
| }, | ||
| "summary": { | ||
| "status": "RUNNING", | ||
| "billableTime": 0, | ||
| "numBrowserSessions": 1, | ||
| "maxConcurrentBrowserSessions": 10, | ||
| "startTime": "2025-06-06T11:43:28.954Z", | ||
| "endTime": "2025-06-06T11:43:28.954Z", | ||
| "duration": 0, | ||
| "errorMessages": [ | ||
| "string" | ||
| ] | ||
| } | ||
| } | ||
| ], | ||
| "nextLink": null | ||
| } | ||
| } | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
...cation/loadtestservice/Playwright/examples/2025-07-01-preview/Workspaces_GetBrowsers.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "title": "Workspaces_GetBrowsers", | ||
| "operationId": "Workspaces_GetBrowsers", | ||
| "parameters": { | ||
| "api-version": "2025-07-01-preview", | ||
| "workspaceId": "00000000-0000-0000-0000-000000000000", | ||
| "os": "Linux" | ||
| }, | ||
| "responses": { | ||
| "302": { | ||
| "headers": { | ||
| "location": "wss://{region}.api.playwright.microsoft.com/redirectURL?api-version=2025-07-01-preview&os=Linux" | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| // cheat-sheet - https://microsoft.github.io/typespec/standard-library/http/cheat-sheet | ||
| // tsp compile main.tsp --emit @azure-tools/typespec-autorest | ||
|
|
||
| import "@typespec/http"; | ||
| import "@typespec/versioning"; | ||
| import "./routes.tsp"; | ||
|
|
||
| using TypeSpec.Http; | ||
| using TypeSpec.Versioning; | ||
|
|
||
| @server( | ||
| "{endpoint}", | ||
| "Playwright Service API Endpoint", | ||
| { | ||
| @doc(""" | ||
| Supported Playwright Service API Endpoints (protocol and hostname) formatted as https://{region}.api.playwright.microsoft.com. | ||
| You can also find this value in the Azure Playwright Workspace property, such as `dataplaneUri`. | ||
| """) | ||
| endpoint: string, | ||
| } | ||
| ) | ||
| @useAuth( | ||
| [ | ||
| OAuth2Auth<[ | ||
| { | ||
| type: OAuth2FlowType.implicit, | ||
| description: "We can use OAuth2 Implicit flow to get the auth token for calling the APIs.", | ||
| authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| scopes: ["https://playwright.microsoft.com/.default"], | ||
| } | ||
| ]>, | ||
| OAuth2Auth<[ | ||
| { | ||
| type: OAuth2FlowType.authorizationCode, | ||
| description: "We can use OAuth2 Authorization Code flow to get the auth token for calling the APIs.", | ||
| authorizationUrl: "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| tokenUrl: "https://login.microsoftonline.com/common/v2.0/oauth2/token", | ||
| scopes: ["https://playwright.microsoft.com/.default"], | ||
| } | ||
| ]> | ||
| ] | ||
| ) | ||
| @service(#{ title: "Playwright Service API" }) | ||
| @versioned(Playwright.Versions) | ||
| namespace Playwright; | ||
|
|
||
| @doc("Playwright Service API Versions.") | ||
| enum Versions { | ||
| @doc("Version 2025-07-01-preview") | ||
| @useDependency(Azure.Core.Versions.v1_0_Preview_2) | ||
| v2025_07_01_preview: "2025-07-01-preview", | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjmadhu
Would you let me know the reason why you change the
service-name?This value affect name of Java SDK class
LoadTestingServiceVersion.https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/loadtesting/azure-developer-loadtesting/src/main/java/com/azure/developer/loadtesting/LoadTestingServiceVersion.java
With this change, this class would be named
LoadTestServiceVersion, and a change to public class name is a breaking change.