-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do hydra to swagger specs migration for azure-sdk-for-net (#3482)
* Do hydra to swagger specs migration for azure-sdk-for-net * Fix build failed problem * update the assemblyinfo file with the updated version 2.6.0 * Revert "update the assemblyinfo file with the updated version 2.6.0" This reverts commit a33beb0. * Updata the AssemblyFileVersion to 2.6.0.0 * revert package version * Make project files concise. * Add Provider test case * update the pr with new tests with session records * remove extra code
- Loading branch information
1 parent
492e814
commit fa80f08
Showing
52 changed files
with
4,158 additions
and
2,973 deletions.
There are no files selected for viewing
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
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
66 changes: 66 additions & 0 deletions
66
...uthorization.Tests.BasicTests/GetProviderOperationsMetadataListWithInvalidAPIVersion.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,66 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "/providers/Microsoft.Authorization/providerOperations?api-version=0001-07-01&$expand=resourceTypes", | ||
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wcm92aWRlck9wZXJhdGlvbnM/YXBpLXZlcnNpb249MDAwMS0wNy0wMSYkZXhwYW5kPXJlc291cmNlVHlwZXM=", | ||
"RequestMethod": "GET", | ||
"RequestBody": "", | ||
"RequestHeaders": { | ||
"x-ms-client-request-id": [ | ||
"dbc90372-3670-493a-8b06-32650e47a124" | ||
], | ||
"accept-language": [ | ||
"en-US" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.25009.03", | ||
"Microsoft.Azure.Management.Authorization.AuthorizationManagementClient/2.5.0.0" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidResourceType\",\r\n \"message\": \"The resource type 'providerOperations' could not be found in the namespace 'Microsoft.Authorization' for api version '0001-07-01'. The supported api-versions are '2015-07-01-preview,2015-07-01,2016-07-01'.\"\r\n }\r\n}", | ||
"ResponseHeaders": { | ||
"Content-Length": [ | ||
"258" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Expires": [ | ||
"-1" | ||
], | ||
"Cache-Control": [ | ||
"no-cache" | ||
], | ||
"Date": [ | ||
"Wed, 26 Jul 2017 07:21:22 GMT" | ||
], | ||
"Pragma": [ | ||
"no-cache" | ||
], | ||
"x-ms-failure-cause": [ | ||
"gateway" | ||
], | ||
"x-ms-ratelimit-remaining-tenant-reads": [ | ||
"14980" | ||
], | ||
"x-ms-request-id": [ | ||
"900673a1-fd3e-4b2c-b0b7-17c8ed0fd052" | ||
], | ||
"x-ms-correlation-request-id": [ | ||
"900673a1-fd3e-4b2c-b0b7-17c8ed0fd052" | ||
], | ||
"x-ms-routing-request-id": [ | ||
"WESTUS:20170726T072122Z:900673a1-fd3e-4b2c-b0b7-17c8ed0fd052" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains" | ||
] | ||
}, | ||
"StatusCode": 404 | ||
} | ||
], | ||
"Names": {}, | ||
"Variables": { | ||
"SubscriptionId": "4004a9fd-d58e-48dc-aeb2-4a4aec58606f" | ||
} | ||
} |
75 changes: 75 additions & 0 deletions
75
.../Authorization.Tests.BasicTests/GetProviderOperationsMetadataListWithInvalidProvider.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,75 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "/providers/Microsoft.Authorization/providerOperations/InvalidProvider?api-version=2015-07-01&$expand=resourceTypes", | ||
"EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXV0aG9yaXphdGlvbi9wcm92aWRlck9wZXJhdGlvbnMvSW52YWxpZFByb3ZpZGVyP2FwaS12ZXJzaW9uPTIwMTUtMDctMDEmJGV4cGFuZD1yZXNvdXJjZVR5cGVz", | ||
"RequestMethod": "GET", | ||
"RequestBody": "", | ||
"RequestHeaders": { | ||
"x-ms-client-request-id": [ | ||
"4074ccf0-ec81-4824-b468-8f188d855775" | ||
], | ||
"accept-language": [ | ||
"en-US" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.25009.03", | ||
"Microsoft.Azure.Management.Authorization.AuthorizationManagementClient/2.5.0.0" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ProviderNotFound\",\r\n \"message\": \"Provider 'InvalidProvider' not found.\"\r\n }\r\n}", | ||
"ResponseHeaders": { | ||
"Content-Length": [ | ||
"87" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Expires": [ | ||
"-1" | ||
], | ||
"Cache-Control": [ | ||
"no-cache" | ||
], | ||
"Date": [ | ||
"Wed, 26 Jul 2017 07:22:10 GMT" | ||
], | ||
"Pragma": [ | ||
"no-cache" | ||
], | ||
"Server": [ | ||
"Microsoft-IIS/8.5" | ||
], | ||
"Set-Cookie": [ | ||
"x-ms-gateway-slice=productionb; path=/; secure; HttpOnly" | ||
], | ||
"x-ms-request-id": [ | ||
"1230792d-66c5-4c16-b777-833798722c4b" | ||
], | ||
"X-Content-Type-Options": [ | ||
"nosniff" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains" | ||
], | ||
"X-Powered-By": [ | ||
"ASP.NET" | ||
], | ||
"x-ms-ratelimit-remaining-tenant-reads": [ | ||
"14976" | ||
], | ||
"x-ms-correlation-request-id": [ | ||
"410ec018-d64f-4c28-9b1a-53b6c61864ce" | ||
], | ||
"x-ms-routing-request-id": [ | ||
"WESTUS:20170726T072211Z:410ec018-d64f-4c28-9b1a-53b6c61864ce" | ||
] | ||
}, | ||
"StatusCode": 404 | ||
} | ||
], | ||
"Names": {}, | ||
"Variables": { | ||
"SubscriptionId": "4004a9fd-d58e-48dc-aeb2-4a4aec58606f" | ||
} | ||
} |
148 changes: 148 additions & 0 deletions
148
...SessionRecords/Authorization.Tests.BasicTests/ProviderOperationsMetadataListGetTests.json
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 8 additions & 8 deletions
16
...ests/SessionRecords/Authorization.Tests.BasicTests/RoleAssignmentAtScopeAndAboveTest.json
Large diffs are not rendered by default.
Oops, something went wrong.
96 changes: 48 additions & 48 deletions
96
...rization.Tests/SessionRecords/Authorization.Tests.BasicTests/RoleAssignmentByIdTests.json
Large diffs are not rendered by default.
Oops, something went wrong.
258 changes: 129 additions & 129 deletions
258
...n.Tests/SessionRecords/Authorization.Tests.BasicTests/RoleAssignmentListByFilterTest.json
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 8 additions & 8 deletions
16
...n.Tests/SessionRecords/Authorization.Tests.BasicTests/RoleAssignmentListForScopeTest.json
Large diffs are not rendered by default.
Oops, something went wrong.
76 changes: 38 additions & 38 deletions
76
...Tests/SessionRecords/Authorization.Tests.BasicTests/RoleAssignmentsCreateDeleteTests.json
Large diffs are not rendered by default.
Oops, something went wrong.
110 changes: 55 additions & 55 deletions
110
...tion.Tests/SessionRecords/Authorization.Tests.BasicTests/RoleAssignmentsListGetTests.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.