forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
271d27e
commit 6b37bcd
Showing
18 changed files
with
1,474 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
917 changes: 849 additions & 68 deletions
917
...ension/azext_apic_extension/tests/latest/recordings/test_definition_import_from_file.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
...ic_extension/tests/latest/recordings/test_deployment_create_with_all_optional_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
interactions: | ||
- request: | ||
body: '{"properties": {"customProperties": {"clitest000007": true}, "definitionId": | ||
"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006", | ||
"description": "deployment description", "environmentId": "/workspaces/default/environments/clitest000003", | ||
"server": {"runtimeUri": ["https://example.com"]}, "state": "active", "title": | ||
"test deployment"}}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
CommandName: | ||
- apic api deployment create | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '374' | ||
Content-Type: | ||
- application/json | ||
ParameterSetName: | ||
- -g -s --api-id --definition-id --environment-id --deployment-id --title --server | ||
--description --state --custom-properties | ||
User-Agent: | ||
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) | ||
method: PUT | ||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/mock-deployment?api-version=2024-03-01 | ||
response: | ||
body: | ||
string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test | ||
deployment","description":"deployment description","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{"clitest000007":true},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/cli000008","name":"cli000008","systemData":{"createdAt":"2024-05-17T05:03:38.370645Z","lastModifiedAt":"2024-05-17T05:03:38.3706282Z"}}' | ||
headers: | ||
api-supported-versions: | ||
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview | ||
cache-control: | ||
- no-cache | ||
content-length: | ||
- '750' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Fri, 17 May 2024 05:03:38 GMT | ||
etag: | ||
- 4b011192-0000-0100-0000-6646e52a0000 | ||
expires: | ||
- '-1' | ||
pragma: | ||
- no-cache | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
vary: | ||
- Accept-Encoding | ||
x-cache: | ||
- CONFIG_NOCACHE | ||
x-content-type-options: | ||
- nosniff | ||
x-ms-ratelimit-remaining-subscription-writes: | ||
- '1199' | ||
x-msedge-ref: | ||
- 'Ref A: 19D3A21284B740909A39DFD512E47B9C Ref B: MAA201060516051 Ref C: 2024-05-17T05:03:36Z' | ||
x-powered-by: | ||
- ASP.NET | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...apic_extension/tests/latest/recordings/test_deployment_list_with_all_optional_params.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
CommandName: | ||
- apic api deployment list | ||
Connection: | ||
- keep-alive | ||
ParameterSetName: | ||
- -g -s --api-id --filter | ||
User-Agent: | ||
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) | ||
method: GET | ||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments?$filter=name%20eq%20%27clitest000007%27&api-version=2024-03-01 | ||
response: | ||
body: | ||
string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis/deployments","properties":{"title":"test | ||
deployment","environmentId":"/workspaces/default/environments/clitest000003","definitionId":"/workspaces/default/apis/clitest000004/versions/clitest000005/definitions/clitest000006","server":{"runtimeUri":["https://example.com"]},"customProperties":{},"recommended":false},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004/deployments/clitest000007","name":"clitest000007","systemData":{"createdAt":"2024-05-17T02:54:50.9103478Z","lastModifiedAt":"2024-05-17T02:54:50.9103462Z"}}]}' | ||
headers: | ||
api-supported-versions: | ||
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview | ||
cache-control: | ||
- no-cache | ||
content-length: | ||
- '712' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Fri, 17 May 2024 02:54:56 GMT | ||
expires: | ||
- '-1' | ||
pragma: | ||
- no-cache | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
vary: | ||
- Accept-Encoding | ||
x-cache: | ||
- CONFIG_NOCACHE | ||
x-content-type-options: | ||
- nosniff | ||
x-msedge-ref: | ||
- 'Ref A: 565B79A7B2AE4F6197AFD32258D9C18D Ref B: MAA201060516047 Ref C: 2024-05-17T02:54:55Z' | ||
x-powered-by: | ||
- ASP.NET | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
Oops, something went wrong.