Skip to content

Commit

Permalink
Reopen Tests ARM, test case for ExtensionResource
Browse files Browse the repository at this point in the history
  • Loading branch information
v-hongli1 committed Nov 1, 2024
1 parent 77d06a8 commit 0d1a1d6
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 64 deletions.
58 changes: 29 additions & 29 deletions packages/cadl-ranch-specs/cadl-ranch-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand All @@ -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":{
Expand All @@ -1055,31 +1055,31 @@ 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

### Azure_ResourceManager_Resources_ExtensionsResources_get

- 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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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":{
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -1271,16 +1271,16 @@ 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:

```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":{
Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand All @@ -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":{
Expand Down
Loading

0 comments on commit 0d1a1d6

Please sign in to comment.