Skip to content

Commit 0c1a648

Browse files
author
Jingnan Xu
committed
adjust test
1 parent 8e41b9c commit 0c1a648

23 files changed

+636
-577
lines changed

src/FrontDoor/FrontDoor.Autorest/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,3 @@
2424
[assembly: System.Reflection.AssemblyVersionAttribute("1.13.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27-
28-

src/FrontDoor/FrontDoor.Autorest/docs/Az.FrontDoor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.FrontDoor
3-
Module Guid: cb2bcf1e-c71e-46a2-a176-6cbf613eed22
3+
Module Guid: 018547c3-e57b-41b4-9c6a-3b90d42ffbc6
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.frontdoor
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "a4bafc59-e86f-4d43-b13c-9d19f8a09ece"
2+
"generate_Id": "29afd54b-d755-4c72-8b5d-b60eb006a04e"
33
}

src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoor.Recording.json

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

src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorFrontendEndpoint.Recording.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/frontendEndpoints?api-version=2021-06-01+1": {
2+
"Get-AzFrontDoorFrontendEndpoint+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/frontendEndpoints?api-version=2021-06-01+1": {
33
"Request": {
44
"Method": "GET",
5-
"RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/frontDoors/testps-fd-xawq/frontendEndpoints?api-version=2021-06-01",
5+
"RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/frontDoors/testps-fd-zycv/frontendEndpoints?api-version=2021-06-01",
66
"Content": null,
77
"isContentBase64": false,
88
"Headers": {
99
"x-ms-unique-id": [ "13" ],
10-
"x-ms-client-request-id": [ "fe00241d-5aa0-402c-aed3-4d0b4daa0493" ],
10+
"x-ms-client-request-id": [ "cf2c63e8-ea66-4908-841e-08d09b008898" ],
1111
"CommandName": [ "Get-AzFrontDoorFrontendEndpoint" ],
1212
"FullCommandName": [ "Get-AzFrontDoorFrontendEndpoint_List" ],
1313
"ParameterSetName": [ "__AllParameterSets" ],
14-
"User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ],
14+
"User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ],
1515
"Authorization": [ "[Filtered]" ]
1616
},
1717
"ContentHeaders": {
@@ -23,24 +23,24 @@
2323
"Cache-Control": [ "no-cache" ],
2424
"Pragma": [ "no-cache" ],
2525
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
26-
"x-ms-request-id": [ "48a59bed-14f3-487a-b151-c6caf174d73c" ],
27-
"x-ms-client-request-id": [ "fe00241d-5aa0-402c-aed3-4d0b4daa0493" ],
28-
"x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/a1ea8778-5ca1-43f4-bf19-2c2b05d0b43c" ],
26+
"x-ms-request-id": [ "ea8286b2-a349-4bf8-8138-de4b93026200" ],
27+
"x-ms-client-request-id": [ "cf2c63e8-ea66-4908-841e-08d09b008898" ],
28+
"x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/77801922-4f08-4d30-bd28-d574b358fa03" ],
2929
"x-ms-ratelimit-remaining-subscription-reads": [ "1099" ],
3030
"x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ],
31-
"x-ms-correlation-request-id": [ "c48a1a6e-b356-4309-bfb4-54c106692c09" ],
32-
"x-ms-routing-request-id": [ "WESTUS:20251014T090729Z:c48a1a6e-b356-4309-bfb4-54c106692c09" ],
31+
"x-ms-correlation-request-id": [ "08192854-25c2-43bf-a130-5b72d7545828" ],
32+
"x-ms-routing-request-id": [ "WESTUS:20251016T025543Z:08192854-25c2-43bf-a130-5b72d7545828" ],
3333
"X-Content-Type-Options": [ "nosniff" ],
3434
"X-Cache": [ "CONFIG_NOCACHE" ],
35-
"X-MSEdge-Ref": [ "Ref A: 6F8F3B78294B4375BD6251880E0EBE1B Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:28Z" ],
36-
"Date": [ "Tue, 14 Oct 2025 09:07:29 GMT" ]
35+
"X-MSEdge-Ref": [ "Ref A: D977608724C1440E8A26E326019FBF55 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:42Z" ],
36+
"Date": [ "Thu, 16 Oct 2025 02:55:42 GMT" ]
3737
},
3838
"ContentHeaders": {
3939
"Content-Length": [ "581" ],
4040
"Content-Type": [ "application/json; charset=utf-8" ],
4141
"Expires": [ "-1" ]
4242
},
43-
"Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoors/testps-fd-xawq/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-xawq.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}",
43+
"Content": "{\"value\":[{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoors/testps-fd-zycv/frontendendpoints/frontendendpoint1\",\"type\":\"Microsoft.Network/frontdoors/frontendendpoints\",\"name\":\"frontendendpoint1\",\"properties\":{\"resourceState\":\"Enabled\",\"hostName\":\"testps-fd-zycv.azurefd.net\",\"sessionAffinityEnabledState\":\"Enabled\",\"sessionAffinityTtlSeconds\":0,\"webApplicationFirewallPolicyLink\":null,\"customHttpsProvisioningState\":\"Disabled\",\"customHttpsProvisioningSubstate\":\"None\",\"customHttpsConfiguration\":null}}]}",
4444
"isContentBase64": false
4545
}
4646
}

src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafManagedRuleSetDefinition.Recording.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"isContentBase64": false,
88
"Headers": {
99
"x-ms-unique-id": [ "14" ],
10-
"x-ms-client-request-id": [ "4ea0d9dc-3d4d-48e1-afd1-5e4a671a2c9f" ],
10+
"x-ms-client-request-id": [ "b783472b-758b-4890-be89-47b8d0de4220" ],
1111
"CommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition" ],
1212
"FullCommandName": [ "Get-AzFrontDoorWafManagedRuleSetDefinition_List" ],
1313
"ParameterSetName": [ "__AllParameterSets" ],
14-
"User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ],
14+
"User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ],
1515
"Authorization": [ "[Filtered]" ]
1616
},
1717
"ContentHeaders": {
@@ -23,17 +23,17 @@
2323
"Cache-Control": [ "no-cache" ],
2424
"Pragma": [ "no-cache" ],
2525
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
26-
"x-ms-request-id": [ "1a1f738c-e5bf-4172-94f0-cc2385960ff3" ],
27-
"x-ms-client-request-id": [ "4ea0d9dc-3d4d-48e1-afd1-5e4a671a2c9f" ],
28-
"x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/cee9e9f1-d3ea-4afe-a8c1-20ebc3739029" ],
26+
"x-ms-request-id": [ "e66b1141-cf72-42d2-b5cb-cb52b3d14ead" ],
27+
"x-ms-client-request-id": [ "b783472b-758b-4890-be89-47b8d0de4220" ],
28+
"x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=2e396a67-4dc1-43ae-afcc-c6747d291866/westus/599f3173-46ba-4e7e-bb34-e46e68bf86ea" ],
2929
"x-ms-ratelimit-remaining-subscription-reads": [ "1099" ],
3030
"x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ],
31-
"x-ms-correlation-request-id": [ "95648f7b-e4f4-48b6-9aac-eaea583d5009" ],
32-
"x-ms-routing-request-id": [ "WESTUS:20251014T090731Z:95648f7b-e4f4-48b6-9aac-eaea583d5009" ],
31+
"x-ms-correlation-request-id": [ "a72d2a54-650b-4162-806f-e288ae98fbcf" ],
32+
"x-ms-routing-request-id": [ "WESTUS:20251016T025545Z:a72d2a54-650b-4162-806f-e288ae98fbcf" ],
3333
"X-Content-Type-Options": [ "nosniff" ],
3434
"X-Cache": [ "CONFIG_NOCACHE" ],
35-
"X-MSEdge-Ref": [ "Ref A: 96A07EA43E8646FAA73C75D782A82FDF Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:30Z" ],
36-
"Date": [ "Tue, 14 Oct 2025 09:07:31 GMT" ]
35+
"X-MSEdge-Ref": [ "Ref A: C330B9EAA86444FB8B490DAAEC877EE9 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:44Z" ],
36+
"Date": [ "Thu, 16 Oct 2025 02:55:44 GMT" ]
3737
},
3838
"ContentHeaders": {
3939
"Content-Length": [ "162977" ],

src/FrontDoor/FrontDoor.Autorest/test/Get-AzFrontDoorWafPolicy.Recording.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01+1": {
2+
"Get-AzFrontDoorWafPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01+1": {
33
"Request": {
44
"Method": "GET",
5-
"RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-3fhp/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafve35?api-version=2024-02-01",
5+
"RequestUri": "https://management.azure.com/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourceGroups/testps-rg-woz4/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/testpsWafq3p2?api-version=2024-02-01",
66
"Content": null,
77
"isContentBase64": false,
88
"Headers": {
99
"x-ms-unique-id": [ "15" ],
10-
"x-ms-client-request-id": [ "c179c599-cb28-4dd7-82a5-b84a13813c9a" ],
10+
"x-ms-client-request-id": [ "c2287543-b12b-4ce8-9842-3cd978314d01" ],
1111
"CommandName": [ "Get-AzFrontDoorWafPolicy" ],
1212
"FullCommandName": [ "Get-AzFrontDoorWafPolicy_Get" ],
1313
"ParameterSetName": [ "__AllParameterSets" ],
14-
"User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/1.13.0" ],
14+
"User-Agent": [ "AzurePowershell/v13.2.0", "PSVersion/v7.5.3", "Az.FrontDoor/0.1.0" ],
1515
"Authorization": [ "[Filtered]" ]
1616
},
1717
"ContentHeaders": {
@@ -23,23 +23,23 @@
2323
"Cache-Control": [ "no-cache" ],
2424
"Pragma": [ "no-cache" ],
2525
"Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ],
26-
"x-ms-request-id": [ "7175a89f-f3d1-47c4-9c3b-fdacfc841e43" ],
27-
"x-ms-client-request-id": [ "c179c599-cb28-4dd7-82a5-b84a13813c9a" ],
26+
"x-ms-request-id": [ "fd0781c9-738b-4c57-8f9a-eb89f116d5fc" ],
27+
"x-ms-client-request-id": [ "c2287543-b12b-4ce8-9842-3cd978314d01" ],
2828
"x-ms-ratelimit-remaining-subscription-reads": [ "1099" ],
2929
"x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ],
30-
"x-ms-correlation-request-id": [ "518fc22f-09d4-473b-9d3d-42ebdf98a94a" ],
31-
"x-ms-routing-request-id": [ "AUSTRALIAEAST:20251014T090733Z:518fc22f-09d4-473b-9d3d-42ebdf98a94a" ],
30+
"x-ms-correlation-request-id": [ "65fff7b6-6e37-4daf-b209-3f783fee0a90" ],
31+
"x-ms-routing-request-id": [ "AUSTRALIAEAST:20251016T025547Z:65fff7b6-6e37-4daf-b209-3f783fee0a90" ],
3232
"X-Content-Type-Options": [ "nosniff" ],
3333
"X-Cache": [ "CONFIG_NOCACHE" ],
34-
"X-MSEdge-Ref": [ "Ref A: 4B114541A29D429CB42F07DE48A304A6 Ref B: SYD03EDGE2021 Ref C: 2025-10-14T09:07:31Z" ],
35-
"Date": [ "Tue, 14 Oct 2025 09:07:33 GMT" ]
34+
"X-MSEdge-Ref": [ "Ref A: AAFE5EA192B64E29B7588A819F5EEA99 Ref B: SYD03EDGE1713 Ref C: 2025-10-16T02:55:46Z" ],
35+
"Date": [ "Thu, 16 Oct 2025 02:55:46 GMT" ]
3636
},
3737
"ContentHeaders": {
3838
"Content-Length": [ "1912" ],
3939
"Content-Type": [ "application/json; charset=utf-8" ],
4040
"Expires": [ "-1" ]
4141
},
42-
"Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-3fhp/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafve35\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafve35\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}",
42+
"Content": "{\"id\":\"/subscriptions/27cafca8-b9a4-4264-b399-45d0c9cca1ab/resourcegroups/testps-rg-woz4/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/testpsWafq3p2\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"name\":\"testpsWafq3p2\",\"location\":\"Global\",\"tags\":{},\"sku\":{\"name\":\"Premium_AzureFrontDoor\"},\"properties\":{\"policySettings\":{\"enabledState\":\"Enabled\",\"mode\":\"Prevention\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null,\"requestBodyCheck\":\"Disabled\",\"javascriptChallengeExpirationInMinutes\":30,\"logScrubbing\":{\"state\":\"Enabled\",\"scrubbingRules\":[{\"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"EqualsAny\",\"selector\":null,\"state\":\"Enabled\"}]}},\"customRules\":{\"rules\":[{\"name\":\"Rule1\",\"enabledState\":\"Enabled\",\"priority\":2,\"ruleType\":\"MatchRule\",\"rateLimitDurationInMinutes\":1,\"rateLimitThreshold\":null,\"matchConditions\":[{\"matchVariable\":\"RequestHeader\",\"selector\":\"UserAgent\",\"operator\":\"Contains\",\"negateCondition\":false,\"matchValue\":[\"WINDOWS\"],\"transforms\":[\"Uppercase\"]}],\"action\":\"Block\",\"groupBy\":[]}]},\"managedRules\":{\"managedRuleSets\":[{\"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[{\"ruleGroupName\":\"SQLI\",\"rules\":[{\"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Log\",\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInRule\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInGroup\"}]}],\"exclusions\":[{\"matchVariable\":\"QueryStringArgNames\",\"selectorMatchOperator\":\"Equals\",\"selector\":\"ExcludeInSet\"}]},{\"ruleSetType\":\"BotProtection\",\"ruleSetVersion\":\"preview-0.1\",\"ruleSetAction\":null,\"ruleGroupOverrides\":[],\"exclusions\":[]}]},\"frontendEndpointLinks\":[],\"securityPolicyLinks\":[],\"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\"}}",
4343
"isContentBase64": false
4444
}
4545
}

0 commit comments

Comments
 (0)