Skip to content

Commit

Permalink
test: fix show service test case (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackchoey authored Jun 17, 2024
1 parent f16122a commit 1fa23a9
Show file tree
Hide file tree
Showing 114 changed files with 1,848 additions and 1,924 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ interactions:
Content-Type:
- application/json
ParameterSetName:
- -g -s --api-id --title --type
- -g -n --api-id --title --type
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0)
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000003?api-version=2024-03-01
response:
body:
string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000003","name":"cli000003","systemData":{"createdAt":"2024-05-07T11:26:22.0044527Z","lastModifiedAt":"2024-05-07T11:26:22.0044507Z"}}'
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000003","name":"cli000003","systemData":{"createdAt":"2024-06-17T06:00:44.9963937Z","lastModifiedAt":"2024-06-17T06:00:44.9963921Z"}}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
Expand All @@ -34,9 +34,9 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 07 May 2024 11:26:22 GMT
- Mon, 17 Jun 2024 06:00:44 GMT
etag:
- 9103e5e6-0000-0100-0000-663a0fde0000
- da02dc98-0000-0100-0000-666fd10c0000
expires:
- '-1'
pragma:
Expand All @@ -49,10 +49,12 @@ interactions:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-writes:
- '2999'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
- '199'
x-msedge-ref:
- 'Ref A: 02D0C1013C8441CC9E2F84B831B19411 Ref B: MAA201060514017 Ref C: 2024-05-07T11:26:20Z'
- 'Ref A: CC39E9193ED345698E8CB1312E168A5A Ref B: MAA201060515029 Ref C: 2024-06-17T06:00:43Z'
x-powered-by:
- ASP.NET
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interactions:
Content-Type:
- application/json
ParameterSetName:
- -g -s --api-id --title --type --contacts --custom-properties --description
- -g -n --api-id --title --type --contacts --custom-properties --description
--external-documentation --license --summary
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
Expand All @@ -29,7 +29,7 @@ interactions:
body:
string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"test
api","summary":"summary","description":"API description","kind":"rest","license":{"url":"example.com"},"externalDocumentation":[{"title":"onboarding
docs","url":"example.com"}],"contacts":[{"name":"test","url":"example.com","email":"contact@example.com"}],"customProperties":{"clitest000003":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004","name":"cli000004","systemData":{"createdAt":"2024-05-16T08:16:34.3016442Z","lastModifiedAt":"2024-05-16T08:16:34.3016324Z"}}'
docs","url":"example.com"}],"contacts":[{"name":"test","url":"example.com","email":"contact@example.com"}],"customProperties":{"clitest000003":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004","name":"cli000004","systemData":{"createdAt":"2024-06-17T06:01:05.6377877Z","lastModifiedAt":"2024-06-17T06:01:05.6377761Z"}}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
Expand All @@ -40,9 +40,9 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Thu, 16 May 2024 08:16:33 GMT
- Mon, 17 Jun 2024 06:01:05 GMT
etag:
- 2900e52e-0000-0100-0000-6645c0e20000
- da020b9a-0000-0100-0000-666fd1210000
expires:
- '-1'
pragma:
Expand All @@ -55,10 +55,12 @@ interactions:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-writes:
- '2999'
x-ms-ratelimit-remaining-subscription-writes:
- '1199'
- '199'
x-msedge-ref:
- 'Ref A: ADF8917A140242AAA8FADA28D262A894 Ref B: MAA201060514009 Ref C: 2024-05-16T08:16:32Z'
- 'Ref A: 65463DBC175045639714FEB0384BB4EF Ref B: MAA201060513047 Ref C: 2024-06-17T06:01:04Z'
x-powered-by:
- ASP.NET
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ interactions:
Content-Length:
- '0'
ParameterSetName:
- -g -s --api-id --yes
- -g -n --api-id --yes
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0)
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: DELETE
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01
response:
Expand All @@ -27,7 +27,7 @@ interactions:
cache-control:
- no-cache
date:
- Fri, 17 May 2024 03:17:25 GMT
- Mon, 17 Jun 2024 06:01:23 GMT
expires:
- '-1'
pragma:
Expand All @@ -39,9 +39,11 @@ interactions:
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-deletes:
- '14999'
- '199'
x-ms-ratelimit-remaining-subscription-global-deletes:
- '2999'
x-msedge-ref:
- 'Ref A: E19B9F85D64543C8A6D0A898B3BF8D2B Ref B: MAA201060513021 Ref C: 2024-05-17T03:17:24Z'
- 'Ref A: 3F5C22E176E04C06916635DD0AF9C415 Ref B: MAA201060516009 Ref C: 2024-06-17T06:01:22Z'
x-powered-by:
- ASP.NET
status:
Expand All @@ -59,9 +61,9 @@ interactions:
Connection:
- keep-alive
ParameterSetName:
- -g -s --api-id
- -g -n --api-id
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0)
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01
response:
Expand All @@ -77,7 +79,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Fri, 17 May 2024 03:17:27 GMT
- Mon, 17 Jun 2024 06:01:26 GMT
expires:
- '-1'
pragma:
Expand All @@ -90,8 +92,10 @@ interactions:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
x-msedge-ref:
- 'Ref A: AF791DC5CCB94CA4BF9BA275AD679992 Ref B: MAA201060515017 Ref C: 2024-05-17T03:17:26Z'
- 'Ref A: 395C337E0EC84498B4F49AB282F9ABE0 Ref B: MAA201060513035 Ref C: 2024-06-17T06:01:25Z'
x-powered-by:
- ASP.NET
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ interactions:
Connection:
- keep-alive
ParameterSetName:
- -g -s
- -g -n
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0)
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?api-version=2024-03-01
response:
body:
string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-05-07T11:31:18.6512061Z","lastModifiedAt":"2024-05-07T11:31:18.6512047Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-05-07T11:31:21.7798422Z","lastModifiedAt":"2024-05-07T11:31:21.7798413Z"}}]}'
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:01:42.9377344Z","lastModifiedAt":"2024-06-17T06:01:42.9377333Z"}},{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000004","name":"clitest000004","systemData":{"createdAt":"2024-06-17T06:01:45.6045754Z","lastModifiedAt":"2024-06-17T06:01:45.6045746Z"}}]}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
Expand All @@ -31,7 +31,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Tue, 07 May 2024 11:31:24 GMT
- Mon, 17 Jun 2024 06:01:47 GMT
expires:
- '-1'
pragma:
Expand All @@ -44,8 +44,10 @@ interactions:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
x-msedge-ref:
- 'Ref A: EDFE7AA18545401DBDF49B0BB79EA6DF Ref B: MAA201060513017 Ref C: 2024-05-07T11:31:23Z'
- 'Ref A: 92408248176D40099D33F23353283F1D Ref B: MAA201060515017 Ref C: 2024-06-17T06:01:47Z'
x-powered-by:
- ASP.NET
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ interactions:
Connection:
- keep-alive
ParameterSetName:
- -g -s --filter
- -g -n --filter
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis?$filter=name%20eq%20%27clitest000003%27&api-version=2024-03-01
response:
body:
string: '{"value":[{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-05-16T08:16:31.1197126Z","lastModifiedAt":"2024-05-16T08:16:31.1197111Z"}}]}'
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:02:02.4785915Z","lastModifiedAt":"2024-06-17T06:02:02.4785904Z"}}]}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
Expand All @@ -30,7 +30,7 @@ interactions:
content-type:
- application/json; charset=utf-8
date:
- Thu, 16 May 2024 08:16:37 GMT
- Mon, 17 Jun 2024 06:02:08 GMT
expires:
- '-1'
pragma:
Expand All @@ -43,8 +43,10 @@ interactions:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
x-msedge-ref:
- 'Ref A: 1E0CF70F2DD14DD9A3D655D15D3480CD Ref B: MAA201060516023 Ref C: 2024-05-16T08:16:36Z'
- 'Ref A: 256451759C894F7DA8C3B6E2CBE562A1 Ref B: MAA201060513009 Ref C: 2024-06-17T06:02:07Z'
x-powered-by:
- ASP.NET
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@ interactions:
Connection:
- keep-alive
ParameterSetName:
- -g -s --api-id
- -g -n --api-id
User-Agent:
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0)
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.11.9 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003?api-version=2024-03-01
response:
body:
string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-05-07T11:28:58.2153872Z","lastModifiedAt":"2024-05-07T11:28:58.2153856Z"}}'
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/clitest000003","name":"clitest000003","systemData":{"createdAt":"2024-06-17T06:02:23.021984Z","lastModifiedAt":"2024-06-17T06:02:23.0219829Z"}}'
headers:
api-supported-versions:
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview
cache-control:
- no-cache
content-length:
- '472'
- '471'
content-type:
- application/json; charset=utf-8
date:
- Tue, 07 May 2024 11:29:00 GMT
- Mon, 17 Jun 2024 06:02:25 GMT
etag:
- 910317fc-0000-0100-0000-663a107a0000
- da02799d-0000-0100-0000-666fd16f0000
expires:
- '-1'
pragma:
Expand All @@ -45,8 +45,10 @@ interactions:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- '3749'
x-msedge-ref:
- 'Ref A: DC18AD73B37649CBB5B914A45CCD4C87 Ref B: MAA201060513053 Ref C: 2024-05-07T11:28:59Z'
- 'Ref A: 705F3882B7C04719B6BEB318FFEE74C7 Ref B: MAA201060513037 Ref C: 2024-06-17T06:02:24Z'
x-powered-by:
- ASP.NET
status:
Expand Down
Loading

0 comments on commit 1fa23a9

Please sign in to comment.