From 0d1a1d6028a63db9c6c3dada4b39e9c6b5bab6a3 Mon Sep 17 00:00:00 2001 From: hongli750210 Date: Fri, 1 Nov 2024 16:04:30 +0800 Subject: [PATCH] Reopen Tests ARM, test case for ExtensionResource --- .../cadl-ranch-specs/cadl-ranch-summary.md | 58 +++++++++---------- .../resource-manager/resources/extension.tsp | 58 +++++++++---------- .../resource-manager/resources/mockapi.ts | 20 +++++-- 3 files changed, 72 insertions(+), 64 deletions(-) diff --git a/packages/cadl-ranch-specs/cadl-ranch-summary.md b/packages/cadl-ranch-specs/cadl-ranch-summary.md index 099ec14df..bde452662 100644 --- a/packages/cadl-ranch-specs/cadl-ranch-summary.md +++ b/packages/cadl-ranch-specs/cadl-ranch-summary.md @@ -911,7 +911,7 @@ Expected response body: - Endpoint: `put https://management.azure.com` - Resource PUT operation. + Resource PUT operation for tenant level extension resource. Expected path: /providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -946,7 +946,7 @@ Expected response body: } ``` - Resource PUT operation. + Resource PUT operation for subscription level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -981,7 +981,7 @@ Expected response body: } ``` - Resource PUT operation. + Resource PUT operation for resource group level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -1016,8 +1016,8 @@ Expected response body: } ``` - Resource PUT operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension + Resource PUT operation for resource level extension resource. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected request body: @@ -1033,7 +1033,7 @@ Expected response body: ```json { - "id": "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", "name": "extension", "type": "Azure.ResourceManager.Resources/extensionsResources", "properties":{ @@ -1055,23 +1055,23 @@ Expected response body: - Endpoint: `delete https://management.azure.com` - Resource DELETE operation. + Resource DELETE operation for tenant level extension resource. Expected path: /providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response status code: 204 - Resource DELETE operation. + Resource DELETE operation for subscription level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response status code: 204 - Resource DELETE operation. + Resource DELETE operation for resource get level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response status code: 204 - Resource DELETE operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension + Resource DELETE operation for resource level extension resource. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response status code: 204 @@ -1079,7 +1079,7 @@ Expected response body: - Endpoint: `get https://management.azure.com` - Resource GET operation. + Resource GET operation for tenant level extension resource. Expected path: /providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -1105,7 +1105,7 @@ Expected response body: } ``` - Resource GET operation. + Resource GET operation for subscription level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -1131,7 +1131,7 @@ Expected response body: } ``` - Resource GET operation. + Resource GET operation for resource group level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -1157,15 +1157,15 @@ Expected response body: } ``` - Resource GET operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension + Resource GET operation for resource level extension resource. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response body: ```json { - "id": "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", "name": "extension", "type": "Azure.ResourceManager.Resources/extensionsResources", "properties":{ @@ -1187,7 +1187,7 @@ Expected response body: - Endpoint: `get https://management.azure.com` - Resource LIST by parent url operation. + Resource LIST by tenant level url operation. Expected path: /providers/Azure.ResourceManager.Resources/extensionResources Expected query parameter: api-version=2023-12-01-preview @@ -1215,7 +1215,7 @@ Expected response body: } ``` - Resource LIST by parent url operation. + Resource LIST by subscription level url operation. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionResources Expected query parameter: api-version=2023-12-01-preview @@ -1243,7 +1243,7 @@ Expected response body: } ``` - Resource LIST by parent url operation. + Resource LIST by resource group level url operation. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionResources Expected query parameter: api-version=2023-12-01-preview @@ -1271,8 +1271,8 @@ Expected response body: } ``` - Resource LIST by parent url operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionResources + Resource LIST by resource level url operation. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionResources Expected query parameter: api-version=2023-12-01-preview Expected response body: @@ -1280,7 +1280,7 @@ Expected response body: ```json { "value": [{ - "id": "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", "name": "extension", "type": "Azure.ResourceManager.Resources/extensionsResources", "properties":{ @@ -1303,7 +1303,7 @@ Expected response body: - Endpoint: `patch https://management.azure.com` - Resource Patch operation. + Resource Patch operation for tenant level extension resource. Expected path: /providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -1338,7 +1338,7 @@ Expected response body: } ``` - Resource Patch operation. + Resource Patch operation for subscription level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -1373,7 +1373,7 @@ Expected response body: } ``` - Resource Patch operation. + Resource Patch operation for resource group level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -1408,8 +1408,8 @@ Expected response body: } ``` - Resource Patch operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension + Resource Patch operation for resource level extension resource. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected request body: @@ -1425,7 +1425,7 @@ Expected response body: ```json { - "id": "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", "name": "extension", "type": "Azure.ResourceManager.Resources/extensionsResources", "properties":{ diff --git a/packages/cadl-ranch-specs/http/azure/resource-manager/resources/extension.tsp b/packages/cadl-ranch-specs/http/azure/resource-manager/resources/extension.tsp index 31778f26f..9ad99d50c 100644 --- a/packages/cadl-ranch-specs/http/azure/resource-manager/resources/extension.tsp +++ b/packages/cadl-ranch-specs/http/azure/resource-manager/resources/extension.tsp @@ -32,7 +32,7 @@ model ExtensionsResourceProperties { interface ExtensionsResources { @scenario @scenarioDoc(""" - Resource GET operation. + Resource GET operation for tenant level extension resource. Expected path: /providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -57,7 +57,7 @@ interface ExtensionsResources { } ``` - Resource GET operation. + Resource GET operation for subscription level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -82,7 +82,7 @@ interface ExtensionsResources { } ``` - Resource GET operation. + Resource GET operation for resource group level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -107,14 +107,14 @@ interface ExtensionsResources { } ``` - Resource GET operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension + Resource GET operation for resource level extension resource. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response body: ```json { - "id": "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", "name": "extension", "type": "Azure.ResourceManager.Resources/extensionsResources", "properties":{ @@ -136,7 +136,7 @@ interface ExtensionsResources { @scenario @scenarioDoc(""" - Resource PUT operation. + Resource PUT operation for tenant level extension resource. Expected path: /providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -169,7 +169,7 @@ interface ExtensionsResources { } ``` - Resource PUT operation. + Resource PUT operation for subscription level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -202,7 +202,7 @@ interface ExtensionsResources { } ``` - Resource PUT operation. + Resource PUT operation for resource group level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -235,8 +235,8 @@ interface ExtensionsResources { } ``` - Resource PUT operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension + Resource PUT operation for resource level extension resource. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected request body: @@ -250,7 +250,7 @@ interface ExtensionsResources { Expected response body: ```json { - "id": "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", "name": "extension", "type": "Azure.ResourceManager.Resources/extensionsResources", "properties":{ @@ -272,7 +272,7 @@ interface ExtensionsResources { @scenario @scenarioDoc(""" - Resource Patch operation. + Resource Patch operation for tenant level extension resource. Expected path: /providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -305,7 +305,7 @@ interface ExtensionsResources { } ``` - Resource Patch operation. + Resource Patch operation for subscription level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -338,7 +338,7 @@ interface ExtensionsResources { } ``` - Resource Patch operation. + Resource Patch operation for resource group level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview @@ -371,8 +371,8 @@ interface ExtensionsResources { } ``` - Resource Patch operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension + Resource Patch operation for resource level extension resource. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected request body: @@ -386,7 +386,7 @@ interface ExtensionsResources { Expected response body: ```json { - "id": "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", "name": "extension", "type": "Azure.ResourceManager.Resources/extensionsResources", "properties":{ @@ -408,23 +408,23 @@ interface ExtensionsResources { @scenario @scenarioDoc(""" - Resource DELETE operation. + Resource DELETE operation for tenant level extension resource. Expected path: /providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response status code: 204 - Resource DELETE operation. + Resource DELETE operation for subscription level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response status code: 204 - Resource DELETE operation. + Resource DELETE operation for resource get level extension resource. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response status code: 204 - Resource DELETE operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension + Resource DELETE operation for resource level extension resource. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension Expected query parameter: api-version=2023-12-01-preview Expected response status code: 204 """) @@ -432,7 +432,7 @@ interface ExtensionsResources { @scenario @scenarioDoc(""" - Resource LIST by parent url operation. + Resource LIST by tenant level url operation. Expected path: /providers/Azure.ResourceManager.Resources/extensionResources Expected query parameter: api-version=2023-12-01-preview @@ -459,7 +459,7 @@ interface ExtensionsResources { } ``` - Resource LIST by parent url operation. + Resource LIST by subscription level url operation. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/providers/Azure.ResourceManager.Resources/extensionResources Expected query parameter: api-version=2023-12-01-preview @@ -486,7 +486,7 @@ interface ExtensionsResources { } ``` - Resource LIST by parent url operation. + Resource LIST by resource group level url operation. Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/extensionResources Expected query parameter: api-version=2023-12-01-preview @@ -513,15 +513,15 @@ interface ExtensionsResources { } ``` - Resource LIST by parent url operation. - Expected path: /providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionResources + Resource LIST by resource level url operation. + Expected path: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionResources Expected query parameter: api-version=2023-12-01-preview Expected response body: ```json { "value": [{ - "id": "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension", "name": "extension", "type": "Azure.ResourceManager.Resources/extensionsResources", "properties":{ diff --git a/packages/cadl-ranch-specs/http/azure/resource-manager/resources/mockapi.ts b/packages/cadl-ranch-specs/http/azure/resource-manager/resources/mockapi.ts index 63c2b4770..1b5f8a756 100644 --- a/packages/cadl-ranch-specs/http/azure/resource-manager/resources/mockapi.ts +++ b/packages/cadl-ranch-specs/http/azure/resource-manager/resources/mockapi.ts @@ -116,7 +116,7 @@ const validTenantExtensionsResource = { }; const validResourceExtensionsResource = { - id: `/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension`, + id: `/subscriptions/${SUBSCRIPTION_ID_EXPECTED}/resourceGroups/${RESOURCE_GROUP_EXPECTED}/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/top/providers/Azure.ResourceManager.Resources/extensionsResources/extension`, name: "extension", type: "Azure.ResourceManager.Resources/extensionsResources", properties: { @@ -184,7 +184,7 @@ Scenarios.Azure_ResourceManager_Resources_ExtensionsResources_get = passOnSucces kind: "MockApiDefinition", }, { - uri: "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources/:extensionName", + uri: "/subscriptions/:subscriptionId/resourceGroups/:resourceGroup/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources/:extensionName", method: "get", request: { params: { @@ -266,10 +266,12 @@ Scenarios.Azure_ResourceManager_Resources_ExtensionsResources_createOrUpdate = p kind: "MockApiDefinition", }, { - uri: "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources/:extensionName", + uri: "/subscriptions/:subscriptionId/resourceGroups/:resourceGroup/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources/:extensionName", method: "put", request: { params: { + "subscriptionId": SUBSCRIPTION_ID_EXPECTED, + "resourceGroup": RESOURCE_GROUP_EXPECTED, "topLevelResourceName": "top", "extensionName": "extension", "api-version": "2023-12-01-preview", @@ -380,10 +382,12 @@ Scenarios.Azure_ResourceManager_Resources_ExtensionsResources_update = passOnSuc kind: "MockApiDefinition", }, { - uri: "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources/:extensionName", + uri: "/subscriptions/:subscriptionId/resourceGroups/:resourceGroup/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources/:extensionName", method: "patch", request: { params: { + "subscriptionId": SUBSCRIPTION_ID_EXPECTED, + "resourceGroup": RESOURCE_GROUP_EXPECTED, "topLevelResourceName": "top", "extensionName": "extension", "api-version": "2023-12-01-preview", @@ -458,10 +462,12 @@ Scenarios.Azure_ResourceManager_Resources_ExtensionsResources_delete = passOnSuc kind: "MockApiDefinition", }, { - uri: "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources/:extensionName", + uri: "/subscriptions/:subscriptionId/resourceGroups/:resourceGroup/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources/:extensionName", method: "delete", request: { params: { + "subscriptionId": SUBSCRIPTION_ID_EXPECTED, + "resourceGroup": RESOURCE_GROUP_EXPECTED, "topLevelResourceName": "top", "extensionName": "extension", "api-version": "2023-12-01-preview", @@ -527,10 +533,12 @@ Scenarios.Azure_ResourceManager_Resources_ExtensionsResources_listByParent = pas kind: "MockApiDefinition", }, { - uri: "/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources", + uri: "/subscriptions/:subscriptionId/resourceGroups/:resourceGroup/providers/Azure.ResourceManager.Resources/topLevelTrackedResources/:topLevelResourceName/providers/Azure.ResourceManager.Resources/extensionsResources", method: "get", request: { params: { + "subscriptionId": SUBSCRIPTION_ID_EXPECTED, + "resourceGroup": RESOURCE_GROUP_EXPECTED, "topLevelResourceName": "top", "api-version": "2023-12-01-preview", },