forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Test Base Swagger Spec from RPSaaSMaster (Azure#14113)
Co-authored-by: Bin Yu <[email protected]>
- Loading branch information
1 parent
b946189
commit 85c7216
Showing
52 changed files
with
7,053 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...source-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSGet.json
This file contains 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,26 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", | ||
"resourceGroupName": "contoso-rg", | ||
"testBaseAccountName": "contoso-testBaseAccount", | ||
"availableOSResourceName": "Windows-10-2004", | ||
"api-version": "2020-12-16-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "Windows-10-2004", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-2004", | ||
"type": "Microsoft.TestBase/testBaseAccounts/availableOSs", | ||
"properties": { | ||
"osId": "Windows 10 2004", | ||
"osName": "Windows 10 2004", | ||
"osVersion": "Windows 10", | ||
"insiderChannel": "Channel 1", | ||
"osUpdateType": "Feature update", | ||
"osPlatform": "Client" | ||
} | ||
} | ||
} | ||
} | ||
} |
79 changes: 79 additions & 0 deletions
79
...urce-manager/Microsoft.TestBase/preview/2020-12-16-preview/examples/AvailableOSsList.json
This file contains 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,79 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", | ||
"resourceGroupName": "contoso-rg", | ||
"testBaseAccountName": "contoso-testBaseAccount", | ||
"osUpdateType": "SecurityUpdate", | ||
"api-version": "2020-12-16-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Windows-10-2004", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-2004", | ||
"type": "Microsoft.TestBase/testBaseAccounts/availableOSs", | ||
"properties": { | ||
"osId": "Windows 10 2004", | ||
"osName": "Windows 10 2004", | ||
"osVersion": "Windows 10", | ||
"insiderChannel": "Channel 1", | ||
"osUpdateType": "Feature update", | ||
"osPlatform": "Client" | ||
} | ||
}, | ||
{ | ||
"name": "Windows-10-1909", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-1909", | ||
"type": "Microsoft.TestBase/testBaseAccounts/availableOSs", | ||
"properties": { | ||
"osId": "Windows 10 1909", | ||
"osName": "Windows 10 1909", | ||
"osVersion": "Windows 10", | ||
"osUpdateType": "Security update", | ||
"osPlatform": "Client" | ||
} | ||
}, | ||
{ | ||
"name": "Windows-10-1903", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-1903", | ||
"type": "Microsoft.TestBase/testBaseAccounts/availableOSs", | ||
"properties": { | ||
"osId": "Windows 10 1903", | ||
"osName": "Windows 10 1903", | ||
"osVersion": "Windows 10", | ||
"osUpdateType": "Security update", | ||
"osPlatform": "Client" | ||
} | ||
}, | ||
{ | ||
"name": "Windows-10-1809", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-10-1809", | ||
"type": "Microsoft.TestBase/testBaseAccounts/availableOSs", | ||
"properties": { | ||
"osId": "Windows 10 1809", | ||
"osName": "Windows 10 1809", | ||
"osVersion": "Windows 10", | ||
"insiderChannel": "Channel 3", | ||
"osUpdateType": "Feature update", | ||
"osPlatform": "Client" | ||
} | ||
}, | ||
{ | ||
"name": "Windows-Server-2016", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount/availableOSs/Windows-Server-2016", | ||
"type": "Microsoft.TestBase/testBaseAccounts/availableOSs", | ||
"properties": { | ||
"osId": "Windows Server 2016", | ||
"osName": "Windows Server 2016", | ||
"osVersion": "Windows Server 2016", | ||
"osUpdateType": "Security update", | ||
"osPlatform": "Server" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...icrosoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultGet.json
This file contains 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,40 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", | ||
"resourceGroupName": "contoso-rg1", | ||
"testBaseAccountName": "contoso-testBaseAccount1", | ||
"packageName": "contoso-package2", | ||
"testResultName": "Windows-10-1909-Test-Id", | ||
"analysisResultName": "cpuRegression", | ||
"api-version": "2020-12-16-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "cpuRegression", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/cpuRegression", | ||
"type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", | ||
"properties": { | ||
"grade": "Pass", | ||
"analysisResultType": "CPURegression", | ||
"cpuRegressionResults": [ | ||
{ | ||
"fileName": "testApp.exe", | ||
"grade": "Pass", | ||
"details": "Some details of testApp", | ||
"diff": 0.1, | ||
"isRegressed": false | ||
}, | ||
{ | ||
"fileName": "dependencies.exe", | ||
"grade": "Pass", | ||
"details": "Some details of dependencies", | ||
"diff": 0.15, | ||
"isRegressed": false | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...rosoft.TestBase/preview/2020-12-16-preview/examples/CPURegressionAnalysisResultsList.json
This file contains 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,44 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", | ||
"resourceGroupName": "contoso-rg1", | ||
"testBaseAccountName": "contoso-testBaseAccount1", | ||
"packageName": "contoso-package2", | ||
"testResultName": "Windows-10-1909-Test-Id", | ||
"analysisResultType": "CPURegression", | ||
"api-version": "2020-12-16-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "cpuRegression", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/cpuRegression", | ||
"type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", | ||
"properties": { | ||
"grade": "Pass", | ||
"analysisResultType": "CPURegression", | ||
"cpuRegressionResults": [ | ||
{ | ||
"fileName": "testApp.exe", | ||
"grade": "Pass", | ||
"details": "Some details of testApp", | ||
"diff": 0.1, | ||
"isRegressed": false | ||
}, | ||
{ | ||
"fileName": "dependencies.exe", | ||
"grade": "Pass", | ||
"details": "Some details of dependencies", | ||
"diff": 0.15, | ||
"isRegressed": false | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
92 changes: 92 additions & 0 deletions
92
...crosoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultGet.json
This file contains 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,92 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", | ||
"resourceGroupName": "contoso-rg1", | ||
"testBaseAccountName": "contoso-testBaseAccount1", | ||
"packageName": "contoso-package2", | ||
"testResultName": "Windows-10-1909-Test-Id", | ||
"analysisResultName": "cpuUtilization", | ||
"api-version": "2020-12-16-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "cpuUtilization", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/cpuUtilization", | ||
"type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", | ||
"properties": { | ||
"grade": "Pass", | ||
"analysisResultType": "CPUUtilization", | ||
"cpuUtilizationResults": [ | ||
{ | ||
"process": "app.exe", | ||
"upperBound": { | ||
"percentile": 90.0, | ||
"value": 60.0 | ||
}, | ||
"lowerBound": { | ||
"percentile": 50.0, | ||
"value": 20.0 | ||
}, | ||
"utilization": [ | ||
{ | ||
"timestamp": "2020-12-28T17:30:00Z", | ||
"value": 34.7 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:31:00Z", | ||
"value": 35.9 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:32:00Z", | ||
"value": 27.1 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:33:00Z", | ||
"value": 49.8 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:34:00Z", | ||
"value": 45.6 | ||
} | ||
] | ||
}, | ||
{ | ||
"process": "anotherProcess.exe", | ||
"upperBound": { | ||
"percentile": 90.0, | ||
"value": 60.0 | ||
}, | ||
"lowerBound": { | ||
"percentile": 50.0, | ||
"value": 20.0 | ||
}, | ||
"utilization": [ | ||
{ | ||
"timestamp": "2020-12-28T17:30:00Z", | ||
"value": 34.7 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:31:00Z", | ||
"value": 35.9 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:32:00Z", | ||
"value": 27.1 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:33:00Z", | ||
"value": 49.8 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:34:00Z", | ||
"value": 45.6 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
96 changes: 96 additions & 0 deletions
96
...osoft.TestBase/preview/2020-12-16-preview/examples/CPUUtilizationAnalysisResultsList.json
This file contains 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,96 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "476f61a4-952c-422a-b4db-568a828f35df", | ||
"resourceGroupName": "contoso-rg1", | ||
"testBaseAccountName": "contoso-testBaseAccount1", | ||
"packageName": "contoso-package2", | ||
"testResultName": "Windows-10-1909-Test-Id", | ||
"analysisResultType": "CPUUtilization", | ||
"api-version": "2020-12-16-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "cpuUtilization", | ||
"id": "/subscriptions/476f61a4-952c-422a-b4db-568a828f35df/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/packages/contoso-package2/testResults/Windows-10-1909-Test-Id/analysisResults/cpuUtilization", | ||
"type": "Microsoft.TestBase/testBaseAccounts/packages/testResults/analysisResults", | ||
"properties": { | ||
"grade": "Pass", | ||
"analysisResultType": "CPUUtilization", | ||
"cpuUtilizationResults": [ | ||
{ | ||
"process": "app.exe", | ||
"upperBound": { | ||
"percentile": 90.0, | ||
"value": 60.0 | ||
}, | ||
"lowerBound": { | ||
"percentile": 50.0, | ||
"value": 20.0 | ||
}, | ||
"utilization": [ | ||
{ | ||
"timestamp": "2020-12-28T17:30:00Z", | ||
"value": 34.7 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:31:00Z", | ||
"value": 35.9 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:32:00Z", | ||
"value": 27.1 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:33:00Z", | ||
"value": 49.8 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:34:00Z", | ||
"value": 45.6 | ||
} | ||
] | ||
}, | ||
{ | ||
"process": "anotherProcess.exe", | ||
"upperBound": { | ||
"percentile": 90.0, | ||
"value": 60.0 | ||
}, | ||
"lowerBound": { | ||
"percentile": 50.0, | ||
"value": 20.0 | ||
}, | ||
"utilization": [ | ||
{ | ||
"timestamp": "2020-12-28T17:30:00Z", | ||
"value": 34.7 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:31:00Z", | ||
"value": 35.9 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:32:00Z", | ||
"value": 27.1 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:33:00Z", | ||
"value": 49.8 | ||
}, | ||
{ | ||
"timestamp": "2020-12-28T17:34:00Z", | ||
"value": 45.6 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.