Skip to content

Commit 5363e1e

Browse files
authored
Rerecord tests using GA version (#14)
* add tests for file size (will add recordings once Ga swagger available) * Regenerate powershell module with GA swagger * Rerecord tests with GA version
1 parent 6f2684b commit 5363e1e

30 files changed

+816
-520
lines changed

src/Support/Support.Autorest/test/Get-AzSupportCommunication.Recording.json

Lines changed: 23 additions & 21 deletions
Large diffs are not rendered by default.

src/Support/Support.Autorest/test/Get-AzSupportCommunicationsNoSubscription.Recording.json

Lines changed: 22 additions & 20 deletions
Large diffs are not rendered by default.

src/Support/Support.Autorest/test/Get-AzSupportFile.Recording.json

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"Get-AzSupportFile+[NoContext]+List+$GET+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1/files?api-version=2022-09-01-preview+1": {
2+
"Get-AzSupportFile+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cca0326c-4c31-46d8-8fcb-c67023a46f4b/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6/files?api-version=2024-04-01+1": {
33
"Request": {
44
"Method": "GET",
5-
"RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1/files?api-version=2022-09-01-preview",
5+
"RequestUri": "https://management.azure.com/subscriptions/cca0326c-4c31-46d8-8fcb-c67023a46f4b/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6/files?api-version=2024-04-01",
66
"Content": null,
77
"isContentBase64": false,
88
"Headers": {
99
"x-ms-unique-id": [ "12" ],
10-
"x-ms-client-request-id": [ "eae4c1b5-f189-4d08-ab45-3d0486d8b3d7" ],
10+
"x-ms-client-request-id": [ "21dc0858-30a7-4c51-a9a4-66a562dd3454" ],
1111
"CommandName": [ "Get-AzSupportFile" ],
1212
"FullCommandName": [ "Get-AzSupportFile_List" ],
1313
"ParameterSetName": [ "__AllParameterSets" ],
14-
"User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.1", "Az.Support/0.1.0" ],
14+
"User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.Support/0.1.0" ],
1515
"Authorization": [ "[Filtered]" ]
1616
},
1717
"ContentHeaders": {
@@ -24,36 +24,37 @@
2424
"Pragma": [ "no-cache" ],
2525
"X-Content-Type-Options": [ "nosniff" ],
2626
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
27+
"x-ms-throttling-version": [ "v1" ],
2728
"x-ms-ratelimit-remaining-subscription-reads": [ "11999" ],
28-
"x-ms-request-id": [ "c2d3ba3c-68ec-4ca5-a78c-2cf30a697258" ],
29-
"x-ms-correlation-request-id": [ "c2d3ba3c-68ec-4ca5-a78c-2cf30a697258" ],
30-
"x-ms-routing-request-id": [ "EASTUS:20240308T171730Z:c2d3ba3c-68ec-4ca5-a78c-2cf30a697258" ],
29+
"x-ms-request-id": [ "1228c1ce-730d-4693-a5df-aae3b0c4b3ce" ],
30+
"x-ms-correlation-request-id": [ "1228c1ce-730d-4693-a5df-aae3b0c4b3ce" ],
31+
"x-ms-routing-request-id": [ "EASTUS:20240423T180524Z:1228c1ce-730d-4693-a5df-aae3b0c4b3ce" ],
3132
"X-Cache": [ "CONFIG_NOCACHE" ],
32-
"X-MSEdge-Ref": [ "Ref A: 32B33BA9D81C4E9390865575D6FA8471 Ref B: BL2AA2030101017 Ref C: 2024-03-08T17:17:25Z" ],
33-
"Date": [ "Fri, 08 Mar 2024 17:17:30 GMT" ]
33+
"X-MSEdge-Ref": [ "Ref A: 8090C83811D44811A262AA1E18C544AE Ref B: MNZ221060619009 Ref C: 2024-04-23T18:05:19Z" ],
34+
"Date": [ "Tue, 23 Apr 2024 18:05:24 GMT" ]
3435
},
3536
"ContentHeaders": {
3637
"Content-Length": [ "324" ],
3738
"Content-Type": [ "application/json; charset=utf-8" ],
3839
"Expires": [ "-1" ]
3940
},
40-
"Content": "{\"value\":[{\"id\":\"/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1/files/test2.txt\",\"name\":\"test2.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-03-08T17:16:01Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}]}",
41+
"Content": "{\"value\":[{\"id\":\"/subscriptions/cca0326c-4c31-46d8-8fcb-c67023a46f4b/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6/files/test2.txt\",\"name\":\"test2.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-04-23T18:03:10Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}]}",
4142
"isContentBase64": false
4243
}
4344
},
44-
"Get-AzSupportFile+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1/files/test2.txt?api-version=2022-09-01-preview+1": {
45+
"Get-AzSupportFile+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cca0326c-4c31-46d8-8fcb-c67023a46f4b/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6/files/test2.txt?api-version=2024-04-01+1": {
4546
"Request": {
4647
"Method": "GET",
47-
"RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1/files/test2.txt?api-version=2022-09-01-preview",
48+
"RequestUri": "https://management.azure.com/subscriptions/cca0326c-4c31-46d8-8fcb-c67023a46f4b/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6/files/test2.txt?api-version=2024-04-01",
4849
"Content": null,
4950
"isContentBase64": false,
5051
"Headers": {
5152
"x-ms-unique-id": [ "13" ],
52-
"x-ms-client-request-id": [ "d99c38dd-4b0b-4c1a-829c-3d302f57ef0e" ],
53+
"x-ms-client-request-id": [ "28d872ca-e959-450c-aba2-7251b6efae80" ],
5354
"CommandName": [ "Get-AzSupportFile" ],
5455
"FullCommandName": [ "Get-AzSupportFile_Get" ],
5556
"ParameterSetName": [ "__AllParameterSets" ],
56-
"User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.1", "Az.Support/0.1.0" ],
57+
"User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.Support/0.1.0" ],
5758
"Authorization": [ "[Filtered]" ]
5859
},
5960
"ContentHeaders": {
@@ -66,20 +67,21 @@
6667
"Pragma": [ "no-cache" ],
6768
"X-Content-Type-Options": [ "nosniff" ],
6869
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
69-
"x-ms-ratelimit-remaining-subscription-reads": [ "11998" ],
70-
"x-ms-request-id": [ "2651fb66-d6a8-414e-8109-9c0fffbcf8b0" ],
71-
"x-ms-correlation-request-id": [ "2651fb66-d6a8-414e-8109-9c0fffbcf8b0" ],
72-
"x-ms-routing-request-id": [ "EASTUS:20240308T171734Z:2651fb66-d6a8-414e-8109-9c0fffbcf8b0" ],
70+
"x-ms-throttling-version": [ "v1" ],
71+
"x-ms-ratelimit-remaining-subscription-reads": [ "11999" ],
72+
"x-ms-request-id": [ "8f7ab658-f6cb-40fe-afb4-26652f6438c1" ],
73+
"x-ms-correlation-request-id": [ "8f7ab658-f6cb-40fe-afb4-26652f6438c1" ],
74+
"x-ms-routing-request-id": [ "EASTUS2:20240423T180529Z:8f7ab658-f6cb-40fe-afb4-26652f6438c1" ],
7375
"X-Cache": [ "CONFIG_NOCACHE" ],
74-
"X-MSEdge-Ref": [ "Ref A: 428134FF91D94420A288886D54C2AC48 Ref B: BL2AA2030101017 Ref C: 2024-03-08T17:17:30Z" ],
75-
"Date": [ "Fri, 08 Mar 2024 17:17:34 GMT" ]
76+
"X-MSEdge-Ref": [ "Ref A: 494CD93EF42C412E87386E83D8121374 Ref B: MNZ221060619009 Ref C: 2024-04-23T18:05:24Z" ],
77+
"Date": [ "Tue, 23 Apr 2024 18:05:29 GMT" ]
7678
},
7779
"ContentHeaders": {
7880
"Content-Length": [ "312" ],
7981
"Content-Type": [ "application/json; charset=utf-8" ],
8082
"Expires": [ "-1" ]
8183
},
82-
"Content": "{\"id\":\"/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1/files/test2.txt\",\"name\":\"test2.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-03-08T17:16:01Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}",
84+
"Content": "{\"id\":\"/subscriptions/cca0326c-4c31-46d8-8fcb-c67023a46f4b/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6/files/test2.txt\",\"name\":\"test2.txt\",\"type\":\"Microsoft.Support/files\",\"properties\":{\"createdOn\":\"2024-04-23T18:03:10Z\",\"fileSize\":4,\"chunkSize\":4,\"numberOfChunks\":1}}",
8385
"isContentBase64": false
8486
}
8587
}

src/Support/Support.Autorest/test/Get-AzSupportFileWorkspace.Recording.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"Get-AzSupportFileWorkspace+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1?api-version=2022-09-01-preview+1": {
2+
"Get-AzSupportFileWorkspace+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cca0326c-4c31-46d8-8fcb-c67023a46f4b/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6?api-version=2024-04-01+1": {
33
"Request": {
44
"Method": "GET",
5-
"RequestUri": "https://management.azure.com/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1?api-version=2022-09-01-preview",
5+
"RequestUri": "https://management.azure.com/subscriptions/cca0326c-4c31-46d8-8fcb-c67023a46f4b/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6?api-version=2024-04-01",
66
"Content": null,
77
"isContentBase64": false,
88
"Headers": {
99
"x-ms-unique-id": [ "14" ],
10-
"x-ms-client-request-id": [ "cdd0db0e-dd3d-468a-acba-df2b94e5c215" ],
10+
"x-ms-client-request-id": [ "357e7917-d6e0-4b5a-b22f-bdfe54b751fa" ],
1111
"CommandName": [ "Get-AzSupportFileWorkspace" ],
1212
"FullCommandName": [ "Get-AzSupportFileWorkspace_Get" ],
1313
"ParameterSetName": [ "__AllParameterSets" ],
14-
"User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.1", "Az.Support/0.1.0" ],
14+
"User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.Support/0.1.0" ],
1515
"Authorization": [ "[Filtered]" ]
1616
},
1717
"ContentHeaders": {
@@ -24,20 +24,21 @@
2424
"Pragma": [ "no-cache" ],
2525
"X-Content-Type-Options": [ "nosniff" ],
2626
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
27-
"x-ms-ratelimit-remaining-subscription-reads": [ "11998" ],
28-
"x-ms-request-id": [ "618e133f-7752-4fc6-9808-03e76ed1fe7d" ],
29-
"x-ms-correlation-request-id": [ "618e133f-7752-4fc6-9808-03e76ed1fe7d" ],
30-
"x-ms-routing-request-id": [ "EASTUS:20240308T171736Z:618e133f-7752-4fc6-9808-03e76ed1fe7d" ],
27+
"x-ms-throttling-version": [ "v1" ],
28+
"x-ms-ratelimit-remaining-subscription-reads": [ "11999" ],
29+
"x-ms-request-id": [ "de040d74-2cbe-43e4-a1d7-eb59e66af5f6" ],
30+
"x-ms-correlation-request-id": [ "de040d74-2cbe-43e4-a1d7-eb59e66af5f6" ],
31+
"x-ms-routing-request-id": [ "EASTUS2:20240423T180532Z:de040d74-2cbe-43e4-a1d7-eb59e66af5f6" ],
3132
"X-Cache": [ "CONFIG_NOCACHE" ],
32-
"X-MSEdge-Ref": [ "Ref A: 5422A97ED023403CB67D0E2C5CE415C2 Ref B: BL2AA2030101017 Ref C: 2024-03-08T17:17:34Z" ],
33-
"Date": [ "Fri, 08 Mar 2024 17:17:35 GMT" ]
33+
"X-MSEdge-Ref": [ "Ref A: B3701C3A4A854DF2A85CA69386CFDEEA Ref B: MNZ221060619009 Ref C: 2024-04-23T18:05:29Z" ],
34+
"Date": [ "Tue, 23 Apr 2024 18:05:31 GMT" ]
3435
},
3536
"ContentHeaders": {
3637
"Content-Length": [ "334" ],
3738
"Content-Type": [ "application/json; charset=utf-8" ],
3839
"Expires": [ "-1" ]
3940
},
40-
"Content": "{\"id\":\"/subscriptions/4df09db9-7a7e-450b-8f88-00fb97c277bd/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1\",\"name\":\"test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1\",\"type\":\"Microsoft.Support/fileWorkspaces\",\"properties\":{\"expirationTime\":\"2024-03-09T17:15:51Z\",\"createdOn\":\"2024-03-08T17:15:51Z\"}}",
41+
"Content": "{\"id\":\"/subscriptions/cca0326c-4c31-46d8-8fcb-c67023a46f4b/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6\",\"name\":\"test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6\",\"type\":\"Microsoft.Support/fileWorkspaces\",\"properties\":{\"expirationTime\":\"2024-04-24T18:03:03Z\",\"createdOn\":\"2024-04-23T18:03:03Z\"}}",
4142
"isContentBase64": false
4243
}
4344
}

src/Support/Support.Autorest/test/Get-AzSupportFileWorkspacesNoSubscription.Recording.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"Get-AzSupportFileWorkspacesNoSubscription+[NoContext]+Get+$GET+https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1?api-version=2022-09-01-preview+1": {
2+
"Get-AzSupportFileWorkspacesNoSubscription+[NoContext]+Get+$GET+https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6?api-version=2024-04-01+1": {
33
"Request": {
44
"Method": "GET",
5-
"RequestUri": "https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1?api-version=2022-09-01-preview",
5+
"RequestUri": "https://management.azure.com/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6?api-version=2024-04-01",
66
"Content": null,
77
"isContentBase64": false,
88
"Headers": {
99
"x-ms-unique-id": [ "14" ],
10-
"x-ms-client-request-id": [ "e6464599-7682-4fa8-a689-8440ceacd5bc" ],
10+
"x-ms-client-request-id": [ "35b8981b-35b5-472a-b705-63e92d0a0c08" ],
1111
"CommandName": [ "Get-AzSupportFileWorkspacesNoSubscription" ],
1212
"FullCommandName": [ "Get-AzSupportFileWorkspacesNoSubscription_Get" ],
1313
"ParameterSetName": [ "__AllParameterSets" ],
14-
"User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.1", "Az.Support/0.1.0" ],
14+
"User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.Support/0.1.0" ],
1515
"Authorization": [ "[Filtered]" ]
1616
},
1717
"ContentHeaders": {
@@ -24,20 +24,21 @@
2424
"Pragma": [ "no-cache" ],
2525
"X-Content-Type-Options": [ "nosniff" ],
2626
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
27+
"x-ms-throttling-version": [ "v1" ],
2728
"x-ms-ratelimit-remaining-tenant-reads": [ "11999" ],
28-
"x-ms-request-id": [ "8778aaf8-58a1-4ef4-aa3d-2a8458e24a9f" ],
29-
"x-ms-correlation-request-id": [ "8778aaf8-58a1-4ef4-aa3d-2a8458e24a9f" ],
30-
"x-ms-routing-request-id": [ "EASTUS:20240308T172251Z:8778aaf8-58a1-4ef4-aa3d-2a8458e24a9f" ],
29+
"x-ms-request-id": [ "1d17be02-59cb-4d03-8f16-c4d91bf95273" ],
30+
"x-ms-correlation-request-id": [ "1d17be02-59cb-4d03-8f16-c4d91bf95273" ],
31+
"x-ms-routing-request-id": [ "EASTUS2:20240423T181428Z:1d17be02-59cb-4d03-8f16-c4d91bf95273" ],
3132
"X-Cache": [ "CONFIG_NOCACHE" ],
32-
"X-MSEdge-Ref": [ "Ref A: 4DB49975E84B4EBCA0039C8AA1243147 Ref B: MNZ221060609009 Ref C: 2024-03-08T17:22:48Z" ],
33-
"Date": [ "Fri, 08 Mar 2024 17:22:50 GMT" ]
33+
"X-MSEdge-Ref": [ "Ref A: 2A3821FBA5A04968A72C33BEB556F98A Ref B: MNZ221060608031 Ref C: 2024-04-23T18:14:25Z" ],
34+
"Date": [ "Tue, 23 Apr 2024 18:14:27 GMT" ]
3435
},
3536
"ContentHeaders": {
3637
"Content-Length": [ "283" ],
3738
"Content-Type": [ "application/json; charset=utf-8" ],
3839
"Expires": [ "-1" ]
3940
},
40-
"Content": "{\"id\":\"/providers/Microsoft.Support/fileWorkspaces/test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1\",\"name\":\"test-ps-bc3ec8b6-a7c1-416f-9f2d-354c2a66d4b1\",\"type\":\"Microsoft.Support/fileWorkspaces\",\"properties\":{\"expirationTime\":\"2024-03-09T17:21:07Z\",\"createdOn\":\"2024-03-08T17:21:07Z\"}}",
41+
"Content": "{\"id\":\"/providers/Microsoft.Support/fileWorkspaces/test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6\",\"name\":\"test-ps-e4014af3-5709-42f6-b4a4-0678c08f02d6\",\"type\":\"Microsoft.Support/fileWorkspaces\",\"properties\":{\"expirationTime\":\"2024-04-24T18:12:17Z\",\"createdOn\":\"2024-04-23T18:12:17Z\"}}",
4142
"isContentBase64": false
4243
}
4344
}

0 commit comments

Comments
 (0)