diff --git a/tests/test_commands/conftest.py b/tests/test_commands/conftest.py index 532157c6..287959e3 100644 --- a/tests/test_commands/conftest.py +++ b/tests/test_commands/conftest.py @@ -160,6 +160,11 @@ "x-ms-authorization-auxiliary", ] +unassign_failure_params = pytest.mark.parametrize("entity_type,factory_key,path_template", [ + (VirtualWorkspaceType.CAPACITY, "test_data", "/.capacities/{}.Capacity"), + (VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", None), +]) + def pytest_addoption(parser): parser.addoption( 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..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 @@ -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' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:09 GMT + - Mon, 23 Feb 2026 09:35:33 GMT Pragma: - no-cache RequestId: - - 54479a5a-8e13-4a5c-bf9c-982bdba0c491 + - f5559088-59e3-4fd2-93ff-cb2114ad189b 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' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:09 GMT + - Mon, 23 Feb 2026 09:35:33 GMT Pragma: - no-cache RequestId: - - 4feefa45-e29e-4683-b6bc-0e5881814e49 + - afebf579-6c1d-430b-890b-abb237339d3e 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": "F16", "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 + - Mon, 23 Feb 2026 09:35:38 GMT Pragma: - no-cache RequestId: - - 3ef4d07f-9a39-42d2-8408-edb4229075ae + - e03e2615-368b-4dca-91da-b3a86d1529a9 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": "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: - - Wed, 03 Sep 2025 08:31:05 GMT + - Mon, 23 Feb 2026 09:35:47 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727 + - https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d Pragma: - no-cache RequestId: - - 5225f890-f222-47cd-8818-e25effa0866a + - a1c385bd-3879-463f-85e4-e53b467692d7 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": "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: - - '360' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:53 GMT + - Mon, 23 Feb 2026 09:36:22 GMT Pragma: - no-cache RequestId: - - 30d39d0d-8619-4f1c-b53a-1b6b2ab10896 + - 82b4176b-0621-4ef6-ae92-230cb6dc14a3 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/6b127bc7-a57f-4b28-af55-5e5bec26401d/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 + - Mon, 23 Feb 2026 09:36:23 GMT Pragma: - no-cache RequestId: - - d05bc7e7-e528-4e13-bc4f-1a78037c4acc + - df6b6578-c010-41c4-b68f-8cdd2cc2fae8 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/6b127bc7-a57f-4b28-af55-5e5bec26401d response: body: string: '' @@ -332,11 +332,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 03 Sep 2025 08:31:53 GMT + - Mon, 23 Feb 2026 09:36:23 GMT Pragma: - no-cache RequestId: - - 04c16fd9-9d91-4f65-a068-13ad7de4d062 + - 17433a90-aab6-4e20-ab45-65427f40addf 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_capacity_item_not_supported_failure.yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml similarity index 74% rename from tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_item_not_supported_failure.yaml rename to tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml index efe2a236..69f3ae50 100644 --- 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_entity_item_not_supported_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml @@ -11,13 +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", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "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: - - '360' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:05 GMT + - Mon, 23 Feb 2026 09:35:48 GMT Pragma: - no-cache RequestId: - - f445894d-89ad-4fa6-a941-c0e4707f9e0f + - 3097f2f6-c2f0-4d19-8c0d-3ae5f8172f03 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -44,7 +44,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,9 +62,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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/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: - - Wed, 03 Sep 2025 08:31:06 GMT + - Mon, 23 Feb 2026 09:35:49 GMT Pragma: - no-cache RequestId: - - a2e0dc13-311a-4b7b-838a-cd645500299c + - 1bc4d96e-f7ed-45b0-9feb-988ad0b7de5e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -92,7 +92,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: @@ -110,9 +110,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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/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: - - Wed, 03 Sep 2025 08:31:06 GMT + - Mon, 23 Feb 2026 09:35:49 GMT Pragma: - no-cache RequestId: - - 123c80bb-1c93-4323-b800-e5ab2922670b + - 2b483b28-8cae-4323-b635-0c69141b3b92 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -140,7 +140,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: @@ -161,14 +161,14 @@ 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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/lakehouses + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/lakehouses response: body: - string: '{"id": "2af9be85-a71a-4274-a433-572e73beda6f", "type": "Lakehouse", + string: '{"id": "8800a11e-7ed5-436e-b4ae-9bfcf8ca88a9", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}' headers: Access-Control-Expose-Headers: - RequestId,ETag @@ -181,13 +181,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:11 GMT + - Mon, 23 Feb 2026 09:35:54 GMT ETag: - '""' Pragma: - no-cache RequestId: - - 57628804-7e7e-4145-a7d4-c38fa0dc5109 + - f24e20f4-f9c2-496c-bc7d-eb0980739f92 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-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: @@ -229,15 +229,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '456' + - '427' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:16 GMT + - Mon, 23 Feb 2026 09:36:01 GMT Pragma: - no-cache RequestId: - - 43db6c41-7b59-4c49-9c15-17b0be667964 + - 9cc69e93-4acf-4acb-bd6a-a96ae4872f29 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -245,7 +245,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: @@ -263,13 +263,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", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "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: - - '360' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:17 GMT + - Mon, 23 Feb 2026 09:36:02 GMT Pragma: - no-cache RequestId: - - 67803b2e-c313-4af2-a6e0-affeeccd1407 + - 8c9714f2-f264-48fb-a9b2-aaa2446ec307 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -296,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: @@ -314,14 +314,14 @@ 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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: - string: '{"value": [{"id": "2af9be85-a71a-4274-a433-572e73beda6f", "type": "Lakehouse", + string: '{"value": [{"id": "8800a11e-7ed5-436e-b4ae-9bfcf8ca88a9", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}]}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -334,11 +334,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:17 GMT + - Mon, 23 Feb 2026 09:36:04 GMT Pragma: - no-cache RequestId: - - d94998d7-3f56-40bc-be94-721fb06e6532 + - bd5b0eb8-2ab2-49b4-911f-43b26ce0ab39 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -346,7 +346,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: @@ -364,13 +364,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", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "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: - - '360' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:17 GMT + - Mon, 23 Feb 2026 09:36:04 GMT Pragma: - no-cache RequestId: - - b67ce576-853c-42c9-b7df-671bccfa20be + - 8acda09b-95c6-4aa9-900e-360dc9daf1ee Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -397,7 +397,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: @@ -415,14 +415,14 @@ 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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: - string: '{"value": [{"id": "2af9be85-a71a-4274-a433-572e73beda6f", "type": "Lakehouse", + string: '{"value": [{"id": "8800a11e-7ed5-436e-b4ae-9bfcf8ca88a9", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}]}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -435,11 +435,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:17 GMT + - Mon, 23 Feb 2026 09:36:05 GMT Pragma: - no-cache RequestId: - - a1a203bd-2c69-4eca-bd01-f4d81007a038 + - 46984383-027c-4396-962e-14dd74a17548 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -447,7 +447,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: @@ -467,9 +467,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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items/2af9be85-a71a-4274-a433-572e73beda6f + 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: - - Wed, 03 Sep 2025 08:31:17 GMT + - Mon, 23 Feb 2026 09:36:06 GMT Pragma: - no-cache RequestId: - - 094fc1ec-056f-43fe-81bd-fbdc84b01a4d + - 67f10f98-39a5-4398-a850-f6f23545a5eb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -497,7 +497,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_domain_item_not_supported_failure.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 75% rename from tests/test_commands/recordings/test_commands/test_unassign/test_unassign_domain_item_not_supported_failure.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 cb24c05b..9ce05bed 100644 --- 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_entity_item_not_supported_failure[.domains-virtual_workspace_item_factory-None].yaml @@ -11,13 +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", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "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: - - '360' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:46 GMT + - Mon, 23 Feb 2026 09:36:07 GMT Pragma: - no-cache RequestId: - - 7c05b4cb-19c7-4836-9d5d-baa6c893da4f + - cf939b00-4f4d-49d5-b48c-88107e96286e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -44,7 +44,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,9 +62,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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/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: - - Wed, 03 Sep 2025 08:31:46 GMT + - Mon, 23 Feb 2026 09:36:08 GMT Pragma: - no-cache RequestId: - - dbe6ef8d-b7c5-40b8-a9a2-722e4111d991 + - 5eea69c6-6890-409d-85e9-b3f834b76502 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -92,7 +92,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: @@ -110,9 +110,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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/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: - - Wed, 03 Sep 2025 08:31:47 GMT + - Mon, 23 Feb 2026 09:36:09 GMT Pragma: - no-cache RequestId: - - a723fc72-997b-4054-9d8c-0a34d9247531 + - 27f68fa4-fc35-4616-bde2-0528b73e8cdb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -140,7 +140,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: @@ -161,14 +161,14 @@ 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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/lakehouses + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/lakehouses response: body: - string: '{"id": "444abd32-aaad-4f89-9eca-3380eeee97ff", "type": "Lakehouse", + string: '{"id": "6cdb3188-35d5-4c4c-8a5d-c8d84b532f6d", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}' + "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: - - Wed, 03 Sep 2025 08:31:51 GMT + - Mon, 23 Feb 2026 09:36:12 GMT ETag: - '""' Pragma: - no-cache RequestId: - - c3b70eed-efa3-4710-a8fa-da7c848db667 + - b224e630-cb0b-4e2d-9ef5-a97af6cd4951 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,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: @@ -227,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:50 GMT + - Mon, 23 Feb 2026 09:36:12 GMT Pragma: - no-cache RequestId: - - 63eb02d3-8856-4a81-bc67-8296572a0cb3 + - 738901e9-a214-42ec-85c8-a4e97da5cb29 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -243,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: @@ -263,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": "efe7d4c2-05d5-41c4-9494-c47966bb85d8", + 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: - - Wed, 03 Sep 2025 08:31:51 GMT + - Mon, 23 Feb 2026 09:36:14 GMT Location: - - https://api.fabric.microsoft.com/v1/admin/domains/efe7d4c2-05d5-41c4-9494-c47966bb85d8 + - https://api.fabric.microsoft.com/v1/admin/domains/21f38254-f457-4b1a-95ef-33052c899e46 Pragma: - no-cache RequestId: - - 7bd6bb2f-c59a-4700-8769-52872c85c1b3 + - 6c145ace-fc2d-4645-866a-bed2599f1c53 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -296,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: @@ -314,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": "efe7d4c2-05d5-41c4-9494-c47966bb85d8", + 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: - - '858' + - '227' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:51 GMT + - Mon, 23 Feb 2026 09:36:15 GMT Pragma: - no-cache RequestId: - - 7064a599-8bac-4e36-93c0-04345aa8a279 + - 74d98997-72ab-48ac-9779-f8a5188b1959 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -345,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: @@ -363,13 +363,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", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "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: - - '360' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:52 GMT + - Mon, 23 Feb 2026 09:36:15 GMT Pragma: - no-cache RequestId: - - c54a44dd-12e6-4806-a085-053edb559bd7 + - 6786a24b-47e6-4c9b-b997-59c33b963a55 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -396,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: @@ -414,14 +414,14 @@ 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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: - string: '{"value": [{"id": "444abd32-aaad-4f89-9eca-3380eeee97ff", "type": "Lakehouse", + string: '{"value": [{"id": "6cdb3188-35d5-4c4c-8a5d-c8d84b532f6d", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}]}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -430,15 +430,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '178' + - '180' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:52 GMT + - Mon, 23 Feb 2026 09:36:16 GMT Pragma: - no-cache RequestId: - - 9a887693-8850-48e4-af8b-1c021e854f89 + - 7f4e2c84-ad45-4869-bfec-27ee7a7b36d8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -446,7 +446,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: @@ -464,12 +464,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": "efe7d4c2-05d5-41c4-9494-c47966bb85d8", + 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: - - '858' + - '227' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:52 GMT + - Mon, 23 Feb 2026 09:36:17 GMT Pragma: - no-cache RequestId: - - 9386cb24-1b61-4232-81b6-17a2ff318c17 + - ae97066c-6ee8-4254-a2f2-453b24c71ccb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -495,7 +495,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: @@ -515,9 +515,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/efe7d4c2-05d5-41c4-9494-c47966bb85d8 + 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: - - Wed, 03 Sep 2025 08:31:52 GMT + - Mon, 23 Feb 2026 09:36:18 GMT Pragma: - no-cache RequestId: - - 996bbea9-9e9a-4238-80da-39813f0b3de0 + - e45ba775-731f-4302-bb45-1000cfd0153f Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -545,7 +545,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: @@ -563,13 +563,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", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "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: - - '360' + - '3104' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:52 GMT + - Mon, 23 Feb 2026 09:36:19 GMT Pragma: - no-cache RequestId: - - 601a554a-62c3-45e4-9479-d8f674c4d636 + - 14e04396-ba4a-4303-a82e-4f1c711fc926 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -596,7 +596,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: @@ -614,14 +614,14 @@ 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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items + uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items response: body: - string: '{"value": [{"id": "444abd32-aaad-4f89-9eca-3380eeee97ff", "type": "Lakehouse", + string: '{"value": [{"id": "6cdb3188-35d5-4c4c-8a5d-c8d84b532f6d", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "04eab5b1-8c1c-4613-865a-94ef3e0d5727"}]}' + "6b127bc7-a57f-4b28-af55-5e5bec26401d"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -630,15 +630,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '178' + - '180' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:31:52 GMT + - Mon, 23 Feb 2026 09:36:20 GMT Pragma: - no-cache RequestId: - - 140dac05-ec69-4e9a-9327-027a7673d9b1 + - 1cdc644a-f3c5-4732-8392-341c49e5dd3e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -646,7 +646,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: @@ -666,9 +666,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/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items/444abd32-aaad-4f89-9eca-3380eeee97ff + 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: - - Wed, 03 Sep 2025 08:31:52 GMT + - Mon, 23 Feb 2026 09:36:21 GMT Pragma: - no-cache RequestId: - - fa293bf9-ba03-4998-b9d1-730c3b44e7e1 + - 66f18fea-9761-44e8-a640-0399aa4f7ee8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -696,7 +696,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_capacity_workspace_not_assigned_failure.yaml b/tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml similarity index 76% rename from tests/test_commands/recordings/test_commands/test_unassign/test_unassign_capacity_workspace_not_assigned_failure.yaml rename to tests/test_commands/recordings/test_commands/test_unassign/test_unassign_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml index 13857e43..fca4f622 100644 --- 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_entity_workspace_not_assigned_failure[.capacities-test_data-/.capacities/{}.Capacity].yaml @@ -11,12 +11,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/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' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:29:47 GMT + - Mon, 23 Feb 2026 09:36:54 GMT Pragma: - no-cache RequestId: - - 76e6f4fe-8064-4f8f-a993-0e60d23834fc + - 247eba95-1955-4034-a509-56a8477b3946 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-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": + 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' + - '3069' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:29:48 GMT + - Mon, 23 Feb 2026 09:36:54 GMT Pragma: - no-cache RequestId: - - 26d06351-5422-4a2f-9b9a-8e21e2766495 + - 67b49009-bacb-42e8-b89d-f038d2ff4bc6 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-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: @@ -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:29:51 GMT + - Mon, 23 Feb 2026 09:36:58 GMT Pragma: - no-cache RequestId: - - 43f6c260-e2fa-4ed4-b9c0-de369813c4b1 + - 96983656-c9d8-4bbc-a555-39651297920a 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-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": "bd075225-c682-4dc1-b648-40d016a27cce", "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: - - '166' + - '168' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:29:58 GMT + - Mon, 23 Feb 2026 09:37:08 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/bd075225-c682-4dc1-b648-40d016a27cce + - https://api.fabric.microsoft.com/v1/workspaces/44d62a3c-0473-4173-89eb-0c39751f13cb Pragma: - no-cache RequestId: - - 5e73097a-5877-4f49-a01c-a1bc11abbea0 + - c9a128fd-ca82-43e9-8ded-173ee72cdb94 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-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: @@ -229,15 +229,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '456' + - '425' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:02 GMT + - Mon, 23 Feb 2026 09:37:13 GMT Pragma: - no-cache RequestId: - - 4ff122c5-9462-40ed-9c92-52c3e31355d9 + - de0cfb4e-2543-494e-9aa4-56245888d89d Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -245,7 +245,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: @@ -263,13 +263,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": "bd075225-c682-4dc1-b648-40d016a27cce", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "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: - - '363' + - '3112' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:03 GMT + - Mon, 23 Feb 2026 09:37:15 GMT Pragma: - no-cache RequestId: - - f633afc7-c9d7-4ffd-881d-91e6d0f6f0f3 + - e8e5e598-e24a-4200-b3e8-d242ebb8797e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -296,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: @@ -314,15 +314,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/bd075225-c682-4dc1-b648-40d016a27cce + uri: https://api.fabric.microsoft.com/v1/workspaces/44d62a3c-0473-4173-89eb-0c39751f13cb response: body: - string: '{"id": "bd075225-c682-4dc1-b648-40d016a27cce", "displayName": "fabcli000001", + string: '{"id": "44d62a3c-0473-4173-89eb-0c39751f13cb", "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": + "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: @@ -332,15 +332,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '278' + - '277' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:02 GMT + - Mon, 23 Feb 2026 09:37:14 GMT Pragma: - no-cache RequestId: - - fc8e0ea5-80d5-4253-8325-4dcd5fb88054 + - 97a55925-73f2-4dd1-976e-279c294fc9bb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -348,7 +348,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: @@ -368,9 +368,9 @@ 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/bd075225-c682-4dc1-b648-40d016a27cce/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: - - Wed, 03 Sep 2025 08:30:04 GMT + - Mon, 23 Feb 2026 09:37:17 GMT Pragma: - no-cache RequestId: - - 49be2b93-ebbd-4209-88de-a1576fd2cace + - 7de540cc-6cf1-47e0-aec8-bc4d70dd6923 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -398,7 +398,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: @@ -416,13 +416,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: @@ -432,15 +432,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '456' + - '425' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:08 GMT + - Mon, 23 Feb 2026 09:37:21 GMT Pragma: - no-cache RequestId: - - c5ae97c0-f55a-43d2-98ec-ed955317f36d + - 9cc0fa6a-ea42-468a-bce0-faee95487bb7 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -448,7 +448,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: @@ -466,13 +466,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": "bd075225-c682-4dc1-b648-40d016a27cce", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "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: - - '364' + - '3114' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:09 GMT + - Mon, 23 Feb 2026 09:37:23 GMT Pragma: - no-cache RequestId: - - 76fc92fc-f3d6-4bc4-8a77-7c8e2514c9a0 + - 46969552-269d-4314-b8df-bbf5a07a027b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -498,7 +498,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: @@ -516,12 +516,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/workspaces/bd075225-c682-4dc1-b648-40d016a27cce + uri: https://api.fabric.microsoft.com/v1/workspaces/44d62a3c-0473-4173-89eb-0c39751f13cb response: body: - string: '{"id": "bd075225-c682-4dc1-b648-40d016a27cce", "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: - - '158' + - '160' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:08 GMT + - Mon, 23 Feb 2026 09:37:23 GMT Pragma: - no-cache RequestId: - - 21ba8a40-fd98-4619-af27-fc6ac1401176 + - fc1e454c-b1e7-4684-9873-064cb0a54330 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -548,7 +548,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: @@ -566,13 +566,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": "bd075225-c682-4dc1-b648-40d016a27cce", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "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: - - '364' + - '3114' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 08:30:09 GMT + - Mon, 23 Feb 2026 09:37:24 GMT Pragma: - no-cache RequestId: - - 0aee473b-37f3-4a19-b35c-daffbba2b775 + - da559a11-7d46-4071-80f4-eb8939e2357c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -598,7 +598,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: @@ -616,9 +616,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/bd075225-c682-4dc1-b648-40d016a27cce/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: - - Wed, 03 Sep 2025 08:30:09 GMT + - Mon, 23 Feb 2026 09:37:25 GMT Pragma: - no-cache RequestId: - - 9dcf15e2-1c0d-4f5f-a46f-081d3c4ab2c5 + - d9ccf2ab-6d83-4178-b108-92a16ce7b883 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -646,7 +646,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: @@ -666,9 +666,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/bd075225-c682-4dc1-b648-40d016a27cce + 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: - - Wed, 03 Sep 2025 08:30:09 GMT + - Mon, 23 Feb 2026 09:37:26 GMT Pragma: - no-cache RequestId: - - d22fdb05-92b8-4f97-87a1-c6045421960f + - d50e2d38-1c8b-4d01-84a8-85ab8f7e10c5 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -696,7 +696,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_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_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/test_unassign.py b/tests/test_commands/test_unassign.py index 23deeafe..275aa5ce 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 @@ -11,9 +13,104 @@ 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_failure_params class TestUnassign: + # region Parametrized Tests + + @unassign_failure_params + 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) + + @unassign_failure_params + 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 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, @@ -107,113 +204,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