Skip to content

Commit

Permalink
Add Test Base Swagger Spec from RPSaaSMaster (Azure#14113)
Browse files Browse the repository at this point in the history
Co-authored-by: Bin Yu <[email protected]>
  • Loading branch information
2 people authored and dabenhamMic committed May 4, 2021
1 parent b946189 commit 85c7216
Show file tree
Hide file tree
Showing 52 changed files with 7,053 additions and 0 deletions.
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
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
}
]
}
}
}
}
}
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
}
]
}
}
]
}
}
}
}
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
}
]
}
]
}
}
}
}
}
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
}
]
}
]
}
}
]
}
}
}
}
Loading

0 comments on commit 85c7216

Please sign in to comment.