Skip to content

Commit a098b25

Browse files
Henry DaiCopilot
andcommitted
Fix VCR cassette host: replace eastus2euap with management.azure.com
Test recordings were captured against eastus2euap.management.azure.com (canary) but CI runs against management.azure.com (prod). VCR host matcher fails. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3862794 commit a098b25

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/azure-changesafety/azext_changesafety/tests/latest/recordings/test_changesafety_full_scenario.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interactions:
2020
User-Agent:
2121
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
2222
method: PUT
23-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001?api-version=2026-01-01-preview
23+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001?api-version=2026-01-01-preview
2424
response:
2525
body:
2626
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001","name":"stgmap000001","type":"microsoft.changesafety/stagemaps","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:32.5030518Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:32.5030518Z"},"properties":{"parameters":null,"stages":[{"name":"Canary","sequence":1,"stageVariables":null,"nestedStageMap":null},{"name":"Production","sequence":2,"stageVariables":null,"nestedStageMap":null}],"provisioningState":"Succeeded"}}'
@@ -85,7 +85,7 @@ interactions:
8585
User-Agent:
8686
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
8787
method: GET
88-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001?api-version=2026-01-01-preview
88+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001?api-version=2026-01-01-preview
8989
response:
9090
body:
9191
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001","name":"stgmap000001","type":"microsoft.changesafety/stagemaps","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:32.5030518Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:32.5030518Z"},"properties":{"parameters":null,"stages":[{"name":"Canary","sequence":1,"stageVariables":null,"nestedStageMap":null},{"name":"Production","sequence":2,"stageVariables":null,"nestedStageMap":null}],"provisioningState":"Succeeded"}}'
@@ -145,7 +145,7 @@ interactions:
145145
User-Agent:
146146
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
147147
method: PUT
148-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002?api-version=2026-01-01-preview
148+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002?api-version=2026-01-01-preview
149149
response:
150150
body:
151151
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002","name":"cr000002","type":"microsoft.changesafety/changerecords","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:35.9326328Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:35.9326328Z"},"properties":{"changeType":"AppDeployment","rolloutType":"Normal","description":null,"stageMap":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001","parameters":null},"parameters":null,"comments":null,"changeDefinition":{"name":"cr000002","kind":"Targets","details":{"targets":[{"subscriptionId":"$(az
@@ -211,7 +211,7 @@ interactions:
211211
User-Agent:
212212
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
213213
method: GET
214-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002?api-version=2026-01-01-preview
214+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002?api-version=2026-01-01-preview
215215
response:
216216
body:
217217
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002","name":"cr000002","type":"microsoft.changesafety/changerecords","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:35.9326328Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:35.9326328Z"},"properties":{"changeType":"AppDeployment","rolloutType":"Normal","description":null,"stageMap":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001","parameters":null},"parameters":null,"comments":null,"changeDefinition":{"name":"cr000002","kind":"Targets","details":{"targets":[{"subscriptionId":"$(az
@@ -264,7 +264,7 @@ interactions:
264264
User-Agent:
265265
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
266266
method: GET
267-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002?api-version=2026-01-01-preview
267+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002?api-version=2026-01-01-preview
268268
response:
269269
body:
270270
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002","name":"cr000002","type":"microsoft.changesafety/changerecords","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:35.9326328Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:35.9326328Z"},"properties":{"changeType":"AppDeployment","rolloutType":"Normal","description":null,"stageMap":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001","parameters":null},"parameters":null,"comments":null,"changeDefinition":{"name":"cr000002","kind":"Targets","details":{"targets":[{"subscriptionId":"$(az
@@ -325,7 +325,7 @@ interactions:
325325
User-Agent:
326326
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
327327
method: PUT
328-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002?api-version=2026-01-01-preview
328+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002?api-version=2026-01-01-preview
329329
response:
330330
body:
331331
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002","name":"cr000002","type":"microsoft.changesafety/changerecords","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:35.9326328Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:40.1874774Z"},"properties":{"changeType":"AppDeployment","rolloutType":"Emergency","description":null,"stageMap":{"resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001","parameters":null},"parameters":null,"comments":"Escalated","changeDefinition":{"name":"cr000002","kind":"Targets","details":{"targets":[{"subscriptionId":"$(az
@@ -395,7 +395,7 @@ interactions:
395395
User-Agent:
396396
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
397397
method: PUT
398-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
398+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
399399
response:
400400
body:
401401
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003","name":"prog000003","type":"microsoft.changesafety/changerecords/stageprogressions","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:42.0055167Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:42.0055167Z"},"properties":{"stageReference":"Canary","sequence":1,"status":"InProgress","comments":null,"stageVariables":{},"links":null,"additionalData":null,"parameters":null,"provisioningState":"Succeeded"}}'
@@ -460,7 +460,7 @@ interactions:
460460
User-Agent:
461461
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
462462
method: GET
463-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
463+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
464464
response:
465465
body:
466466
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003","name":"prog000003","type":"microsoft.changesafety/changerecords/stageprogressions","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:42.0055167Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:42.0055167Z"},"properties":{"stageReference":"Canary","sequence":1,"status":"InProgress","comments":null,"stageVariables":{},"links":null,"additionalData":null,"parameters":null,"provisioningState":"Succeeded"}}'
@@ -512,7 +512,7 @@ interactions:
512512
User-Agent:
513513
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
514514
method: GET
515-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
515+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
516516
response:
517517
body:
518518
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003","name":"prog000003","type":"microsoft.changesafety/changerecords/stageprogressions","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:42.0055167Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:42.0055167Z"},"properties":{"stageReference":"Canary","sequence":1,"status":"InProgress","comments":null,"stageVariables":{},"links":null,"additionalData":null,"parameters":null,"provisioningState":"Succeeded"}}'
@@ -569,7 +569,7 @@ interactions:
569569
User-Agent:
570570
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
571571
method: PUT
572-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
572+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
573573
response:
574574
body:
575575
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003","name":"prog000003","type":"microsoft.changesafety/changerecords/stageprogressions","systemData":{"createdBy":"johndoe@example.com","createdByType":"User","createdAt":"2026-03-26T14:19:42.0055167Z","lastModifiedBy":"johndoe@example.com","lastModifiedByType":"User","lastModifiedAt":"2026-03-26T14:19:50.6715652Z"},"properties":{"stageReference":"Canary","sequence":1,"status":"Completed","comments":"Canary
@@ -637,7 +637,7 @@ interactions:
637637
User-Agent:
638638
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
639639
method: DELETE
640-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
640+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/changeRecords/cr000002/stageProgressions/prog000003?api-version=2026-01-01-preview
641641
response:
642642
body:
643643
string: ''
@@ -698,7 +698,7 @@ interactions:
698698
User-Agent:
699699
- AZURECLI/2.82.0 azsdk-python-core/1.37.0 Python/3.11.9 (Windows-10-10.0.26200-SP0)
700700
method: DELETE
701-
uri: https://eastus2euap.management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001?api-version=2026-01-01-preview
701+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ChangeSafety/stageMaps/stgmap000001?api-version=2026-01-01-preview
702702
response:
703703
body:
704704
string: ''

0 commit comments

Comments
 (0)