-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tps tests - add test cases by leveraging some green field typespec fi…
…les (#1414)
- Loading branch information
Showing
6,038 changed files
with
1,184,069 additions
and
3 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
tests-upgrade/tests-emitter/AppComplianceAutomation.Management/client.tsp
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,9 @@ | ||
import "./main.tsp"; | ||
import "@azure-tools/typespec-client-generator-core"; | ||
|
||
using Azure.ClientGenerator.Core; | ||
|
||
@@clientName(Microsoft.AppComplianceAutomation, | ||
"AppComplianceAutomationMgmt", | ||
"python" | ||
); |
65 changes: 65 additions & 0 deletions
65
...itter/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_CreateOrUpdate.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,65 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"evidenceName": "evidence1", | ||
"parameters": { | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"filePath": "/test-byos/evidence1.png", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
} | ||
}, | ||
"reportName": "testReportName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "evidence1", | ||
"type": "Microsfot.AppComplianceAutomation/reports/evidences", | ||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1", | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"extraData": "sampleData", | ||
"filePath": "/acat-container/evidence1.png", | ||
"provisioningState": "Succeeded", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
}, | ||
"systemData": { | ||
"createdAt": "2021-05-14T22:34:55.4499903Z", | ||
"createdBy": "00000000-0000-0000-0000-000000000000", | ||
"createdByType": "User", | ||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z", | ||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000", | ||
"lastModifiedByType": "User" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "evidence1", | ||
"type": "Microsfot.AppComplianceAutomation/reports/evidences", | ||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1", | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"extraData": "sampleData", | ||
"filePath": "/acat-container/evidence1.png", | ||
"provisioningState": "Succeeded", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
}, | ||
"systemData": { | ||
"createdAt": "2021-05-14T22:34:55.4499903Z", | ||
"createdBy": "00000000-0000-0000-0000-000000000000", | ||
"createdByType": "User", | ||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z", | ||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000", | ||
"lastModifiedByType": "User" | ||
} | ||
} | ||
} | ||
}, | ||
"operationId": "Evidence_CreateOrUpdate", | ||
"title": "Evidence_CreateOrUpdate" | ||
} |
13 changes: 13 additions & 0 deletions
13
...tests-emitter/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_Delete.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,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"evidenceName": "evidence1", | ||
"reportName": "testReportName" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
}, | ||
"operationId": "Evidence_Delete", | ||
"title": "Evidence_Delete" | ||
} |
22 changes: 22 additions & 0 deletions
22
...sts-emitter/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_Download.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,22 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"evidenceName": "evidence1", | ||
"parameters": { | ||
"offerGuid": "00000000-0000-0000-0000-000000000000", | ||
"reportCreatorTenantId": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"reportName": "testReportName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"evidenceFile": { | ||
"url": "this is a url" | ||
} | ||
} | ||
} | ||
}, | ||
"operationId": "Evidence_Download", | ||
"title": "Evidence_Download" | ||
} |
34 changes: 34 additions & 0 deletions
34
...de/tests-emitter/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_Get.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,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"evidenceName": "evidence1", | ||
"reportName": "testReportName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "evidence1", | ||
"type": "Microsfot.AppComplianceAutomation/reports/evidences", | ||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1", | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"extraData": "sampleData", | ||
"filePath": "/acat-container/evidence1.png", | ||
"provisioningState": "Succeeded", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
}, | ||
"systemData": { | ||
"createdAt": "2021-05-14T22:34:55.4499903Z", | ||
"createdBy": "00000000-0000-0000-0000-000000000000", | ||
"createdByType": "User", | ||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z", | ||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000", | ||
"lastModifiedByType": "User" | ||
} | ||
} | ||
} | ||
}, | ||
"operationId": "Evidence_Get", | ||
"title": "Evidence_Get" | ||
} |
37 changes: 37 additions & 0 deletions
37
...emitter/AppComplianceAutomation.Management/examples/2024-06-27/Evidence_ListByReport.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,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"reportName": "reportName" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "evidence1", | ||
"type": "Microsfot.AppComplianceAutomation/reports/evidences", | ||
"id": "/provider/Microsfot.AppComplianceAutomation/reports/testReportName/evidences/evidence1", | ||
"properties": { | ||
"controlId": "Operational_Security_10", | ||
"evidenceType": "File", | ||
"extraData": "sampleData", | ||
"filePath": "/acat-container/evidence1.png", | ||
"provisioningState": "Succeeded", | ||
"responsibilityId": "authorized_ip_ranges_should_be_defined_on_kubernetes_services" | ||
}, | ||
"systemData": { | ||
"createdAt": "2021-05-14T22:34:55.4499903Z", | ||
"createdBy": "00000000-0000-0000-0000-000000000000", | ||
"createdByType": "User", | ||
"lastModifiedAt": "2021-05-14T22:34:55.4499903Z", | ||
"lastModifiedBy": "00000000-0000-0000-0000-000000000000", | ||
"lastModifiedByType": "User" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"operationId": "Evidence_ListByReport", | ||
"title": "Evidence_ListByReport" | ||
} |
33 changes: 33 additions & 0 deletions
33
...eAutomation.Management/examples/2024-06-27/ListInUseStorageAccountsWithSubscriptions.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,33 @@ | ||
{ | ||
"operationId": "ProviderActions_ListInUseStorageAccounts", | ||
"title": "ListInUseStorageAccountsWithSubscriptions", | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"parameters": { | ||
"subscriptionIds": [ | ||
"0000000-0000-0000-0000-000000000001", | ||
"0000000-0000-0000-0000-000000000002" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"storageAccountList": [ | ||
{ | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroup": "tetsRG", | ||
"accountName": "SA_name1", | ||
"location": "WEST US" | ||
}, | ||
{ | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroup": "tetsRG", | ||
"accountName": "SA_name2", | ||
"location": "WEST US" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...tomation.Management/examples/2024-06-27/ListInUseStorageAccountsWithoutSubscriptions.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,28 @@ | ||
{ | ||
"operationId": "ProviderActions_ListInUseStorageAccounts", | ||
"title": "ListInUseStorageAccountsWithoutSubscriptions", | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"parameters": {} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"storageAccountList": [ | ||
{ | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroup": "tetsRG", | ||
"accountName": "SA_name1", | ||
"location": "WEST US" | ||
}, | ||
{ | ||
"subscriptionId": "0000000-0000-0000-0000-000000000001", | ||
"resourceGroup": "tetsRG", | ||
"accountName": "SA_name2", | ||
"location": "WEST US" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...upgrade/tests-emitter/AppComplianceAutomation.Management/examples/2024-06-27/Onboard.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,29 @@ | ||
{ | ||
"operationId": "ProviderActions_Onboard", | ||
"title": "Onboard", | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"parameters": { | ||
"subscriptionIds": [ | ||
"00000000-0000-0000-0000-000000000000", | ||
"00000000-0000-0000-0000-000000000001" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"subscriptionIds": [ | ||
"00000000-0000-0000-0000-000000000000", | ||
"00000000-0000-0000-0000-000000000001" | ||
] | ||
} | ||
}, | ||
"202": { | ||
"headers": { | ||
"Location": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationResults/{operationId}", | ||
"Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AppComplianceAutomation/operationStatuses/{operationId}" | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...tests-emitter/AppComplianceAutomation.Management/examples/2024-06-27/Operations_List.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,25 @@ | ||
{ | ||
"title": "Operations_List", | ||
"operationId": "Operations_List", | ||
"parameters": { | ||
"api-version": "2024-06-27" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.AppComplianceAutomation/reports/write", | ||
"isDataAction": false, | ||
"display": { | ||
"provider": "Microsoft AppComplianceAutomation", | ||
"resource": "Microsoft.AppComplianceAutomation/reports", | ||
"operation": "Microsoft.AppComplianceAutomation/reports/write", | ||
"description": "Create new reports." | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
.../AppComplianceAutomation.Management/examples/2024-06-27/Report_CheckNameAvailability.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,20 @@ | ||
{ | ||
"operationId": "ProviderActions_CheckNameAvailability", | ||
"title": "Report_CheckNameAvailability", | ||
"parameters": { | ||
"api-version": "2024-06-27", | ||
"parameters": { | ||
"name": "reportABC", | ||
"type": "Microsoft.AppComplianceAutomation/reports" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"message": "An report named 'reportABC' is already in use.", | ||
"nameAvailable": false, | ||
"reason": "AlreadyExists" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.