From 478e9f1a8d7619c9a8d9afa206b0af914835ac38 Mon Sep 17 00:00:00 2001 From: Alex Moraru Date: Thu, 29 Jan 2026 10:32:16 +0000 Subject: [PATCH 1/4] Records new tests for unassign --- .../test_unassign/class_setup.yaml | 82 +- .../.capacities/{}.Capacity].yaml | 506 ++++++++ ..._workspace_item_factory-{}.full_path].yaml | 705 +++++++++++ .../.capacities/{}.Capacity].yaml | 705 +++++++++++ ..._workspace_item_factory-{}.full_path].yaml | 701 +++++++++++ .../.capacities/{}.Capacity-id].yaml | 802 +++++++++++++ ...em_factory-{}.full_path-display_name].yaml | 1048 +++++++++++++++++ 7 files changed, 4508 insertions(+), 41 deletions(-) create mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.capacities-test_data-/.capacities/{}.Capacity-id].yaml create mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.domains-virtual_workspace_item_factory-{}.full_path-display_name].yaml diff --git a/tests/test_commands/recordings/test_commands/test_unassign/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_unassign/class_setup.yaml index 7950303a..9687f9b3 100644 --- a/tests/test_commands/recordings/test_commands/test_unassign/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_unassign/class_setup.yaml @@ -11,12 +11,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (None; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": "My workspace", "description": "", "type": "Personal"}]}' headers: Access-Control-Expose-Headers: @@ -26,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '323' + - '2271' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:09 GMT + - Thu, 29 Jan 2026 10:27:28 GMT Pragma: - no-cache RequestId: - - 54479a5a-8e13-4a5c-bf9c-982bdba0c491 + - 4d826007-54a7-4dc2-af8f-ffe8425fa51e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -42,7 +42,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -60,12 +60,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (None; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": "My workspace", "description": "", "type": "Personal"}]}' headers: Access-Control-Expose-Headers: @@ -75,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '323' + - '2271' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:09 GMT + - Thu, 29 Jan 2026 10:27:30 GMT Pragma: - no-cache RequestId: - - 4feefa45-e29e-4683-b6bc-0e5881814e49 + - 472469d7-715d-4c37-ab82-e4d503f80f8a Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -91,7 +91,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -109,13 +109,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (None; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET uri: https://api.fabric.microsoft.com/v1/capacities response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F16", "region": "West Europe", "state": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -125,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '456' + - '424' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:59 GMT + - Thu, 29 Jan 2026 10:27:33 GMT Pragma: - no-cache RequestId: - - 3ef4d07f-9a39-42d2-8408-edb4229075ae + - e5068d2c-eff8-45a5-a287-65068634f5c1 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -141,7 +141,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -162,12 +162,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (None; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: POST uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' headers: Access-Control-Expose-Headers: @@ -181,13 +181,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:05 GMT + - Thu, 29 Jan 2026 10:27:42 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727 + - https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5 Pragma: - no-cache RequestId: - - 5225f890-f222-47cd-8818-e25effa0866a + - 539ddbb4-9715-4aa4-bcd6-2e61988f079c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -195,7 +195,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -213,13 +213,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (unassign; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -230,15 +230,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '360' + - '2306' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:53 GMT + - Thu, 29 Jan 2026 10:28:15 GMT Pragma: - no-cache RequestId: - - 30d39d0d-8619-4f1c-b53a-1b6b2ab10896 + - 18215f24-7d53-44b0-98ff-137e154c05da Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -246,7 +246,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -264,9 +264,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (unassign; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items response: body: string: '{"value": []}' @@ -282,11 +282,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:53 GMT + - Thu, 29 Jan 2026 10:28:16 GMT Pragma: - no-cache RequestId: - - d05bc7e7-e528-4e13-bc4f-1a78037c4acc + - 4a23a346-6a3e-408a-8fc1-c88a23c49cfd Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -294,7 +294,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -314,9 +314,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (unassign; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727 + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5 response: body: string: '' @@ -332,11 +332,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 03 Sep 2025 08:31:53 GMT + - Thu, 29 Jan 2026 10:28:17 GMT Pragma: - no-cache RequestId: - - 04c16fd9-9d91-4f65-a068-13ad7de4d062 + - 7d5607c9-8605-40dc-a8d0-f8b83832fbda Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -344,7 +344,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml new file mode 100644 index 00000000..c9f4a1de --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml @@ -0,0 +1,506 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2306' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:27:43 GMT + Pragma: + - no-cache + RequestId: + - 75695ac1-ba92-481c-b5de-71856bbc98f3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:27:44 GMT + Pragma: + - no-cache + RequestId: + - 36fa9dd8-34c0-4afc-b156-e46431be354e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:27:45 GMT + Pragma: + - no-cache + RequestId: + - 8d21bb21-7993-48ec-82f1-5a4efcecc49e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Lakehouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '107' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/lakehouses + response: + body: + string: '{"id": "83e56226-2e51-476e-be73-311b41417b0b", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "823c0f6d-1c74-4cfb-a257-65316729b9b5"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:27:50 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 12b6360f-2334-4b28-8cc2-39be18b2cc95 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '424' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:27:56 GMT + Pragma: + - no-cache + RequestId: + - c13b76c8-c261-4fe6-b39c-10f27b43262c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2306' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:27:57 GMT + Pragma: + - no-cache + RequestId: + - d3583c9a-096a-4853-9b2b-557bb5085524 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + response: + body: + string: '{"value": [{"id": "83e56226-2e51-476e-be73-311b41417b0b", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "823c0f6d-1c74-4cfb-a257-65316729b9b5"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:27:58 GMT + Pragma: + - no-cache + RequestId: + - 67f1a603-c560-4f97-a0fc-63840f6c110c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2306' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:27:59 GMT + Pragma: + - no-cache + RequestId: + - fb21161e-6abc-446c-add2-9f0e7844d381 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + response: + body: + string: '{"value": [{"id": "83e56226-2e51-476e-be73-311b41417b0b", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "823c0f6d-1c74-4cfb-a257-65316729b9b5"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:00 GMT + Pragma: + - no-cache + RequestId: + - 5ddffb2e-8bc6-443b-bbca-e3dd463dafd2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items/83e56226-2e51-476e-be73-311b41417b0b + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:28:00 GMT + Pragma: + - no-cache + RequestId: + - 5c552bff-d4b8-497f-b27b-51146f82592b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml new file mode 100644 index 00000000..75ef8561 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml @@ -0,0 +1,705 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2306' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:01 GMT + Pragma: + - no-cache + RequestId: + - 4aa577cb-2502-4f1e-b51b-fd97728098e3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:02 GMT + Pragma: + - no-cache + RequestId: + - 39d11396-f260-4d1d-934a-38334f127e66 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:04 GMT + Pragma: + - no-cache + RequestId: + - 3f76a0e3-dddb-4595-997b-99de1cb91545 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Lakehouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '107' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/lakehouses + response: + body: + string: '{"id": "ad82f620-8f57-49ab-b183-0f2a59f42f22", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "823c0f6d-1c74-4cfb-a257-65316729b9b5"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:07 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - aeed4bac-2cae-4b46-9a3b-cb893e994bd4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '185' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:08 GMT + Pragma: + - no-cache + RequestId: + - 43c2598b-c3fb-4a32-8c94-57cd61f300bf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"contributorsScope": "AllTenant", "id": "bb146ef2-f436-469b-b816-7d3aaca93f9f", + "displayName": "fabcli000002", "description": ""}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:08 GMT + Location: + - https://api.fabric.microsoft.com/v1/admin/domains/bb146ef2-f436-469b-b816-7d3aaca93f9f + Pragma: + - no-cache + RequestId: + - 5664bc73-82ee-4b51-9c87-679167892500 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "bb146ef2-f436-469b-b816-7d3aaca93f9f", + "displayName": "fabcli000002", "description": ""}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '226' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:09 GMT + Pragma: + - no-cache + RequestId: + - fa377194-0bf7-4dda-977d-8eb1235820e6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2306' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:10 GMT + Pragma: + - no-cache + RequestId: + - 6f7af6b6-a2de-42fc-8042-778b7429ec27 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + response: + body: + string: '{"value": [{"id": "ad82f620-8f57-49ab-b183-0f2a59f42f22", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "823c0f6d-1c74-4cfb-a257-65316729b9b5"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:11 GMT + Pragma: + - no-cache + RequestId: + - b99a59ce-74d2-4e3b-b214-d0f8bf8bce59 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "bb146ef2-f436-469b-b816-7d3aaca93f9f", + "displayName": "fabcli000002", "description": ""}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '226' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:11 GMT + Pragma: + - no-cache + RequestId: + - 05206571-0c39-4bd8-aadf-d4722cd6b21c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/admin/domains/bb146ef2-f436-469b-b816-7d3aaca93f9f + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:28:13 GMT + Pragma: + - no-cache + RequestId: + - 59c5cc29-fab5-4183-890a-7e696506212d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2306' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:14 GMT + Pragma: + - no-cache + RequestId: + - c2785fd0-ef89-40b5-a8e2-25649119e694 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + response: + body: + string: '{"value": [{"id": "ad82f620-8f57-49ab-b183-0f2a59f42f22", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "823c0f6d-1c74-4cfb-a257-65316729b9b5"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:14 GMT + Pragma: + - no-cache + RequestId: + - ab033cba-3c0c-4f9f-a201-92e79c73b0ac + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items/ad82f620-8f57-49ab-b183-0f2a59f42f22 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:28:15 GMT + Pragma: + - no-cache + RequestId: + - 176afab0-ba1f-4d06-ad30-aec112b36e36 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml new file mode 100644 index 00000000..a3c5361f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml @@ -0,0 +1,705 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2271' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:29 GMT + Pragma: + - no-cache + RequestId: + - 8eb9ac4c-52b6-44a0-9482-2580db60d427 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2271' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:30 GMT + Pragma: + - no-cache + RequestId: + - c7a9e133-344a-4e6c-962c-dd6876dcc1a5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '425' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:35 GMT + Pragma: + - no-cache + RequestId: + - a799c379-b9c6-4039-8051-ca085e4b2150 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "capacityId": + "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", "displayName": "fabcli000001", + "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:43 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379 + Pragma: + - no-cache + RequestId: + - 90a7fd07-39ae-44a8-93a6-ecd213089dbf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '425' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:50 GMT + Pragma: + - no-cache + RequestId: + - d5b89311-0931-49d3-9b6b-bdd4f8378cc2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", + "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2309' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:50 GMT + Pragma: + - no-cache + RequestId: + - 3741d832-0339-45e6-afe0-e8409b0032ab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379 + response: + body: + string: '{"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", "displayName": "fabcli000001", + "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", + "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": + "Completed"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '275' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:51 GMT + Pragma: + - no-cache + RequestId: + - eaa22b9b-d20e-4888-83e0-c0895407a3ef + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379/unassignFromCapacity + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:28:53 GMT + Pragma: + - no-cache + RequestId: + - 63e882e9-6e93-4877-8871-b0238b5c60fc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '424' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:58 GMT + Pragma: + - no-cache + RequestId: + - a6ffe7b8-5d21-48be-bbec-58efba9f5280 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2310' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:59 GMT + Pragma: + - no-cache + RequestId: + - 69c1e599-1d7f-4c99-a6bf-d4c2b5be37df + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379 + response: + body: + string: '{"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", "displayName": "fabcli000001", + "description": "Created by fab", "type": "Workspace", "capacityAssignmentProgress": + "Completed"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '159' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:28:59 GMT + Pragma: + - no-cache + RequestId: + - 21f1f15f-0572-4c5c-aeda-ac8310ac197d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2310' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:00 GMT + Pragma: + - no-cache + RequestId: + - 8ed7f4d0-9798-4cc8-94dd-16c543327209 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:01 GMT + Pragma: + - no-cache + RequestId: + - be29a5a2-6c89-40ac-9d06-e604b3336de0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:29:02 GMT + Pragma: + - no-cache + RequestId: + - 8bc3cc48-51ed-4bf5-8456-e608e3a8d8a4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml new file mode 100644 index 00000000..a6e5dd6f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml @@ -0,0 +1,701 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2271' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:03 GMT + Pragma: + - no-cache + RequestId: + - 85697d0d-58a5-49cb-a04a-98aaa0e7188b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2271' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:04 GMT + Pragma: + - no-cache + RequestId: + - bf9e29a7-f540-4358-9fd6-5028b9ef445d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '425' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:10 GMT + Pragma: + - no-cache + RequestId: + - 5f4b1b50-884a-44ff-a275-025f881abcf4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "capacityId": + "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "a2a794f5-fcbd-4d03-8df2-9391efe82571", "displayName": "fabcli000001", + "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '166' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:19 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/a2a794f5-fcbd-4d03-8df2-9391efe82571 + Pragma: + - no-cache + RequestId: + - d57c2a74-50af-4207-b5c7-f4ef0e42c2d2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '185' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:20 GMT + Pragma: + - no-cache + RequestId: + - f97bdfeb-d4bd-45ab-89ab-85bd40caa804 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"contributorsScope": "AllTenant", "id": "6b5ff44e-2fa1-4fae-8892-bb979a452285", + "displayName": "fabcli000002", "description": ""}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '133' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:21 GMT + Location: + - https://api.fabric.microsoft.com/v1/admin/domains/6b5ff44e-2fa1-4fae-8892-bb979a452285 + Pragma: + - no-cache + RequestId: + - e53d0a51-9ada-4cf2-808f-e6812790bbb3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "6b5ff44e-2fa1-4fae-8892-bb979a452285", + "displayName": "fabcli000002", "description": ""}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '227' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:21 GMT + Pragma: + - no-cache + RequestId: + - 07c0ae42-a0fb-4cea-bec8-b0e4f2ad9430 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "a2a794f5-fcbd-4d03-8df2-9391efe82571", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", + "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2311' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:23 GMT + Pragma: + - no-cache + RequestId: + - 0e6527f5-d30b-4428-a78c-c034d20c9217 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains/6b5ff44e-2fa1-4fae-8892-bb979a452285/workspaces + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:23 GMT + Pragma: + - no-cache + RequestId: + - 1423cb0c-f4d7-475d-b774-11817417c208 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "6b5ff44e-2fa1-4fae-8892-bb979a452285", + "displayName": "fabcli000002", "description": ""}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '227' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:23 GMT + Pragma: + - no-cache + RequestId: + - 725c2b24-f747-4c24-98b5-6483dec71a23 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/admin/domains/6b5ff44e-2fa1-4fae-8892-bb979a452285 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:29:24 GMT + Pragma: + - no-cache + RequestId: + - 4cb91e25-aebf-47e9-b740-08e4b5dffbdb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "a2a794f5-fcbd-4d03-8df2-9391efe82571", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", + "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2311' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:25 GMT + Pragma: + - no-cache + RequestId: + - d3cc443f-b39c-49f5-ab22-2a227fcbee03 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a2a794f5-fcbd-4d03-8df2-9391efe82571/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:26 GMT + Pragma: + - no-cache + RequestId: + - 307b8805-4820-4f93-be4d-6f01c8350655 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/a2a794f5-fcbd-4d03-8df2-9391efe82571 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:29:27 GMT + Pragma: + - no-cache + RequestId: + - 2b1a04cf-69f2-4bd4-8adb-02b8cf14d1be + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.capacities-test_data-/.capacities/{}.Capacity-id].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.capacities-test_data-/.capacities/{}.Capacity-id].yaml new file mode 100644 index 00000000..da52885f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.capacities-test_data-/.capacities/{}.Capacity-id].yaml @@ -0,0 +1,802 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2271' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:29 GMT + Pragma: + - no-cache + RequestId: + - b1d5dfb0-d774-4eb4-b1d3-60453aaffce1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2271' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:30 GMT + Pragma: + - no-cache + RequestId: + - b2556c47-d946-4c5e-bb5f-a0414aba5f92 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '425' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:35 GMT + Pragma: + - no-cache + RequestId: + - 7efca30b-0fa3-49ee-a47b-b9cedb5b26f4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "capacityId": + "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", "displayName": "fabcli000001", + "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:44 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0 + Pragma: + - no-cache + RequestId: + - 6a9fbdf4-4cc6-4cc0-be95-5d99033d13fa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '425' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:50 GMT + Pragma: + - no-cache + RequestId: + - 1db56439-c097-4332-ba9d-da911f0267f3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", + "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2312' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:51 GMT + Pragma: + - no-cache + RequestId: + - a0405367-7111-4625-a4d0-c5793fb58a63 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0 + response: + body: + string: '{"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", "displayName": "fabcli000001", + "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", + "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": + "Completed"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '276' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:52 GMT + Pragma: + - no-cache + RequestId: + - fa122b8c-fc6a-4e21-813a-17203a2a0ff6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/unassignFromCapacity + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:29:54 GMT + Pragma: + - no-cache + RequestId: + - b9f97909-cc36-4dfe-a331-ac820fccd467 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2314' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:55 GMT + Pragma: + - no-cache + RequestId: + - c58dd375-c5cb-4719-be6f-f61bbc1692df + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0 + response: + body: + string: '{"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", "displayName": "fabcli000001", + "description": "Created by fab", "type": "Workspace", "capacityAssignmentProgress": + "Completed"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '159' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:56 GMT + Pragma: + - no-cache + RequestId: + - b25059db-76a4-4cd7-9b35-788133860481 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/managedPrivateEndpoints + response: + body: + string: '{"requestId": "26716624-ff41-4eed-910b-1f31c41b82ab", "errorCode": + "UnsupportedSku", "message": "Managed private endpoint is not supported for + this capacity sku."}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:56 GMT + Pragma: + - no-cache + RequestId: + - 26716624-ff41-4eed-910b-1f31c41b82ab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-public-api-error-code: + - UnsupportedSku + status: + code: 400 + message: Bad Request +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/spark/settings + response: + body: + string: '{"requestId": "1586e989-fa1e-42d2-8f66-d6bc6986fc5b", "errorCode": + "WorkspaceHasNoCapacityAssigned", "message": "A workspace with a capacity + assigned is required for the operation"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Content-Length: + - '176' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:57 GMT + RequestId: + - 1586e989-fa1e-42d2-8f66-d6bc6986fc5b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-public-api-error-code: + - WorkspaceHasNoCapacityAssigned + status: + code: 400 + message: Bad Request +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/roleAssignments + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000001", "principal": + {"id": "00000000-0000-0000-0000-000000000001", "displayName": "MSIT Cycle", + "type": "User", "userDetails": {"userPrincipalName": "mocked@admin_test_user"}}, + "role": "Admin"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '186' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:29:58 GMT + Pragma: + - no-cache + RequestId: + - b985ff54-bfa7-4a1d-a8a0-e644cf416bb0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2314' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:00 GMT + Pragma: + - no-cache + RequestId: + - dc17cd8f-fd20-41f8-877f-1169f0a46bd2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:01 GMT + Pragma: + - no-cache + RequestId: + - 9e69b7aa-69fd-44f0-a06c-6f284a1f6b80 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:30:02 GMT + Pragma: + - no-cache + RequestId: + - db20b7fa-2f62-4eb2-b1d0-2a7627e1574b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.domains-virtual_workspace_item_factory-{}.full_path-display_name].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.domains-virtual_workspace_item_factory-{}.full_path-display_name].yaml new file mode 100644 index 00000000..3a7ab303 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.domains-virtual_workspace_item_factory-{}.full_path-display_name].yaml @@ -0,0 +1,1048 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2271' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:02 GMT + Pragma: + - no-cache + RequestId: + - 79ddc3d1-d060-46fe-a36d-ceab55021a81 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2271' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:04 GMT + Pragma: + - no-cache + RequestId: + - 86505a37-f8ed-45b6-a4a5-60897f9641c3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '424' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:09 GMT + Pragma: + - no-cache + RequestId: + - a0babcd8-97d2-4365-924b-4332bbdd68fa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "capacityId": + "00000000-0000-0000-0000-000000000004"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", "displayName": "fabcli000001", + "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '164' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:28 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/230188b8-54dc-4890-8fb9-ddfdbfef864b + Pragma: + - no-cache + RequestId: + - f9b0ec17-96c1-4253-bbe7-2c5af23c0b92 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '185' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:29 GMT + Pragma: + - no-cache + RequestId: + - 739e68ba-3f78-4110-a434-190d8d59d0d3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '35' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", + "displayName": "fabcli000002", "description": ""}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '134' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:29 GMT + Location: + - https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019 + Pragma: + - no-cache + RequestId: + - b1e14c6a-4cd2-45c6-b46d-71ca8feeaf6b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", + "displayName": "fabcli000002", "description": ""}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '227' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:30 GMT + Pragma: + - no-cache + RequestId: + - a35ee68f-5835-4535-9eb3-75328c5b1198 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", + "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2314' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:31 GMT + Pragma: + - no-cache + RequestId: + - 79036d1f-cae4-4eb8-b77f-5f44c1ec8c79 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"workspacesIds": ["230188b8-54dc-4890-8fb9-ddfdbfef864b"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019/assignWorkspaces + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:30:32 GMT + Pragma: + - no-cache + RequestId: + - 1dce42c6-df20-40ee-9cec-1c759b563a0b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", + "displayName": "fabcli000002", "description": ""}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '227' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:33 GMT + Pragma: + - no-cache + RequestId: + - fd3ab790-8bab-41cb-adcf-486e3ab0db52 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", + "capacityId": "00000000-0000-0000-0000-000000000004", "domainId": "b750fa29-33e1-47d0-87ad-90c6c5950019"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2345' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:34 GMT + Pragma: + - no-cache + RequestId: + - 9550ac5d-292e-4445-a884-091512afbef0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019/workspaces + response: + body: + string: '{"value": [{"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", "displayName": + "fabcli000001"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '106' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:34 GMT + Pragma: + - no-cache + RequestId: + - aa46b9d7-da4a-49d3-9f85-3a60b26733de + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"workspacesIds": ["230188b8-54dc-4890-8fb9-ddfdbfef864b"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019/unassignWorkspaces + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:30:36 GMT + Pragma: + - no-cache + RequestId: + - 82a78651-c928-4578-ae97-d1a3e69b0266 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", + "displayName": "fabcli000002", "description": ""}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '227' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:36 GMT + Pragma: + - no-cache + RequestId: + - f252b2c1-4628-4a47-91dc-897481e7a8dc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019 + response: + body: + string: '{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", + "displayName": "fabcli000002", "description": ""}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '134' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:36 GMT + Pragma: + - no-cache + RequestId: + - 28fc90f6-3427-4fd8-b764-10903fbd930f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019/workspaces + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:37 GMT + Pragma: + - no-cache + RequestId: + - 34837a01-38d3-4f7f-897c-0658b341caef + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/admin/domains + response: + body: + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", + "displayName": "fabcli000002", "description": ""}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '227' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:38 GMT + Pragma: + - no-cache + RequestId: + - cba15d7f-0eb4-4d7e-9b35-bfe223897aec + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:30:39 GMT + Pragma: + - no-cache + RequestId: + - 579ad45f-8800-4395-9870-65eb50e48464 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", + "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2314' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:40 GMT + Pragma: + - no-cache + RequestId: + - 924c1ed2-441b-4746-8675-c24b2e831070 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/230188b8-54dc-4890-8fb9-ddfdbfef864b/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 10:30:41 GMT + Pragma: + - no-cache + RequestId: + - 4de9fe9b-44e8-4f61-81e0-c8e7a9400c93 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/230188b8-54dc-4890-8fb9-ddfdbfef864b + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 10:30:42 GMT + Pragma: + - no-cache + RequestId: + - 2953de00-6c3e-4ad8-9bd9-0a8dff827ea1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 From 4b8bccd957f74d532aafbcff6f2f2634881c9937 Mon Sep 17 00:00:00 2001 From: Alex Moraru Date: Mon, 2 Feb 2026 13:15:03 +0000 Subject: [PATCH 2/4] Adds parametrized tests --- tests/test_commands/test_unassign.py | 228 ++++++++++++++------------- 1 file changed, 121 insertions(+), 107 deletions(-) diff --git a/tests/test_commands/test_unassign.py b/tests/test_commands/test_unassign.py index 23deeafe..79c589ae 100644 --- a/tests/test_commands/test_unassign.py +++ b/tests/test_commands/test_unassign.py @@ -4,6 +4,8 @@ import argparse from unittest.mock import patch +import pytest + import fabric_cli.commands.fs.fab_fs_assign as fab_assign import fabric_cli.commands.fs.fab_fs_unassign as fab_unassign from fabric_cli.commands.fs import fab_fs_get @@ -14,6 +16,125 @@ class TestUnassign: + # region Parametrized Tests + @pytest.mark.parametrize("entity_type,factory_key,path_template,assertion_key", [ + (VirtualWorkspaceType.CAPACITY, "test_data", + "/.capacities/{}.Capacity", "id"), + (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", + "{}.full_path", "display_name"), + ]) + def test_unassign_entity_workspace_success( + self, + entity_type, + factory_key, + path_template, + assertion_key, + workspace_factory, + cli_executor, + mock_questionary_print, + test_data: StaticTestData, + virtual_workspace_item_factory, + ): + # Setup + workspace = workspace_factory() + mock_questionary_print.reset_mock() + + if factory_key == "test_data": + # Capacity scenario + entity_path = path_template.format(test_data.capacity.name) + assertion_value = getattr(test_data.capacity, assertion_key) + else: + # Domain scenario + domain = virtual_workspace_item_factory(entity_type) + assign(domain.full_path, workspace.full_path) + entity_path = domain.full_path + assertion_value = getattr(domain, assertion_key) + + # Execute command + cli_executor.exec_command( + f"unassign {entity_path} --workspace {workspace.full_path} --force" + ) + + # Assert + if entity_type == VirtualWorkspaceType.CAPACITY: + get(workspace.full_path, query=".") + else: + get(entity_path, query="domainWorkspaces") + + assert any( + str(assertion_value) not in str(call.args[0]) + for call in mock_questionary_print.mock_calls + ) + + @pytest.mark.parametrize("entity_type,factory_key,path_template", [ + (VirtualWorkspaceType.CAPACITY, "test_data", "/.capacities/{}.Capacity"), + (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", "{}.full_path"), + ]) + def test_unassign_entity_workspace_not_assigned_failure( + self, + entity_type, + factory_key, + path_template, + workspace_factory, + cli_executor, + assert_fabric_cli_error, + test_data: StaticTestData, + virtual_workspace_item_factory, + ): + # Setup + workspace = workspace_factory() + + if factory_key == "test_data": + # Capacity scenario - ensure it's unassigned first + entity_path = path_template.format(test_data.capacity.name) + unassign(entity_path, workspace.full_path) + else: + # Domain scenario - just create domain without assigning + domain = virtual_workspace_item_factory(entity_type) + entity_path = domain.full_path + + # Execute command + cli_executor.exec_command( + f"unassign {entity_path} --workspace {workspace.full_path} --force" + ) + + # Assert + assert_fabric_cli_error(constant.ERROR_INVALID_INPUT) + + @pytest.mark.parametrize("entity_type,factory_key,path_template", [ + (VirtualWorkspaceType.CAPACITY, "test_data", "/.capacities/{}.Capacity"), + (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", "{}.full_path"), + ]) + def test_unassign_entity_item_not_supported_failure( + self, + entity_type, + factory_key, + path_template, + item_factory, + cli_executor, + assert_fabric_cli_error, + test_data: StaticTestData, + virtual_workspace_item_factory, + ): + # Setup + lakehouse = item_factory(ItemType.LAKEHOUSE) + + if factory_key == "test_data": + entity_path = path_template.format(test_data.capacity.name) + else: + domain = virtual_workspace_item_factory(entity_type) + entity_path = domain.full_path + + # Execute command + cli_executor.exec_command( + f"unassign {entity_path} --workspace {lakehouse.full_path} --force" + ) + + # Assert + assert_fabric_cli_error(constant.ERROR_NOT_SUPPORTED) + + # endregion + # region CAPACITY TESTS def test_unassign_capacity_workspace_success( self, @@ -107,113 +228,6 @@ def test_unassign_capacity_workspace_without_force_cancel_operation_success( for call in mock_questionary_print.mock_calls ) - def test_unassign_capacity_workspace_not_assigned_failure( - self, - workspace_factory, - cli_executor, - assert_fabric_cli_error, - test_data: StaticTestData, - ): - # Setup - workspace = workspace_factory() - capacity_full_path = f"/.capacities/{test_data.capacity.name}.Capacity" - unassign(capacity_full_path, workspace.full_path) - - # Execute command - cli_executor.exec_command( - f"unassign {capacity_full_path} --workspace {workspace.full_path} --force" - ) - - # Assert - assert_fabric_cli_error(constant.ERROR_INVALID_INPUT) - - def test_unassign_capacity_item_not_supported_failure( - self, - item_factory, - cli_executor, - assert_fabric_cli_error, - test_data: StaticTestData, - ): - # Setup - lakehouse = item_factory(ItemType.LAKEHOUSE) - capacity_full_path = f"/.capacities/{test_data.capacity.name}.Capacity" - - # Execute command - cli_executor.exec_command( - f"unassign {capacity_full_path} --workspace {lakehouse.full_path} --force" - ) - - # Assert - assert_fabric_cli_error(constant.ERROR_NOT_SUPPORTED) - - # endregion - - # region DOMAIN TESTS - def test_unassign_domain_workspace_success( - self, - workspace_factory, - cli_executor, - virtual_workspace_item_factory, - mock_questionary_print, - ): - # Setup - workspace = workspace_factory() - domain = virtual_workspace_item_factory(VirtualWorkspaceType.DOMAIN) - assign(domain.full_path, workspace.full_path) - mock_questionary_print.reset_mock() - - # Execute command - cli_executor.exec_command( - f"unassign {domain.full_path} --workspace {workspace.full_path} --force" - ) - - # Assert - get(domain.full_path, query="domainWorkspaces") - assert any( - workspace.display_name not in call.args[0] - for call in mock_questionary_print.mock_calls - ) - - def test_unassign_domain_workspace_not_assigned_failure( - self, - workspace_factory, - cli_executor, - virtual_workspace_item_factory, - mock_questionary_print, - assert_fabric_cli_error, - ): - # Setup - workspace = workspace_factory() - domain = virtual_workspace_item_factory(VirtualWorkspaceType.DOMAIN) - mock_questionary_print.reset_mock() - - # Execute command - cli_executor.exec_command( - f"unassign {domain.full_path} --workspace {workspace.full_path} --force" - ) - - # Assert - assert_fabric_cli_error(constant.ERROR_INVALID_INPUT) - - def test_unassign_domain_item_not_supported_failure( - self, - item_factory, - cli_executor, - virtual_workspace_item_factory, - assert_fabric_cli_error, - ): - # Setup - lakehouse = item_factory(ItemType.LAKEHOUSE) - domain = virtual_workspace_item_factory(VirtualWorkspaceType.DOMAIN) - - # Execute command - cli_executor.exec_command( - f"unassign {domain.full_path} --workspace {lakehouse.full_path} --force" - ) - - # Assert - assert_fabric_cli_error(constant.ERROR_NOT_SUPPORTED) - # endregion From ce5f1c404e47e28de425c100c2f9788d9ac16e2a Mon Sep 17 00:00:00 2001 From: Alex Moraru Date: Mon, 9 Feb 2026 13:22:43 +0000 Subject: [PATCH 3/4] Moves all params to conftest --- tests/test_commands/conftest.py | 48 +++++++++++++++++++++------- tests/test_commands/test_unassign.py | 18 +++-------- 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/tests/test_commands/conftest.py b/tests/test_commands/conftest.py index 806c221c..a3e8d5ae 100644 --- a/tests/test_commands/conftest.py +++ b/tests/test_commands/conftest.py @@ -56,6 +56,18 @@ "x-ms-authorization-auxiliary", ] +unassign_entity_workspace_success_params = pytest.mark.parametrize("entity_type,factory_key,path_template,assertion_key", [ + (VirtualWorkspaceType.CAPACITY, "test_data", + "/.capacities/{}.Capacity", "id"), + (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", + "{}.full_path", "display_name"), +]) + +unassign_failure_params = pytest.mark.parametrize("entity_type,factory_key,path_template", [ + (VirtualWorkspaceType.CAPACITY, "test_data", "/.capacities/{}.Capacity"), + (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", "{}.full_path"), +]) + def pytest_addoption(parser): parser.addoption( @@ -248,7 +260,8 @@ def workspace(vcr_instance, test_data): workspace_name = f"{display_name}.Workspace" workspace_path = f"/{workspace_name}" - mkdir(workspace_path, params=[f"capacityName={test_data.capacity.name}"]) + mkdir(workspace_path, params=[ + f"capacityName={test_data.capacity.name}"]) yield EntityMetadata(display_name, workspace_name, workspace_path) rm(workspace_path) @@ -273,7 +286,8 @@ def _create_item( generated_name = custom_name else: # Use the test's specific recording file - generated_name = generate_random_string(vcr_instance, cassette_name) + generated_name = generate_random_string( + vcr_instance, cassette_name) item_name = f"{generated_name}.{type}" item_path = cli_path_join(path, item_name) @@ -299,7 +313,8 @@ def _create_item( @pytest.fixture def folder_factory(vcr_instance, cassette_name, workspace): # Keep track of all folders created during this test - current_config = state_config.get_config(fab_constant.FAB_FOLDER_LISTING_ENABLED) + current_config = state_config.get_config( + fab_constant.FAB_FOLDER_LISTING_ENABLED) state_config.set_config(fab_constant.FAB_FOLDER_LISTING_ENABLED, "true") created_folders = [] @@ -329,7 +344,8 @@ def _create_folder( for metadata in reversed(created_folders): rm(metadata.full_path) - state_config.set_config(fab_constant.FAB_FOLDER_LISTING_ENABLED, current_config) + state_config.set_config( + fab_constant.FAB_FOLDER_LISTING_ENABLED, current_config) @pytest.fixture @@ -355,7 +371,8 @@ def _create_virtual_item( """ generated_name = generate_random_string(vcr_instance, cassette_name) virtual_item_name = f"{generated_name}.{str(VICMap[type])}" - virtual_item_path = cli_path_join(workspace_path, str(type), virtual_item_name) + virtual_item_path = cli_path_join( + workspace_path, str(type), virtual_item_name) match type: @@ -408,7 +425,8 @@ def _create_virtual_item( mkdir(virtual_item_path, params) # Build the metadata for the created resource - metadata = EntityMetadata(generated_name, virtual_item_name, virtual_item_path) + metadata = EntityMetadata( + generated_name, virtual_item_name, virtual_item_path) if should_clean: created_virtual_items.append(metadata) return metadata @@ -438,10 +456,12 @@ def _create_workspace(special_character=None): workspace_name = f"{generated_name}.Workspace" workspace_path = f"/{workspace_name}" - mkdir(workspace_path, params=[f"capacityName={test_data.capacity.name}"]) + mkdir(workspace_path, params=[ + f"capacityName={test_data.capacity.name}"]) # Build the metadata for the created resource - metadata = EntityMetadata(generated_name, workspace_name, workspace_path) + metadata = EntityMetadata( + generated_name, workspace_name, workspace_path) created_workspaces.append(metadata) return metadata @@ -546,7 +566,8 @@ def delete_cassette_if_record_mode_all(vcr_instance, cassette_name): :param cassette_name: The name of the cassette file. """ if vcr_instance.record_mode == "all": - cassette_path = os.path.join(vcr_instance.cassette_library_dir, cassette_name) + cassette_path = os.path.join( + vcr_instance.cassette_library_dir, cassette_name) if os.path.exists(cassette_path): os.remove(cassette_path) @@ -654,7 +675,8 @@ def setup_config_values_for_capacity(test_data: StaticTestData): fab_default_az_location = state_config.get_config( fab_constant.FAB_DEFAULT_AZ_LOCATION ) - fab_default_az_admin = state_config.get_config(fab_constant.FAB_DEFAULT_AZ_ADMIN) + fab_default_az_admin = state_config.get_config( + fab_constant.FAB_DEFAULT_AZ_ADMIN) # Setup new values state_config.set_config( @@ -668,7 +690,8 @@ def setup_config_values_for_capacity(test_data: StaticTestData): state_config.set_config( fab_constant.FAB_DEFAULT_AZ_LOCATION, test_data.azure_location ) - state_config.set_config(fab_constant.FAB_DEFAULT_AZ_ADMIN, test_data.admin.upn) + state_config.set_config( + fab_constant.FAB_DEFAULT_AZ_ADMIN, test_data.admin.upn) yield @@ -682,7 +705,8 @@ def setup_config_values_for_capacity(test_data: StaticTestData): state_config.set_config( fab_constant.FAB_DEFAULT_AZ_LOCATION, fab_default_az_location ) - state_config.set_config(fab_constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) + state_config.set_config( + fab_constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) # endregion diff --git a/tests/test_commands/test_unassign.py b/tests/test_commands/test_unassign.py index 79c589ae..ab7e3b25 100644 --- a/tests/test_commands/test_unassign.py +++ b/tests/test_commands/test_unassign.py @@ -13,16 +13,12 @@ from fabric_cli.core import fab_handle_context as handle_context from fabric_cli.core.fab_types import ItemType, VirtualWorkspaceType from tests.test_commands.data.static_test_data import StaticTestData +from tests.test_commands.conftest import unassign_entity_workspace_success_params, unassign_failure_params class TestUnassign: # region Parametrized Tests - @pytest.mark.parametrize("entity_type,factory_key,path_template,assertion_key", [ - (VirtualWorkspaceType.CAPACITY, "test_data", - "/.capacities/{}.Capacity", "id"), - (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", - "{}.full_path", "display_name"), - ]) + @unassign_entity_workspace_success_params def test_unassign_entity_workspace_success( self, entity_type, @@ -66,10 +62,7 @@ def test_unassign_entity_workspace_success( for call in mock_questionary_print.mock_calls ) - @pytest.mark.parametrize("entity_type,factory_key,path_template", [ - (VirtualWorkspaceType.CAPACITY, "test_data", "/.capacities/{}.Capacity"), - (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", "{}.full_path"), - ]) + @unassign_failure_params def test_unassign_entity_workspace_not_assigned_failure( self, entity_type, @@ -101,10 +94,7 @@ def test_unassign_entity_workspace_not_assigned_failure( # Assert assert_fabric_cli_error(constant.ERROR_INVALID_INPUT) - @pytest.mark.parametrize("entity_type,factory_key,path_template", [ - (VirtualWorkspaceType.CAPACITY, "test_data", "/.capacities/{}.Capacity"), - (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", "{}.full_path"), - ]) + @unassign_failure_params def test_unassign_entity_item_not_supported_failure( self, entity_type, From 70a6b501c9bb074fac1a1155f31209b0d28aeace Mon Sep 17 00:00:00 2001 From: Alex Moraru Date: Mon, 23 Feb 2026 09:40:17 +0000 Subject: [PATCH 4/4] Implements code review suggestions --- tests/test_commands/conftest.py | 9 +- .../test_unassign/class_setup.yaml | 48 +- ...n_capacity_item_not_supported_failure.yaml | 506 -------- ...pacity_workspace_not_assigned_failure.yaml | 705 ----------- ...ign_domain_item_not_supported_failure.yaml | 705 ----------- .../.capacities/{}.Capacity].yaml | 86 +- ...virtual_workspace_item_factory-None].yaml} | 114 +- .../.capacities/{}.Capacity].yaml | 106 +- ...virtual_workspace_item_factory-None].yaml} | 184 ++- .../.capacities/{}.Capacity-id].yaml | 802 ------------- ...em_factory-{}.full_path-display_name].yaml | 1048 ----------------- tests/test_commands/test_unassign.py | 74 +- 12 files changed, 296 insertions(+), 4091 deletions(-) delete mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_item_not_supported_failure.yaml delete mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_workspace_not_assigned_failure.yaml delete mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_domain_item_not_supported_failure.yaml rename tests/test_commands/recordings/test_commands/test_unassign/{test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml => test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-None].yaml} (84%) rename tests/test_commands/recordings/test_commands/test_unassign/{test_unassign_domain_workspace_not_assigned_failure.yaml => test_unassign_entity_workspace_not_assigned_failure[.domains-virtual_workspace_item_factory-None].yaml} (71%) delete mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.capacities-test_data-/.capacities/{}.Capacity-id].yaml delete mode 100644 tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.domains-virtual_workspace_item_factory-{}.full_path-display_name].yaml diff --git a/tests/test_commands/conftest.py b/tests/test_commands/conftest.py index a3e8d5ae..ca5609ce 100644 --- a/tests/test_commands/conftest.py +++ b/tests/test_commands/conftest.py @@ -56,16 +56,9 @@ "x-ms-authorization-auxiliary", ] -unassign_entity_workspace_success_params = pytest.mark.parametrize("entity_type,factory_key,path_template,assertion_key", [ - (VirtualWorkspaceType.CAPACITY, "test_data", - "/.capacities/{}.Capacity", "id"), - (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", - "{}.full_path", "display_name"), -]) - unassign_failure_params = pytest.mark.parametrize("entity_type,factory_key,path_template", [ (VirtualWorkspaceType.CAPACITY, "test_data", "/.capacities/{}.Capacity"), - (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", "{}.full_path"), + (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", None), ]) diff --git a/tests/test_commands/recordings/test_commands/test_unassign/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_unassign/class_setup.yaml index 9687f9b3..b33cde55 100644 --- a/tests/test_commands/recordings/test_commands/test_unassign/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_unassign/class_setup.yaml @@ -26,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2271' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:28 GMT + - Mon, 23 Feb 2026 09:35:33 GMT Pragma: - no-cache RequestId: - - 4d826007-54a7-4dc2-af8f-ffe8425fa51e + - f5559088-59e3-4fd2-93ff-cb2114ad189b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -75,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2271' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:30 GMT + - Mon, 23 Feb 2026 09:35:33 GMT Pragma: - no-cache RequestId: - - 472469d7-715d-4c37-ab82-e4d503f80f8a + - afebf579-6c1d-430b-890b-abb237339d3e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -115,7 +115,7 @@ interactions: response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -129,11 +129,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:33 GMT + - Mon, 23 Feb 2026 09:35:38 GMT Pragma: - no-cache RequestId: - - e5068d2c-eff8-45a5-a287-65068634f5c1 + - e03e2615-368b-4dca-91da-b3a86d1529a9 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -167,7 +167,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' headers: Access-Control-Expose-Headers: @@ -177,17 +177,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '188' + - '190' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:42 GMT + - Mon, 23 Feb 2026 09:35:47 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5 + - https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d Pragma: - no-cache RequestId: - - 539ddbb4-9715-4aa4-bcd6-2e61988f079c + - a1c385bd-3879-463f-85e4-e53b467692d7 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -219,7 +219,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "My workspace", "description": "", "type": "Personal"}, {"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -230,15 +230,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2306' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:15 GMT + - Mon, 23 Feb 2026 09:36:22 GMT Pragma: - no-cache RequestId: - - 18215f24-7d53-44b0-98ff-137e154c05da + - 82b4176b-0621-4ef6-ae92-230cb6dc14a3 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -266,7 +266,7 @@ interactions: User-Agent: - ms-fabric-cli/1.3.1 (unassign; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: string: '{"value": []}' @@ -282,11 +282,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:16 GMT + - Mon, 23 Feb 2026 09:36:23 GMT Pragma: - no-cache RequestId: - - 4a23a346-6a3e-408a-8fc1-c88a23c49cfd + - df6b6578-c010-41c4-b68f-8cdd2cc2fae8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -316,7 +316,7 @@ interactions: User-Agent: - ms-fabric-cli/1.3.1 (unassign; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5 + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d response: body: string: '' @@ -332,11 +332,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Thu, 29 Jan 2026 10:28:17 GMT + - Mon, 23 Feb 2026 09:36:23 GMT Pragma: - no-cache RequestId: - - 7d5607c9-8605-40dc-a8d0-f8b83832fbda + - 17433a90-aab6-4e20-ab45-65427f40addf Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_item_not_supported_failure.yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_item_not_supported_failure.yaml deleted file mode 100644 index efe2a236..00000000 --- a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_item_not_supported_failure.yaml +++ /dev/null @@ -1,506 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '360' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:05 GMT - Pragma: - - no-cache - RequestId: - - f445894d-89ad-4fa6-a941-c0e4707f9e0f - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items - response: - body: - string: '{"value": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '32' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:06 GMT - Pragma: - - no-cache - RequestId: - - a2e0dc13-311a-4b7b-838a-cd645500299c - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items - response: - body: - string: '{"value": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '32' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:06 GMT - Pragma: - - no-cache - RequestId: - - 123c80bb-1c93-4323-b800-e5ab2922670b - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": - "Lakehouse", "folderId": null}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '107' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/lakehouses - response: - body: - string: '{"id": "2af9be85-a71a-4274-a433-572e73beda6f", "type": "Lakehouse", - "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}' - headers: - Access-Control-Expose-Headers: - - RequestId,ETag - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '167' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:11 GMT - ETag: - - '""' - Pragma: - - no-cache - RequestId: - - 57628804-7e7e-4145-a7d4-c38fa0dc5109 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/capacities - response: - body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F16", "region": "West Europe", "state": - "Active"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '456' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:16 GMT - Pragma: - - no-cache - RequestId: - - 43db6c41-7b59-4c49-9c15-17b0be667964 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '360' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:17 GMT - Pragma: - - no-cache - RequestId: - - 67803b2e-c313-4af2-a6e0-affeeccd1407 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items - response: - body: - string: '{"value": [{"id": "2af9be85-a71a-4274-a433-572e73beda6f", "type": "Lakehouse", - "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '178' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:17 GMT - Pragma: - - no-cache - RequestId: - - d94998d7-3f56-40bc-be94-721fb06e6532 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '360' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:17 GMT - Pragma: - - no-cache - RequestId: - - b67ce576-853c-42c9-b7df-671bccfa20be - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items - response: - body: - string: '{"value": [{"id": "2af9be85-a71a-4274-a433-572e73beda6f", "type": "Lakehouse", - "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '178' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:17 GMT - Pragma: - - no-cache - RequestId: - - a1a203bd-2c69-4eca-bd01-f4d81007a038 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items/2af9be85-a71a-4274-a433-572e73beda6f - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Wed, 03 Sep 2025 08:31:17 GMT - Pragma: - - no-cache - RequestId: - - 094fc1ec-056f-43fe-81bd-fbdc84b01a4d - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_workspace_not_assigned_failure.yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_workspace_not_assigned_failure.yaml deleted file mode 100644 index 13857e43..00000000 --- a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_workspace_not_assigned_failure.yaml +++ /dev/null @@ -1,705 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '323' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:29:47 GMT - Pragma: - - no-cache - RequestId: - - 76e6f4fe-8064-4f8f-a993-0e60d23834fc - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '323' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:29:48 GMT - Pragma: - - no-cache - RequestId: - - 26d06351-5422-4a2f-9b9a-8e21e2766495 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/capacities - response: - body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F16", "region": "West Europe", "state": - "Active"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '456' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:29:51 GMT - Pragma: - - no-cache - RequestId: - - 43f6c260-e2fa-4ed4-b9c0-de369813c4b1 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"description": "Created by fab", "displayName": "fabcli000001", "capacityId": - "00000000-0000-0000-0000-000000000004"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '122' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"id": "bd075225-c682-4dc1-b648-40d016a27cce", "displayName": "fabcli000001", - "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '166' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:29:58 GMT - Location: - - https://api.fabric.microsoft.com/v1/workspaces/bd075225-c682-4dc1-b648-40d016a27cce - Pragma: - - no-cache - RequestId: - - 5e73097a-5877-4f49-a01c-a1bc11abbea0 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/capacities - response: - body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F16", "region": "West Europe", "state": - "Active"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '456' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:30:02 GMT - Pragma: - - no-cache - RequestId: - - 4ff122c5-9462-40ed-9c92-52c3e31355d9 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bd075225-c682-4dc1-b648-40d016a27cce", - "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", - "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '363' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:30:03 GMT - Pragma: - - no-cache - RequestId: - - f633afc7-c9d7-4ffd-881d-91e6d0f6f0f3 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bd075225-c682-4dc1-b648-40d016a27cce - response: - body: - string: '{"id": "bd075225-c682-4dc1-b648-40d016a27cce", "displayName": "fabcli000001", - "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", - "capacityRegion": "West Europe", "oneLakeEndpoints": {"blobEndpoint": "https://westeurope-onelake.blob.fabric.microsoft.com", - "dfsEndpoint": "https://westeurope-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": - "Completed"}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '278' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:30:02 GMT - Pragma: - - no-cache - RequestId: - - fc8e0ea5-80d5-4253-8325-4dcd5fb88054 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/bd075225-c682-4dc1-b648-40d016a27cce/unassignFromCapacity - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Wed, 03 Sep 2025 08:30:04 GMT - Pragma: - - no-cache - RequestId: - - 49be2b93-ebbd-4209-88de-a1576fd2cace - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/capacities - response: - body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F16", "region": "West Europe", "state": - "Active"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '456' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:30:08 GMT - Pragma: - - no-cache - RequestId: - - c5ae97c0-f55a-43d2-98ec-ed955317f36d - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bd075225-c682-4dc1-b648-40d016a27cce", - "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '364' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:30:09 GMT - Pragma: - - no-cache - RequestId: - - 76fc92fc-f3d6-4bc4-8a77-7c8e2514c9a0 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bd075225-c682-4dc1-b648-40d016a27cce - response: - body: - string: '{"id": "bd075225-c682-4dc1-b648-40d016a27cce", "displayName": "fabcli000001", - "description": "Created by fab", "type": "Workspace", "capacityAssignmentProgress": - "Completed"}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '158' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:30:08 GMT - Pragma: - - no-cache - RequestId: - - 21ba8a40-fd98-4619-af27-fc6ac1401176 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "bd075225-c682-4dc1-b648-40d016a27cce", - "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '364' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:30:09 GMT - Pragma: - - no-cache - RequestId: - - 0aee473b-37f3-4a19-b35c-daffbba2b775 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bd075225-c682-4dc1-b648-40d016a27cce/items - response: - body: - string: '{"value": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '32' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:30:09 GMT - Pragma: - - no-cache - RequestId: - - 9dcf15e2-1c0d-4f5f-a46f-081d3c4ab2c5 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/bd075225-c682-4dc1-b648-40d016a27cce - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Wed, 03 Sep 2025 08:30:09 GMT - Pragma: - - no-cache - RequestId: - - d22fdb05-92b8-4f97-87a1-c6045421960f - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_domain_item_not_supported_failure.yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_domain_item_not_supported_failure.yaml deleted file mode 100644 index cb24c05b..00000000 --- a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_domain_item_not_supported_failure.yaml +++ /dev/null @@ -1,705 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '360' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:46 GMT - Pragma: - - no-cache - RequestId: - - 7c05b4cb-19c7-4836-9d5d-baa6c893da4f - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items - response: - body: - string: '{"value": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '32' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:46 GMT - Pragma: - - no-cache - RequestId: - - dbe6ef8d-b7c5-40b8-a9a2-722e4111d991 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items - response: - body: - string: '{"value": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '32' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:47 GMT - Pragma: - - no-cache - RequestId: - - a723fc72-997b-4054-9d8c-0a34d9247531 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": - "Lakehouse", "folderId": null}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '107' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/lakehouses - response: - body: - string: '{"id": "444abd32-aaad-4f89-9eca-3380eeee97ff", "type": "Lakehouse", - "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}' - headers: - Access-Control-Expose-Headers: - - RequestId,ETag - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '168' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:51 GMT - ETag: - - '""' - Pragma: - - no-cache - RequestId: - - c3b70eed-efa3-4710-a8fa-da7c848db667 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"domains": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '825' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:50 GMT - Pragma: - - no-cache - RequestId: - - 63eb02d3-8856-4a81-bc67-8296572a0cb3 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"displayName": "fabcli000002"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: POST - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"contributorsScope": "AllTenant", "id": "efe7d4c2-05d5-41c4-9494-c47966bb85d8", - "displayName": "fabcli000002", "description": ""}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '132' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:51 GMT - Location: - - https://api.fabric.microsoft.com/v1/admin/domains/efe7d4c2-05d5-41c4-9494-c47966bb85d8 - Pragma: - - no-cache - RequestId: - - 7bd6bb2f-c59a-4700-8769-52872c85c1b3 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "efe7d4c2-05d5-41c4-9494-c47966bb85d8", - "displayName": "fabcli000002", "description": ""}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '858' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:51 GMT - Pragma: - - no-cache - RequestId: - - 7064a599-8bac-4e36-93c0-04345aa8a279 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '360' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:52 GMT - Pragma: - - no-cache - RequestId: - - c54a44dd-12e6-4806-a085-053edb559bd7 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items - response: - body: - string: '{"value": [{"id": "444abd32-aaad-4f89-9eca-3380eeee97ff", "type": "Lakehouse", - "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '178' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:52 GMT - Pragma: - - no-cache - RequestId: - - 9a887693-8850-48e4-af8b-1c021e854f89 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "efe7d4c2-05d5-41c4-9494-c47966bb85d8", - "displayName": "fabcli000002", "description": ""}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '858' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:52 GMT - Pragma: - - no-cache - RequestId: - - 9386cb24-1b61-4232-81b6-17a2ff318c17 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: DELETE - uri: https://api.fabric.microsoft.com/v1/admin/domains/efe7d4c2-05d5-41c4-9494-c47966bb85d8 - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Wed, 03 Sep 2025 08:31:52 GMT - Pragma: - - no-cache - RequestId: - - 996bbea9-9e9a-4238-80da-39813f0b3de0 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '360' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:52 GMT - Pragma: - - no-cache - RequestId: - - 601a554a-62c3-45e4-9479-d8f674c4d636 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items - response: - body: - string: '{"value": [{"id": "444abd32-aaad-4f89-9eca-3380eeee97ff", "type": "Lakehouse", - "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '178' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 03 Sep 2025 08:31:52 GMT - Pragma: - - no-cache - RequestId: - - 140dac05-ec69-4e9a-9327-027a7673d9b1 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.0.0 - method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items/444abd32-aaad-4f89-9eca-3380eeee97ff - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Wed, 03 Sep 2025 08:31:52 GMT - Pragma: - - no-cache - RequestId: - - fa293bf9-ba03-4998-b9d1-730c3b44e7e1 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml index c9f4a1de..69f3ae50 100644 --- a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml @@ -17,7 +17,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "My workspace", "description": "", "type": "Personal"}, {"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -28,15 +28,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2306' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:43 GMT + - Mon, 23 Feb 2026 09:35:48 GMT Pragma: - no-cache RequestId: - - 75695ac1-ba92-481c-b5de-71856bbc98f3 + - 3097f2f6-c2f0-4d19-8c0d-3ae5f8172f03 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -64,7 +64,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: string: '{"value": []}' @@ -80,11 +80,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:44 GMT + - Mon, 23 Feb 2026 09:35:49 GMT Pragma: - no-cache RequestId: - - 36fa9dd8-34c0-4afc-b156-e46431be354e + - 1bc4d96e-f7ed-45b0-9feb-988ad0b7de5e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -112,7 +112,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: string: '{"value": []}' @@ -128,11 +128,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:45 GMT + - Mon, 23 Feb 2026 09:35:49 GMT Pragma: - no-cache RequestId: - - 8d21bb21-7993-48ec-82f1-5a4efcecc49e + - 2b483b28-8cae-4323-b635-0c69141b3b92 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -163,12 +163,12 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/lakehouses + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/lakehouses response: body: - string: '{"id": "83e56226-2e51-476e-be73-311b41417b0b", "type": "Lakehouse", + string: '{"id": "8800a11e-7ed5-436e-b4ae-9bfcf8ca88a9", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "823c0f6d-1c74-4cfb-a257-65316729b9b5"}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}' headers: Access-Control-Expose-Headers: - RequestId,ETag @@ -177,17 +177,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '168' + - '167' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:50 GMT + - Mon, 23 Feb 2026 09:35:54 GMT ETag: - '""' Pragma: - no-cache RequestId: - - 12b6360f-2334-4b28-8cc2-39be18b2cc95 + - f24e20f4-f9c2-496c-bc7d-eb0980739f92 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -219,7 +219,7 @@ interactions: response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -229,15 +229,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '424' + - '427' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:56 GMT + - Mon, 23 Feb 2026 09:36:01 GMT Pragma: - no-cache RequestId: - - c13b76c8-c261-4fe6-b39c-10f27b43262c + - 9cc69e93-4acf-4acb-bd6a-a96ae4872f29 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -269,7 +269,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "My workspace", "description": "", "type": "Personal"}, {"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -280,15 +280,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2306' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:57 GMT + - Mon, 23 Feb 2026 09:36:02 GMT Pragma: - no-cache RequestId: - - d3583c9a-096a-4853-9b2b-557bb5085524 + - 8c9714f2-f264-48fb-a9b2-aaa2446ec307 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -316,12 +316,12 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: - string: '{"value": [{"id": "83e56226-2e51-476e-be73-311b41417b0b", "type": "Lakehouse", + string: '{"value": [{"id": "8800a11e-7ed5-436e-b4ae-9bfcf8ca88a9", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "823c0f6d-1c74-4cfb-a257-65316729b9b5"}]}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -330,15 +330,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '179' + - '178' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:58 GMT + - Mon, 23 Feb 2026 09:36:04 GMT Pragma: - no-cache RequestId: - - 67f1a603-c560-4f97-a0fc-63840f6c110c + - bd5b0eb8-2ab2-49b4-911f-43b26ce0ab39 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -370,7 +370,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "My workspace", "description": "", "type": "Personal"}, {"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -381,15 +381,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2306' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:27:59 GMT + - Mon, 23 Feb 2026 09:36:04 GMT Pragma: - no-cache RequestId: - - fb21161e-6abc-446c-add2-9f0e7844d381 + - 8acda09b-95c6-4aa9-900e-360dc9daf1ee Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -417,12 +417,12 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: - string: '{"value": [{"id": "83e56226-2e51-476e-be73-311b41417b0b", "type": "Lakehouse", + string: '{"value": [{"id": "8800a11e-7ed5-436e-b4ae-9bfcf8ca88a9", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "823c0f6d-1c74-4cfb-a257-65316729b9b5"}]}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -431,15 +431,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '179' + - '178' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:00 GMT + - Mon, 23 Feb 2026 09:36:05 GMT Pragma: - no-cache RequestId: - - 5ddffb2e-8bc6-443b-bbca-e3dd463dafd2 + - 46984383-027c-4396-962e-14dd74a17548 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -469,7 +469,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items/83e56226-2e51-476e-be73-311b41417b0b + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items/8800a11e-7ed5-436e-b4ae-9bfcf8ca88a9 response: body: string: '' @@ -485,11 +485,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Thu, 29 Jan 2026 10:28:00 GMT + - Mon, 23 Feb 2026 09:36:06 GMT Pragma: - no-cache RequestId: - - 5c552bff-d4b8-497f-b27b-51146f82592b + - 67f10f98-39a5-4398-a850-f6f23545a5eb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-None].yaml similarity index 84% rename from tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml rename to tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-None].yaml index 75ef8561..9ce05bed 100644 --- a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-{}.full_path].yaml +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-None].yaml @@ -17,7 +17,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "My workspace", "description": "", "type": "Personal"}, {"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -28,15 +28,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2306' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:01 GMT + - Mon, 23 Feb 2026 09:36:07 GMT Pragma: - no-cache RequestId: - - 4aa577cb-2502-4f1e-b51b-fd97728098e3 + - cf939b00-4f4d-49d5-b48c-88107e96286e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -64,7 +64,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: string: '{"value": []}' @@ -80,11 +80,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:02 GMT + - Mon, 23 Feb 2026 09:36:08 GMT Pragma: - no-cache RequestId: - - 39d11396-f260-4d1d-934a-38334f127e66 + - 5eea69c6-6890-409d-85e9-b3f834b76502 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -112,7 +112,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: string: '{"value": []}' @@ -128,11 +128,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:04 GMT + - Mon, 23 Feb 2026 09:36:09 GMT Pragma: - no-cache RequestId: - - 3f76a0e3-dddb-4595-997b-99de1cb91545 + - 27f68fa4-fc35-4616-bde2-0528b73e8cdb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -163,12 +163,12 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/lakehouses + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/lakehouses response: body: - string: '{"id": "ad82f620-8f57-49ab-b183-0f2a59f42f22", "type": "Lakehouse", + string: '{"id": "6cdb3188-35d5-4c4c-8a5d-c8d84b532f6d", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "823c0f6d-1c74-4cfb-a257-65316729b9b5"}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}' headers: Access-Control-Expose-Headers: - RequestId,ETag @@ -177,17 +177,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '168' + - '166' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:07 GMT + - Mon, 23 Feb 2026 09:36:12 GMT ETag: - '""' Pragma: - no-cache RequestId: - - aeed4bac-2cae-4b46-9a3b-cb893e994bd4 + - b224e630-cb0b-4e2d-9ef5-a97af6cd4951 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -231,11 +231,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:08 GMT + - Mon, 23 Feb 2026 09:36:12 GMT Pragma: - no-cache RequestId: - - 43c2598b-c3fb-4a32-8c94-57cd61f300bf + - 738901e9-a214-42ec-85c8-a4e97da5cb29 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -268,7 +268,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/admin/domains response: body: - string: '{"contributorsScope": "AllTenant", "id": "bb146ef2-f436-469b-b816-7d3aaca93f9f", + string: '{"contributorsScope": "AllTenant", "id": "21f38254-f457-4b1a-95ef-33052c899e46", "displayName": "fabcli000002", "description": ""}' headers: Access-Control-Expose-Headers: @@ -278,17 +278,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '132' + - '134' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:08 GMT + - Mon, 23 Feb 2026 09:36:14 GMT Location: - - https://api.fabric.microsoft.com/v1/admin/domains/bb146ef2-f436-469b-b816-7d3aaca93f9f + - https://api.fabric.microsoft.com/v1/admin/domains/21f38254-f457-4b1a-95ef-33052c899e46 Pragma: - no-cache RequestId: - - 5664bc73-82ee-4b51-9c87-679167892500 + - 6c145ace-fc2d-4645-866a-bed2599f1c53 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -319,7 +319,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/admin/domains response: body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "bb146ef2-f436-469b-b816-7d3aaca93f9f", + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "21f38254-f457-4b1a-95ef-33052c899e46", "displayName": "fabcli000002", "description": ""}]}' headers: Access-Control-Expose-Headers: @@ -329,15 +329,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '226' + - '227' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:09 GMT + - Mon, 23 Feb 2026 09:36:15 GMT Pragma: - no-cache RequestId: - - fa377194-0bf7-4dda-977d-8eb1235820e6 + - 74d98997-72ab-48ac-9779-f8a5188b1959 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -369,7 +369,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "My workspace", "description": "", "type": "Personal"}, {"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -380,15 +380,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2306' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:10 GMT + - Mon, 23 Feb 2026 09:36:15 GMT Pragma: - no-cache RequestId: - - 6f7af6b6-a2de-42fc-8042-778b7429ec27 + - 6786a24b-47e6-4c9b-b997-59c33b963a55 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -416,12 +416,12 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: - string: '{"value": [{"id": "ad82f620-8f57-49ab-b183-0f2a59f42f22", "type": "Lakehouse", + string: '{"value": [{"id": "6cdb3188-35d5-4c4c-8a5d-c8d84b532f6d", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "823c0f6d-1c74-4cfb-a257-65316729b9b5"}]}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -430,15 +430,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '179' + - '180' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:11 GMT + - Mon, 23 Feb 2026 09:36:16 GMT Pragma: - no-cache RequestId: - - b99a59ce-74d2-4e3b-b214-d0f8bf8bce59 + - 7f4e2c84-ad45-4869-bfec-27ee7a7b36d8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -469,7 +469,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/admin/domains response: body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "bb146ef2-f436-469b-b816-7d3aaca93f9f", + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "21f38254-f457-4b1a-95ef-33052c899e46", "displayName": "fabcli000002", "description": ""}]}' headers: Access-Control-Expose-Headers: @@ -479,15 +479,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '226' + - '227' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:11 GMT + - Mon, 23 Feb 2026 09:36:17 GMT Pragma: - no-cache RequestId: - - 05206571-0c39-4bd8-aadf-d4722cd6b21c + - ae97066c-6ee8-4254-a2f2-453b24c71ccb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -517,7 +517,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/admin/domains/bb146ef2-f436-469b-b816-7d3aaca93f9f + uri: https://api.fabric.microsoft.com/v1/admin/domains/21f38254-f457-4b1a-95ef-33052c899e46 response: body: string: '' @@ -533,11 +533,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Thu, 29 Jan 2026 10:28:13 GMT + - Mon, 23 Feb 2026 09:36:18 GMT Pragma: - no-cache RequestId: - - 59c5cc29-fab5-4183-890a-7e696506212d + - e45ba775-731f-4302-bb45-1000cfd0153f Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -569,7 +569,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "823c0f6d-1c74-4cfb-a257-65316729b9b5", + "My workspace", "description": "", "type": "Personal"}, {"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -580,15 +580,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2306' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:14 GMT + - Mon, 23 Feb 2026 09:36:19 GMT Pragma: - no-cache RequestId: - - c2785fd0-ef89-40b5-a8e2-25649119e694 + - 14e04396-ba4a-4303-a82e-4f1c711fc926 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -616,12 +616,12 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: - string: '{"value": [{"id": "ad82f620-8f57-49ab-b183-0f2a59f42f22", "type": "Lakehouse", + string: '{"value": [{"id": "6cdb3188-35d5-4c4c-8a5d-c8d84b532f6d", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "823c0f6d-1c74-4cfb-a257-65316729b9b5"}]}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -630,15 +630,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '179' + - '180' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:14 GMT + - Mon, 23 Feb 2026 09:36:20 GMT Pragma: - no-cache RequestId: - - ab033cba-3c0c-4f9f-a201-92e79c73b0ac + - 1cdc644a-f3c5-4732-8392-341c49e5dd3e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -668,7 +668,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/823c0f6d-1c74-4cfb-a257-65316729b9b5/items/ad82f620-8f57-49ab-b183-0f2a59f42f22 + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items/6cdb3188-35d5-4c4c-8a5d-c8d84b532f6d response: body: string: '' @@ -684,11 +684,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Thu, 29 Jan 2026 10:28:15 GMT + - Mon, 23 Feb 2026 09:36:21 GMT Pragma: - no-cache RequestId: - - 176afab0-ba1f-4d06-ad30-aec112b36e36 + - 66f18fea-9761-44e8-a640-0399aa4f7ee8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml index a3c5361f..fca4f622 100644 --- a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml @@ -26,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2271' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:29 GMT + - Mon, 23 Feb 2026 09:36:54 GMT Pragma: - no-cache RequestId: - - 8eb9ac4c-52b6-44a0-9482-2580db60d427 + - 247eba95-1955-4034-a509-56a8477b3946 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -75,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2271' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:30 GMT + - Mon, 23 Feb 2026 09:36:54 GMT Pragma: - no-cache RequestId: - - c7a9e133-344a-4e6c-962c-dd6876dcc1a5 + - 67b49009-bacb-42e8-b89d-f038d2ff4bc6 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -115,7 +115,7 @@ interactions: response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -125,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '425' + - '424' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:35 GMT + - Mon, 23 Feb 2026 09:36:58 GMT Pragma: - no-cache RequestId: - - a799c379-b9c6-4039-8051-ca085e4b2150 + - 96983656-c9d8-4bbc-a555-39651297920a Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -167,7 +167,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", "displayName": "fabcli000001", + string: '{"id": "44d62a3c-0473-4173-89eb-0c39751f13cb", "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' headers: Access-Control-Expose-Headers: @@ -177,17 +177,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '167' + - '168' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:43 GMT + - Mon, 23 Feb 2026 09:37:08 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379 + - https://api.fabric.microsoft.com/v1/workspaces/44d62a3c-0473-4173-89eb-0c39751f13cb Pragma: - no-cache RequestId: - - 90a7fd07-39ae-44a8-93a6-ecd213089dbf + - c9a128fd-ca82-43e9-8ded-173ee72cdb94 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -219,7 +219,7 @@ interactions: response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -233,11 +233,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:50 GMT + - Mon, 23 Feb 2026 09:37:13 GMT Pragma: - no-cache RequestId: - - d5b89311-0931-49d3-9b6b-bdd4f8378cc2 + - de0cfb4e-2543-494e-9aa4-56245888d89d Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -269,7 +269,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", + "My workspace", "description": "", "type": "Personal"}, {"id": "44d62a3c-0473-4173-89eb-0c39751f13cb", "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -280,15 +280,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2309' + - '3112' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:50 GMT + - Mon, 23 Feb 2026 09:37:15 GMT Pragma: - no-cache RequestId: - - 3741d832-0339-45e6-afe0-e8409b0032ab + - e8e5e598-e24a-4200-b3e8-d242ebb8797e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -316,10 +316,10 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379 + uri: https://api.fabric.microsoft.com/v1/workspaces/44d62a3c-0473-4173-89eb-0c39751f13cb response: body: - string: '{"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", "displayName": "fabcli000001", + string: '{"id": "44d62a3c-0473-4173-89eb-0c39751f13cb", "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": @@ -332,15 +332,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '275' + - '277' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:51 GMT + - Mon, 23 Feb 2026 09:37:14 GMT Pragma: - no-cache RequestId: - - eaa22b9b-d20e-4888-83e0-c0895407a3ef + - 97a55925-73f2-4dd1-976e-279c294fc9bb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -370,7 +370,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379/unassignFromCapacity + uri: https://api.fabric.microsoft.com/v1/workspaces/44d62a3c-0473-4173-89eb-0c39751f13cb/unassignFromCapacity response: body: string: '' @@ -386,11 +386,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Thu, 29 Jan 2026 10:28:53 GMT + - Mon, 23 Feb 2026 09:37:17 GMT Pragma: - no-cache RequestId: - - 63e882e9-6e93-4877-8871-b0238b5c60fc + - 7de540cc-6cf1-47e0-aec8-bc4d70dd6923 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -422,7 +422,7 @@ interactions: response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -432,15 +432,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '424' + - '425' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:58 GMT + - Mon, 23 Feb 2026 09:37:21 GMT Pragma: - no-cache RequestId: - - a6ffe7b8-5d21-48be-bbec-58efba9f5280 + - 9cc0fa6a-ea42-468a-bce0-faee95487bb7 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -472,7 +472,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", + "My workspace", "description": "", "type": "Personal"}, {"id": "44d62a3c-0473-4173-89eb-0c39751f13cb", "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' headers: Access-Control-Expose-Headers: @@ -482,15 +482,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2310' + - '3114' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:59 GMT + - Mon, 23 Feb 2026 09:37:23 GMT Pragma: - no-cache RequestId: - - 69c1e599-1d7f-4c99-a6bf-d4c2b5be37df + - 46969552-269d-4314-b8df-bbf5a07a027b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -518,10 +518,10 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379 + uri: https://api.fabric.microsoft.com/v1/workspaces/44d62a3c-0473-4173-89eb-0c39751f13cb response: body: - string: '{"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", "displayName": "fabcli000001", + string: '{"id": "44d62a3c-0473-4173-89eb-0c39751f13cb", "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", "capacityAssignmentProgress": "Completed"}' headers: @@ -532,15 +532,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '159' + - '160' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:28:59 GMT + - Mon, 23 Feb 2026 09:37:23 GMT Pragma: - no-cache RequestId: - - 21f1f15f-0572-4c5c-aeda-ac8310ac197d + - fc1e454c-b1e7-4684-9873-064cb0a54330 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -572,7 +572,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a20808e6-b8f3-4c43-9ce2-bff70d4b4379", + "My workspace", "description": "", "type": "Personal"}, {"id": "44d62a3c-0473-4173-89eb-0c39751f13cb", "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' headers: Access-Control-Expose-Headers: @@ -582,15 +582,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2310' + - '3114' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:29:00 GMT + - Mon, 23 Feb 2026 09:37:24 GMT Pragma: - no-cache RequestId: - - 8ed7f4d0-9798-4cc8-94dd-16c543327209 + - da559a11-7d46-4071-80f4-eb8939e2357c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -618,7 +618,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379/items + uri: https://api.fabric.microsoft.com/v1/workspaces/44d62a3c-0473-4173-89eb-0c39751f13cb/items response: body: string: '{"value": []}' @@ -634,11 +634,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 10:29:01 GMT + - Mon, 23 Feb 2026 09:37:25 GMT Pragma: - no-cache RequestId: - - be29a5a2-6c89-40ac-9d06-e604b3336de0 + - d9ccf2ab-6d83-4178-b108-92a16ce7b883 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -668,7 +668,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/a20808e6-b8f3-4c43-9ce2-bff70d4b4379 + uri: https://api.fabric.microsoft.com/v1/workspaces/44d62a3c-0473-4173-89eb-0c39751f13cb response: body: string: '' @@ -684,11 +684,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Thu, 29 Jan 2026 10:29:02 GMT + - Mon, 23 Feb 2026 09:37:26 GMT Pragma: - no-cache RequestId: - - 8bc3cc48-51ed-4bf5-8456-e608e3a8d8a4 + - d50e2d38-1c8b-4d01-84a8-85ab8f7e10c5 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_domain_workspace_not_assigned_failure.yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.domains-virtual_workspace_item_factory-None].yaml similarity index 71% rename from tests/test_commands/recordings/test_commands/test_unassign/test_unassign_domain_workspace_not_assigned_failure.yaml rename to tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.domains-virtual_workspace_item_factory-None].yaml index d3c43336..a569aa5b 100644 --- a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_domain_workspace_not_assigned_failure.yaml +++ b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.domains-virtual_workspace_item_factory-None].yaml @@ -11,15 +11,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -28,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '360' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:34 GMT + - Mon, 23 Feb 2026 09:37:27 GMT Pragma: - no-cache RequestId: - - f7962c41-3534-47bf-8d66-a311d2ae1688 + - 2fdac484-430f-4bd0-acd2-84da83fc02e8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -44,7 +42,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -62,15 +60,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -79,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '360' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:34 GMT + - Mon, 23 Feb 2026 09:37:28 GMT Pragma: - no-cache RequestId: - - a8631099-0cf6-4cc0-9651-37f96931ce74 + - f2ccb73e-2fcb-4907-9c5b-8053c7100e6e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -95,7 +91,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -113,13 +109,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/capacities response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F16", "region": "West Europe", "state": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -129,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '456' + - '424' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:38 GMT + - Mon, 23 Feb 2026 09:37:33 GMT Pragma: - no-cache RequestId: - - cb255787-1386-4a58-89ea-15a0d69c03e5 + - 7f039f72-09c2-4ec1-bd9d-44c9a2005faf Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -145,7 +141,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -166,12 +162,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: POST uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "006ad43b-475d-41de-9e2b-708e65714bd4", "displayName": "fabcli000001", + string: '{"id": "400b8027-ae39-415f-82d2-9627e355f5df", "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' headers: Access-Control-Expose-Headers: @@ -185,13 +181,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:44 GMT + - Mon, 23 Feb 2026 09:37:40 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/006ad43b-475d-41de-9e2b-708e65714bd4 + - https://api.fabric.microsoft.com/v1/workspaces/400b8027-ae39-415f-82d2-9627e355f5df Pragma: - no-cache RequestId: - - 1f07cee3-27b7-4861-beb4-3ea4c6a9b4cc + - 246b850e-c25f-4816-82f8-bd5c04367745 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -199,7 +195,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -217,7 +213,7 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/admin/domains response: @@ -231,15 +227,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '825' + - '185' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:44 GMT + - Mon, 23 Feb 2026 09:37:40 GMT Pragma: - no-cache RequestId: - - 4adecf9c-a7a1-4ba6-b044-587e2f89f1c0 + - b8d217e5-92d0-449b-9fd9-9c507ec97d27 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -247,7 +243,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -267,12 +263,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: POST uri: https://api.fabric.microsoft.com/v1/admin/domains response: body: - string: '{"contributorsScope": "AllTenant", "id": "181eaf4d-f149-4993-aa85-77a4515fdb0e", + string: '{"contributorsScope": "AllTenant", "id": "7314c974-289b-48e8-8280-7ad3a2f90a92", "displayName": "fabcli000002", "description": ""}' headers: Access-Control-Expose-Headers: @@ -282,17 +278,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '133' + - '132' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:45 GMT + - Mon, 23 Feb 2026 09:37:41 GMT Location: - - https://api.fabric.microsoft.com/v1/admin/domains/181eaf4d-f149-4993-aa85-77a4515fdb0e + - https://api.fabric.microsoft.com/v1/admin/domains/7314c974-289b-48e8-8280-7ad3a2f90a92 Pragma: - no-cache RequestId: - - a15235ee-cec0-43a4-82fc-1ac70f82f06f + - 870dabe8-5965-42e0-bd1b-8df46a857627 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -300,7 +296,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -318,12 +314,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/admin/domains response: body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "181eaf4d-f149-4993-aa85-77a4515fdb0e", + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "7314c974-289b-48e8-8280-7ad3a2f90a92", "displayName": "fabcli000002", "description": ""}]}' headers: Access-Control-Expose-Headers: @@ -333,15 +329,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '862' + - '226' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:45 GMT + - Mon, 23 Feb 2026 09:37:42 GMT Pragma: - no-cache RequestId: - - 07a19d5c-0c86-4c37-b0aa-2d7c5112ce57 + - 8af16454-af8d-44a0-82a6-6b4d955e700c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -349,7 +345,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -367,17 +363,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, - {"id": "006ad43b-475d-41de-9e2b-708e65714bd4", "displayName": "fabcli000001", - "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "400b8027-ae39-415f-82d2-9627e355f5df", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", + "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -386,15 +380,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '398' + - '3108' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:45 GMT + - Mon, 23 Feb 2026 09:37:43 GMT Pragma: - no-cache RequestId: - - be5e418e-0a38-4941-91f1-dd88fbb678fe + - 7f1f6aaa-8605-4af2-942b-c06aae757319 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -402,7 +396,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -420,9 +414,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains/181eaf4d-f149-4993-aa85-77a4515fdb0e/workspaces + uri: https://api.fabric.microsoft.com/v1/admin/domains/7314c974-289b-48e8-8280-7ad3a2f90a92/workspaces response: body: string: '{"value": []}' @@ -438,11 +432,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:44 GMT + - Mon, 23 Feb 2026 09:37:44 GMT Pragma: - no-cache RequestId: - - 3780e659-719b-4d28-aaeb-1bd552a17e4c + - e1d0106c-7f7a-40d7-a21d-95416b4ce4c2 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -450,7 +444,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -468,12 +462,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/admin/domains response: body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "181eaf4d-f149-4993-aa85-77a4515fdb0e", + string: '{"domains": [{"contributorsScope": "AllTenant", "id": "7314c974-289b-48e8-8280-7ad3a2f90a92", "displayName": "fabcli000002", "description": ""}]}' headers: Access-Control-Expose-Headers: @@ -483,15 +477,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '862' + - '226' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:44 GMT + - Mon, 23 Feb 2026 09:37:44 GMT Pragma: - no-cache RequestId: - - 1bbc7786-1c54-4ef4-a08d-4b046a17f77f + - 77bb46d9-3b6a-46ea-8825-1e0c1dc8df04 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -499,7 +493,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -519,9 +513,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/admin/domains/181eaf4d-f149-4993-aa85-77a4515fdb0e + uri: https://api.fabric.microsoft.com/v1/admin/domains/7314c974-289b-48e8-8280-7ad3a2f90a92 response: body: string: '' @@ -537,11 +531,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 03 Sep 2025 08:31:45 GMT + - Mon, 23 Feb 2026 09:37:46 GMT Pragma: - no-cache RequestId: - - cd35e5bb-ed28-458a-b351-3d022667f997 + - 552ad340-0fc3-44fb-8071-bbf75ad9a65a Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -549,7 +543,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -567,17 +561,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, - {"id": "006ad43b-475d-41de-9e2b-708e65714bd4", "displayName": "fabcli000001", - "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "400b8027-ae39-415f-82d2-9627e355f5df", + "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", + "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -586,15 +578,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '398' + - '3108' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:45 GMT + - Mon, 23 Feb 2026 09:37:46 GMT Pragma: - no-cache RequestId: - - 26cf329a-7436-461c-8f19-6475e6ee2ffc + - bc830621-6ca0-48f6-a194-c3ab43f4706a Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -602,7 +594,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -620,9 +612,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/006ad43b-475d-41de-9e2b-708e65714bd4/items + uri: https://api.fabric.microsoft.com/v1/workspaces/400b8027-ae39-415f-82d2-9627e355f5df/items response: body: string: '{"value": []}' @@ -638,11 +630,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:45 GMT + - Mon, 23 Feb 2026 09:37:47 GMT Pragma: - no-cache RequestId: - - 11b47080-b99b-4ac5-9d84-996be3ff84f5 + - ace26c25-f1cb-4df3-adcc-51ec2d3b638f Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -650,7 +642,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -670,9 +662,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.0.0 + - ms-fabric-cli-test/1.3.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/006ad43b-475d-41de-9e2b-708e65714bd4 + uri: https://api.fabric.microsoft.com/v1/workspaces/400b8027-ae39-415f-82d2-9627e355f5df response: body: string: '' @@ -688,11 +680,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 03 Sep 2025 08:31:46 GMT + - Mon, 23 Feb 2026 09:37:48 GMT Pragma: - no-cache RequestId: - - d27c4875-b80b-4784-ad39-8b758d5a4846 + - cccc3c60-7ebe-4349-b763-01116f348160 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -700,7 +692,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.capacities-test_data-/.capacities/{}.Capacity-id].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.capacities-test_data-/.capacities/{}.Capacity-id].yaml deleted file mode 100644 index da52885f..00000000 --- a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.capacities-test_data-/.capacities/{}.Capacity-id].yaml +++ /dev/null @@ -1,802 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2271' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:29 GMT - Pragma: - - no-cache - RequestId: - - b1d5dfb0-d774-4eb4-b1d3-60453aaffce1 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2271' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:30 GMT - Pragma: - - no-cache - RequestId: - - b2556c47-d946-4c5e-bb5f-a0414aba5f92 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/capacities - response: - body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": - "Active"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '425' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:35 GMT - Pragma: - - no-cache - RequestId: - - 7efca30b-0fa3-49ee-a47b-b9cedb5b26f4 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"description": "Created by fab", "displayName": "fabcli000001", "capacityId": - "00000000-0000-0000-0000-000000000004"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '122' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", "displayName": "fabcli000001", - "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '167' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:44 GMT - Location: - - https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0 - Pragma: - - no-cache - RequestId: - - 6a9fbdf4-4cc6-4cc0-be95-5d99033d13fa - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/capacities - response: - body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": - "Active"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '425' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:50 GMT - Pragma: - - no-cache - RequestId: - - 1db56439-c097-4332-ba9d-da911f0267f3 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", - "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", - "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2312' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:51 GMT - Pragma: - - no-cache - RequestId: - - a0405367-7111-4625-a4d0-c5793fb58a63 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0 - response: - body: - string: '{"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", "displayName": "fabcli000001", - "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", - "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", - "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": - "Completed"}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '276' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:52 GMT - Pragma: - - no-cache - RequestId: - - fa122b8c-fc6a-4e21-813a-17203a2a0ff6 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/unassignFromCapacity - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Thu, 29 Jan 2026 10:29:54 GMT - Pragma: - - no-cache - RequestId: - - b9f97909-cc36-4dfe-a331-ac820fccd467 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", - "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2314' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:55 GMT - Pragma: - - no-cache - RequestId: - - c58dd375-c5cb-4719-be6f-f61bbc1692df - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0 - response: - body: - string: '{"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", "displayName": "fabcli000001", - "description": "Created by fab", "type": "Workspace", "capacityAssignmentProgress": - "Completed"}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '159' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:56 GMT - Pragma: - - no-cache - RequestId: - - b25059db-76a4-4cd7-9b35-788133860481 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/managedPrivateEndpoints - response: - body: - string: '{"requestId": "26716624-ff41-4eed-910b-1f31c41b82ab", "errorCode": - "UnsupportedSku", "message": "Managed private endpoint is not supported for - this capacity sku."}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:56 GMT - Pragma: - - no-cache - RequestId: - - 26716624-ff41-4eed-910b-1f31c41b82ab - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - x-ms-public-api-error-code: - - UnsupportedSku - status: - code: 400 - message: Bad Request -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/spark/settings - response: - body: - string: '{"requestId": "1586e989-fa1e-42d2-8f66-d6bc6986fc5b", "errorCode": - "WorkspaceHasNoCapacityAssigned", "message": "A workspace with a capacity - assigned is required for the operation"}' - headers: - Access-Control-Expose-Headers: - - RequestId - Content-Length: - - '176' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:57 GMT - RequestId: - - 1586e989-fa1e-42d2-8f66-d6bc6986fc5b - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - x-ms-public-api-error-code: - - WorkspaceHasNoCapacityAssigned - status: - code: 400 - message: Bad Request -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/roleAssignments - response: - body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000001", "principal": - {"id": "00000000-0000-0000-0000-000000000001", "displayName": "MSIT Cycle", - "type": "User", "userDetails": {"userPrincipalName": "mocked@admin_test_user"}}, - "role": "Admin"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '186' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:29:58 GMT - Pragma: - - no-cache - RequestId: - - b985ff54-bfa7-4a1d-a8a0-e644cf416bb0 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a9f63e99-6e41-4ac2-9905-3822a373ddc0", - "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2314' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:00 GMT - Pragma: - - no-cache - RequestId: - - dc17cd8f-fd20-41f8-877f-1169f0a46bd2 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0/items - response: - body: - string: '{"value": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '32' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:01 GMT - Pragma: - - no-cache - RequestId: - - 9e69b7aa-69fd-44f0-a06c-6f284a1f6b80 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/a9f63e99-6e41-4ac2-9905-3822a373ddc0 - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Thu, 29 Jan 2026 10:30:02 GMT - Pragma: - - no-cache - RequestId: - - db20b7fa-2f62-4eb2-b1d0-2a7627e1574b - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.domains-virtual_workspace_item_factory-{}.full_path-display_name].yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.domains-virtual_workspace_item_factory-{}.full_path-display_name].yaml deleted file mode 100644 index 3a7ab303..00000000 --- a/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_success[.domains-virtual_workspace_item_factory-{}.full_path-display_name].yaml +++ /dev/null @@ -1,1048 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2271' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:02 GMT - Pragma: - - no-cache - RequestId: - - 79ddc3d1-d060-46fe-a36d-ceab55021a81 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2271' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:04 GMT - Pragma: - - no-cache - RequestId: - - 86505a37-f8ed-45b6-a4a5-60897f9641c3 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/capacities - response: - body: - string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": - "Active"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '424' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:09 GMT - Pragma: - - no-cache - RequestId: - - a0babcd8-97d2-4365-924b-4332bbdd68fa - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"description": "Created by fab", "displayName": "fabcli000001", "capacityId": - "00000000-0000-0000-0000-000000000004"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '122' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", "displayName": "fabcli000001", - "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '164' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:28 GMT - Location: - - https://api.fabric.microsoft.com/v1/workspaces/230188b8-54dc-4890-8fb9-ddfdbfef864b - Pragma: - - no-cache - RequestId: - - f9b0ec17-96c1-4253-bbe7-2c5af23c0b92 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"domains": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '185' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:29 GMT - Pragma: - - no-cache - RequestId: - - 739e68ba-3f78-4110-a434-190d8d59d0d3 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"displayName": "fabcli000002"}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '35' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: POST - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", - "displayName": "fabcli000002", "description": ""}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '134' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:29 GMT - Location: - - https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019 - Pragma: - - no-cache - RequestId: - - b1e14c6a-4cd2-45c6-b46d-71ca8feeaf6b - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", - "displayName": "fabcli000002", "description": ""}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '227' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:30 GMT - Pragma: - - no-cache - RequestId: - - a35ee68f-5835-4535-9eb3-75328c5b1198 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", - "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", - "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2314' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:31 GMT - Pragma: - - no-cache - RequestId: - - 79036d1f-cae4-4eb8-b77f-5f44c1ec8c79 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"workspacesIds": ["230188b8-54dc-4890-8fb9-ddfdbfef864b"]}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '59' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: POST - uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019/assignWorkspaces - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Thu, 29 Jan 2026 10:30:32 GMT - Pragma: - - no-cache - RequestId: - - 1dce42c6-df20-40ee-9cec-1c759b563a0b - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", - "displayName": "fabcli000002", "description": ""}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '227' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:33 GMT - Pragma: - - no-cache - RequestId: - - fd3ab790-8bab-41cb-adcf-486e3ab0db52 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", - "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", - "capacityId": "00000000-0000-0000-0000-000000000004", "domainId": "b750fa29-33e1-47d0-87ad-90c6c5950019"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2345' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:34 GMT - Pragma: - - no-cache - RequestId: - - 9550ac5d-292e-4445-a884-091512afbef0 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019/workspaces - response: - body: - string: '{"value": [{"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", "displayName": - "fabcli000001"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '106' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:34 GMT - Pragma: - - no-cache - RequestId: - - aa46b9d7-da4a-49d3-9f85-3a60b26733de - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"workspacesIds": ["230188b8-54dc-4890-8fb9-ddfdbfef864b"]}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '59' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: POST - uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019/unassignWorkspaces - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Thu, 29 Jan 2026 10:30:36 GMT - Pragma: - - no-cache - RequestId: - - 82a78651-c928-4578-ae97-d1a3e69b0266 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", - "displayName": "fabcli000002", "description": ""}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '227' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:36 GMT - Pragma: - - no-cache - RequestId: - - f252b2c1-4628-4a47-91dc-897481e7a8dc - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019 - response: - body: - string: '{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", - "displayName": "fabcli000002", "description": ""}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '134' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:36 GMT - Pragma: - - no-cache - RequestId: - - 28fc90f6-3427-4fd8-b764-10903fbd930f - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019/workspaces - response: - body: - string: '{"value": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '32' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:37 GMT - Pragma: - - no-cache - RequestId: - - 34837a01-38d3-4f7f-897c-0658b341caef - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/admin/domains - response: - body: - string: '{"domains": [{"contributorsScope": "AllTenant", "id": "b750fa29-33e1-47d0-87ad-90c6c5950019", - "displayName": "fabcli000002", "description": ""}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '227' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:38 GMT - Pragma: - - no-cache - RequestId: - - cba15d7f-0eb4-4d7e-9b35-bfe223897aec - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: DELETE - uri: https://api.fabric.microsoft.com/v1/admin/domains/b750fa29-33e1-47d0-87ad-90c6c5950019 - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Thu, 29 Jan 2026 10:30:39 GMT - Pragma: - - no-cache - RequestId: - - 579ad45f-8800-4395-9870-65eb50e48464 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "230188b8-54dc-4890-8fb9-ddfdbfef864b", - "displayName": "fabcli000001", "description": "Created by fab", "type": "Workspace", - "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2314' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:40 GMT - Pragma: - - no-cache - RequestId: - - 924c1ed2-441b-4746-8675-c24b2e831070 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/230188b8-54dc-4890-8fb9-ddfdbfef864b/items - response: - body: - string: '{"value": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '32' - Content-Type: - - application/json; charset=utf-8 - Date: - - Thu, 29 Jan 2026 10:30:41 GMT - Pragma: - - no-cache - RequestId: - - 4de9fe9b-44e8-4f61-81e0-c8e7a9400c93 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/230188b8-54dc-4890-8fb9-ddfdbfef864b - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Thu, 29 Jan 2026 10:30:42 GMT - Pragma: - - no-cache - RequestId: - - 2953de00-6c3e-4ad8-9bd9-0a8dff827ea1 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -version: 1 diff --git a/tests/test_commands/test_unassign.py b/tests/test_commands/test_unassign.py index ab7e3b25..275aa5ce 100644 --- a/tests/test_commands/test_unassign.py +++ b/tests/test_commands/test_unassign.py @@ -13,54 +13,11 @@ from fabric_cli.core import fab_handle_context as handle_context from fabric_cli.core.fab_types import ItemType, VirtualWorkspaceType from tests.test_commands.data.static_test_data import StaticTestData -from tests.test_commands.conftest import unassign_entity_workspace_success_params, unassign_failure_params +from tests.test_commands.conftest import unassign_failure_params class TestUnassign: # region Parametrized Tests - @unassign_entity_workspace_success_params - def test_unassign_entity_workspace_success( - self, - entity_type, - factory_key, - path_template, - assertion_key, - workspace_factory, - cli_executor, - mock_questionary_print, - test_data: StaticTestData, - virtual_workspace_item_factory, - ): - # Setup - workspace = workspace_factory() - mock_questionary_print.reset_mock() - - if factory_key == "test_data": - # Capacity scenario - entity_path = path_template.format(test_data.capacity.name) - assertion_value = getattr(test_data.capacity, assertion_key) - else: - # Domain scenario - domain = virtual_workspace_item_factory(entity_type) - assign(domain.full_path, workspace.full_path) - entity_path = domain.full_path - assertion_value = getattr(domain, assertion_key) - - # Execute command - cli_executor.exec_command( - f"unassign {entity_path} --workspace {workspace.full_path} --force" - ) - - # Assert - if entity_type == VirtualWorkspaceType.CAPACITY: - get(workspace.full_path, query=".") - else: - get(entity_path, query="domainWorkspaces") - - assert any( - str(assertion_value) not in str(call.args[0]) - for call in mock_questionary_print.mock_calls - ) @unassign_failure_params def test_unassign_entity_workspace_not_assigned_failure( @@ -125,6 +82,35 @@ def test_unassign_entity_item_not_supported_failure( # endregion + # region DOMAIN TESTS + + def test_unassign_domain_workspace_success( + self, + workspace_factory, + cli_executor, + virtual_workspace_item_factory, + mock_questionary_print, + ): + # Setup + workspace = workspace_factory() + domain = virtual_workspace_item_factory(VirtualWorkspaceType.DOMAIN) + assign(domain.full_path, workspace.full_path) + mock_questionary_print.reset_mock() + + # Execute command + cli_executor.exec_command( + f"unassign {domain.full_path} --workspace {workspace.full_path} --force" + ) + + # Assert + get(domain.full_path, query="domainWorkspaces") + assert any( + workspace.display_name not in call.args[0] + for call in mock_questionary_print.mock_calls + ) + + # endregion + # region CAPACITY TESTS def test_unassign_capacity_workspace_success( self,