diff --git a/tests/test_commands/conftest.py b/tests/test_commands/conftest.py index 392f9e5f..f01e5a59 100644 --- a/tests/test_commands/conftest.py +++ b/tests/test_commands/conftest.py @@ -50,7 +50,8 @@ ItemType.REFLEX, ItemType.REPORT, ItemType.SQL_DATABASE, ItemType.SEMANTIC_MODEL, ItemType.SPARK_JOB_DEFINITION, ItemType.WAREHOUSE, ItemType.COPYJOB, - ItemType.GRAPHQLAPI, ItemType.DATAFLOW, + ItemType.GRAPHQLAPI, ItemType.DATAFLOW, ItemType.COSMOS_DB_DATABASE, + ItemType.USER_DATA_FUNCTION, ItemType.GRAPH_QUERY_SET, ItemType.DIGITAL_TWIN_BUILDER ]) basic_item_parametrize = pytest.mark.parametrize("item_type", [ @@ -267,7 +268,8 @@ def workspace(vcr_instance, test_data): workspace_name = f"{display_name}.Workspace" workspace_path = f"/{workspace_name}" - mkdir(workspace_path, params=[f"capacityName={test_data.capacity.name}"]) + mkdir(workspace_path, params=[ + f"capacityName={test_data.capacity.name}"]) yield EntityMetadata(display_name, workspace_name, workspace_path) rm(workspace_path) @@ -292,7 +294,8 @@ def _create_item( generated_name = custom_name else: # Use the test's specific recording file - generated_name = generate_random_string(vcr_instance, cassette_name) + generated_name = generate_random_string( + vcr_instance, cassette_name) item_name = f"{generated_name}.{type}" item_path = cli_path_join(path, item_name) @@ -318,7 +321,8 @@ def _create_item( @pytest.fixture def folder_factory(vcr_instance, cassette_name, workspace): # Keep track of all folders created during this test - current_config = state_config.get_config(fab_constant.FAB_FOLDER_LISTING_ENABLED) + current_config = state_config.get_config( + fab_constant.FAB_FOLDER_LISTING_ENABLED) state_config.set_config(fab_constant.FAB_FOLDER_LISTING_ENABLED, "true") created_folders = [] @@ -348,7 +352,8 @@ def _create_folder( for metadata in reversed(created_folders): rm(metadata.full_path) - state_config.set_config(fab_constant.FAB_FOLDER_LISTING_ENABLED, current_config) + state_config.set_config( + fab_constant.FAB_FOLDER_LISTING_ENABLED, current_config) @pytest.fixture @@ -374,7 +379,8 @@ def _create_virtual_item( """ generated_name = generate_random_string(vcr_instance, cassette_name) virtual_item_name = f"{generated_name}.{str(VICMap[type])}" - virtual_item_path = cli_path_join(workspace_path, str(type), virtual_item_name) + virtual_item_path = cli_path_join( + workspace_path, str(type), virtual_item_name) match type: @@ -427,7 +433,8 @@ def _create_virtual_item( mkdir(virtual_item_path, params) # Build the metadata for the created resource - metadata = EntityMetadata(generated_name, virtual_item_name, virtual_item_path) + metadata = EntityMetadata( + generated_name, virtual_item_name, virtual_item_path) if should_clean: created_virtual_items.append(metadata) return metadata @@ -457,10 +464,12 @@ def _create_workspace(special_character=None): workspace_name = f"{generated_name}.Workspace" workspace_path = f"/{workspace_name}" - mkdir(workspace_path, params=[f"capacityName={test_data.capacity.name}"]) + mkdir(workspace_path, params=[ + f"capacityName={test_data.capacity.name}"]) # Build the metadata for the created resource - metadata = EntityMetadata(generated_name, workspace_name, workspace_path) + metadata = EntityMetadata( + generated_name, workspace_name, workspace_path) created_workspaces.append(metadata) return metadata @@ -565,7 +574,8 @@ def delete_cassette_if_record_mode_all(vcr_instance, cassette_name): :param cassette_name: The name of the cassette file. """ if vcr_instance.record_mode == "all": - cassette_path = os.path.join(vcr_instance.cassette_library_dir, cassette_name) + cassette_path = os.path.join( + vcr_instance.cassette_library_dir, cassette_name) if os.path.exists(cassette_path): os.remove(cassette_path) @@ -673,7 +683,8 @@ def setup_config_values_for_capacity(test_data: StaticTestData): fab_default_az_location = state_config.get_config( fab_constant.FAB_DEFAULT_AZ_LOCATION ) - fab_default_az_admin = state_config.get_config(fab_constant.FAB_DEFAULT_AZ_ADMIN) + fab_default_az_admin = state_config.get_config( + fab_constant.FAB_DEFAULT_AZ_ADMIN) # Setup new values state_config.set_config( @@ -687,7 +698,8 @@ def setup_config_values_for_capacity(test_data: StaticTestData): state_config.set_config( fab_constant.FAB_DEFAULT_AZ_LOCATION, test_data.azure_location ) - state_config.set_config(fab_constant.FAB_DEFAULT_AZ_ADMIN, test_data.admin.upn) + state_config.set_config( + fab_constant.FAB_DEFAULT_AZ_ADMIN, test_data.admin.upn) yield @@ -701,7 +713,8 @@ def setup_config_values_for_capacity(test_data: StaticTestData): state_config.set_config( fab_constant.FAB_DEFAULT_AZ_LOCATION, fab_default_az_location ) - state_config.set_config(fab_constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) + state_config.set_config( + fab_constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) # endregion diff --git a/tests/test_commands/recordings/test_commands/test_rm/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_rm/class_setup.yaml index 62facdd3..d1cf8aaa 100644 --- a/tests/test_commands/recordings/test_commands/test_rm/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_rm/class_setup.yaml @@ -11,12 +11,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (None; 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' + - '2771' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:14 GMT + - Thu, 05 Feb 2026 07:40:46 GMT Pragma: - no-cache RequestId: - - 747536e7-b611-4bda-a2c8-e194b766dc60 + - a2b9e1e5-51ac-42d3-b33c-89d2ce3e16a7 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 (None; 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' + - '2771' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:14 GMT + - Thu, 05 Feb 2026 07:40:47 GMT Pragma: - no-cache RequestId: - - 8367dc8c-f2ac-473b-b75c-504851ef091d + - 4b4dbbf3-63d2-41ed-bc81-85099db3ea5d 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 (None; 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' + - '425' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:18 GMT + - Thu, 05 Feb 2026 07:40:51 GMT Pragma: - no-cache RequestId: - - 52eaccd4-d69e-4c2d-9534-c7ac3b392333 + - 86e576f8-c8ca-466e-88e7-1d9a86b8d385 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 (None; 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": "916933dd-72f5-4d84-84d3-3552275d7fbc", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' headers: Access-Control-Expose-Headers: @@ -181,13 +181,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 06:56:25 GMT + - Thu, 05 Feb 2026 07:41:29 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/916933dd-72f5-4d84-84d3-3552275d7fbc + - https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745 Pragma: - no-cache RequestId: - - aaefd334-14a5-49a5-96f2-95e43178a9ab + - d712d4d2-62b7-4538-ad54-88afd3f4fac1 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 (rm; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (rm; 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": "916933dd-72f5-4d84-84d3-3552275d7fbc", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", "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: - - '358' + - '2803' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 07:04:21 GMT + - Thu, 05 Feb 2026 07:49:09 GMT Pragma: - no-cache RequestId: - - dfb7a55a-7913-4d92-9c29-ed3a38215dde + - 476ed3fa-c770-4091-85b7-0001aca37a68 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,14 +264,25 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (rm; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (rm; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/916933dd-72f5-4d84-84d3-3552275d7fbc/items + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/items response: body: - string: '{"value": [{"id": "35dcd9aa-d9dd-420d-b1d5-959a4b5510ee", "type": "Notebook", - "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "916933dd-72f5-4d84-84d3-3552275d7fbc"}]}' + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "16ea9fac-9ed5-4675-a3aa-5268964d04cb", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "52276d4b-247c-4865-852b-e93a0b4339da", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -280,15 +291,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '175' + - '399' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 03 Sep 2025 07:04:22 GMT + - Thu, 05 Feb 2026 07:49:10 GMT Pragma: - no-cache RequestId: - - 3c2ccb50-3b47-421d-bcdf-af9fff1dc5a7 + - 79effd17-3853-4a7d-b2a8-d032a79a77f2 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -296,7 +307,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: @@ -316,9 +327,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (rm; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (rm; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/916933dd-72f5-4d84-84d3-3552275d7fbc + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745 response: body: string: '' @@ -334,11 +345,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 03 Sep 2025 07:04:22 GMT + - Thu, 05 Feb 2026 07:49:11 GMT Pragma: - no-cache RequestId: - - 5bda3a63-9a93-42a9-8873-93f88c09f3d9 + - 322412fe-23c2-4f57-b6f6-f97bbffe45ae Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -346,7 +357,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_rm/test_rm_item_success[CopyJob].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[CopyJob].yaml new file mode 100644 index 00000000..0283ef0c --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[CopyJob].yaml @@ -0,0 +1,506 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:36 GMT + Pragma: + - no-cache + RequestId: + - c8afba5b-3a8d-4d2a-a151-f43d99236d6a + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:37 GMT + Pragma: + - no-cache + RequestId: + - 4fdd0da9-52ee-4c0d-9a5c-b01047ebf00f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:37 GMT + Pragma: + - no-cache + RequestId: + - 556f880b-ee7c-4651-935e-6ff933c60ddb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "CopyJob", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/copyJobs + response: + body: + string: '{"id": "1b7fb124-4ad5-4c1d-adf9-2db896ad9d58", "type": "CopyJob", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '161' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:41 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 6c2d236a-6d9c-4d2e-9f66-d0cc1f789376 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:43 GMT + Pragma: + - no-cache + RequestId: + - 9d2e0258-2f57-4bd6-be07-cfc511f04862 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "1b7fb124-4ad5-4c1d-adf9-2db896ad9d58", "type": "CopyJob", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '236' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:44 GMT + Pragma: + - no-cache + RequestId: + - f06a9285-f34b-4371-83fa-72f2d739e341 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/1b7fb124-4ad5-4c1d-adf9-2db896ad9d58 + 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 09:38:45 GMT + Pragma: + - no-cache + RequestId: + - b6cc240d-5f3a-446b-9d0b-76906ae30a98 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:45 GMT + Pragma: + - no-cache + RequestId: + - 2238629b-48ef-422a-8a63-f4a8e4f473bf + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:47 GMT + Pragma: + - no-cache + RequestId: + - 8d61ec32-f742-4c31-8b76-f55930430f47 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:47 GMT + Pragma: + - no-cache + RequestId: + - 4703046b-e755-411a-9aab-c45138b9c399 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[CosmosDBDatabase].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[CosmosDBDatabase].yaml new file mode 100644 index 00000000..37fb32fd --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[CosmosDBDatabase].yaml @@ -0,0 +1,602 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5da8dc7d-f13f-4da3-9e9c-6ebf2d955194", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2802' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:34:17 GMT + Pragma: + - no-cache + RequestId: + - 6ec28312-4ac3-4691-94e9-1e174d0b859a + 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/5da8dc7d-f13f-4da3-9e9c-6ebf2d955194/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, 05 Feb 2026 07:34:17 GMT + Pragma: + - no-cache + RequestId: + - 6ba2948f-6c18-482d-b08e-45571772b5ee + 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/5da8dc7d-f13f-4da3-9e9c-6ebf2d955194/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, 05 Feb 2026 07:34:19 GMT + Pragma: + - no-cache + RequestId: + - 5320dc84-bad2-4640-9c8b-b7477deb66d8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "CosmosDBDatabase", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '114' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5da8dc7d-f13f-4da3-9e9c-6ebf2d955194/cosmosDbDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:34:21 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8b638c1a-bd45-484a-b339-ca9eac31a4c0 + Pragma: + - no-cache + RequestId: + - 38385744-e057-46ba-874f-905e5d428bb3 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 8b638c1a-bd45-484a-b339-ca9eac31a4c0 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8b638c1a-bd45-484a-b339-ca9eac31a4c0 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:34:20.6256013", + "lastUpdatedTimeUtc": "2026-02-05T07:34:29.410073", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:34:42 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8b638c1a-bd45-484a-b339-ca9eac31a4c0/result + Pragma: + - no-cache + RequestId: + - b45bc54f-8471-4e53-981e-b6aa31ff7990 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8b638c1a-bd45-484a-b339-ca9eac31a4c0 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8b638c1a-bd45-484a-b339-ca9eac31a4c0/result + response: + body: + string: '{"id": "d55ed870-9f5a-4dd0-87f0-43904d7a49c0", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5da8dc7d-f13f-4da3-9e9c-6ebf2d955194"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:34:43 GMT + Pragma: + - no-cache + RequestId: + - 2bfda259-e29c-4318-b1e0-faeb8fa4701b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5da8dc7d-f13f-4da3-9e9c-6ebf2d955194", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2802' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:34:44 GMT + Pragma: + - no-cache + RequestId: + - 579eed1e-448c-48a4-b317-6a8e000ba9fc + 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/5da8dc7d-f13f-4da3-9e9c-6ebf2d955194/items + response: + body: + string: '{"value": [{"id": "d55ed870-9f5a-4dd0-87f0-43904d7a49c0", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5da8dc7d-f13f-4da3-9e9c-6ebf2d955194"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:34:45 GMT + Pragma: + - no-cache + RequestId: + - bd0690eb-681f-4e6b-a74a-bd7aab374547 + 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/5da8dc7d-f13f-4da3-9e9c-6ebf2d955194/items/d55ed870-9f5a-4dd0-87f0-43904d7a49c0 + 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, 05 Feb 2026 07:34:46 GMT + Pragma: + - no-cache + RequestId: + - 420b9a55-91c7-442f-82ce-9532525dca44 + 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": "5da8dc7d-f13f-4da3-9e9c-6ebf2d955194", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2802' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:34:47 GMT + Pragma: + - no-cache + RequestId: + - f51f525f-5dbe-462e-951d-6e770c47f996 + 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/5da8dc7d-f13f-4da3-9e9c-6ebf2d955194/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, 05 Feb 2026 07:34:48 GMT + Pragma: + - no-cache + RequestId: + - 4aae6ebe-228d-4596-8448-1d40fe082d54 + 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/5da8dc7d-f13f-4da3-9e9c-6ebf2d955194/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, 05 Feb 2026 07:34:48 GMT + Pragma: + - no-cache + RequestId: + - 61429f71-a882-40ce-97b2-775503917d21 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[DataPipeline].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[DataPipeline].yaml new file mode 100644 index 00000000..fc4601db --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[DataPipeline].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:36 GMT + Pragma: + - no-cache + RequestId: + - 6247fbf5-7750-43c1-b2d5-9f4ba4a3a0cc + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:32:37 GMT + Pragma: + - no-cache + RequestId: + - d4e4d679-e943-4f9d-a79e-d0f09933fa5c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:32:39 GMT + Pragma: + - no-cache + RequestId: + - f296bdc9-cdfb-4dd3-94dc-9bc249949b6d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "DataPipeline", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/dataPipelines + response: + body: + string: '{"id": "f76136e2-7e61-4379-bdc8-5879830cfb98", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:44 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 198b6f9e-68b5-452e-ac48-abbc3e371bd8 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:45 GMT + Pragma: + - no-cache + RequestId: + - 8d4281c2-8f66-4e35-92db-86b1d6846830 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "f76136e2-7e61-4379-bdc8-5879830cfb98", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:46 GMT + Pragma: + - no-cache + RequestId: + - db56be61-6f91-4f08-937f-a5bec82f4f72 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/f76136e2-7e61-4379-bdc8-5879830cfb98 + 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 09:32:47 GMT + Pragma: + - no-cache + RequestId: + - 0bfd8801-2a23-4934-915e-ab3a098b03d6 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:48 GMT + Pragma: + - no-cache + RequestId: + - 7819e8b1-e200-4f1f-ad72-05c6bd0ac213 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:32:49 GMT + Pragma: + - no-cache + RequestId: + - cc0bbe4b-5c64-41f6-8f22-c36fe8391d45 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:32:49 GMT + Pragma: + - no-cache + RequestId: + - 61069c77-5a44-4078-8beb-127d5cc9fda1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Dataflow].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Dataflow].yaml new file mode 100644 index 00000000..d5fb723a --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Dataflow].yaml @@ -0,0 +1,513 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:57 GMT + Pragma: + - no-cache + RequestId: + - b7a3f312-ad4f-4155-890d-ff8367ef99df + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:58 GMT + Pragma: + - no-cache + RequestId: + - ddbff419-dba6-4162-bc68-35719ea8bd51 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:58 GMT + Pragma: + - no-cache + RequestId: + - 806adee8-667f-4dc0-b03a-b856b0d5b751 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Dataflow", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '106' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/dataflows + response: + body: + string: '{"id": "f43f1a5b-6277-49b0-b3da-e9283cca6987", "type": "Dataflow", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + 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 09:39:01 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 633a5191-0c20-4cd3-b770-04809d5db643 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:02 GMT + Pragma: + - no-cache + RequestId: + - b6d5267b-975c-4880-a955-475ea7907730 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "f43f1a5b-6277-49b0-b3da-e9283cca6987", "type": "Dataflow", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '238' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:03 GMT + Pragma: + - no-cache + RequestId: + - d8e71d31-b105-4a01-8aef-b8dcae8a9f97 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/f43f1a5b-6277-49b0-b3da-e9283cca6987 + 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 09:39:03 GMT + Pragma: + - no-cache + RequestId: + - 7a5d6b46-19ec-4575-91e1-66857b0f13f9 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:04 GMT + Pragma: + - no-cache + RequestId: + - e9e4ec0d-823e-45b4-8651-6a92da7bb776 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '247' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:05 GMT + Pragma: + - no-cache + RequestId: + - a2ae00b6-fffe-4cdd-b7e5-21a4d936769a + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '247' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:06 GMT + Pragma: + - no-cache + RequestId: + - 7ab212e1-9aa8-4e68-8d05-9cf56d2e4dcb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[DigitalTwinBuilder].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[DigitalTwinBuilder].yaml new file mode 100644 index 00000000..86aedf5f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[DigitalTwinBuilder].yaml @@ -0,0 +1,614 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "9e6cfa9e-3138-4cf8-aac7-27b97282beab", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:39:07 GMT + Pragma: + - no-cache + RequestId: + - c301d356-2a9a-4c66-bbd8-4bf5d7e211fa + 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/9e6cfa9e-3138-4cf8-aac7-27b97282beab/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, 05 Feb 2026 07:39:07 GMT + Pragma: + - no-cache + RequestId: + - 244cfb47-e0f2-4367-869d-c0f71b5a718a + 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/9e6cfa9e-3138-4cf8-aac7-27b97282beab/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, 05 Feb 2026 07:39:09 GMT + Pragma: + - no-cache + RequestId: + - b7d0ffaf-306a-4962-a4e0-0fe7595a47b2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "DigitalTwinBuilder", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '116' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/9e6cfa9e-3138-4cf8-aac7-27b97282beab/digitalTwinBuilders + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:39:12 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3b627cef-775e-492b-b522-98227a0cfe7b + Pragma: + - no-cache + RequestId: + - d398e3d8-a38f-4671-b97a-d842f1e4887c + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 3b627cef-775e-492b-b522-98227a0cfe7b + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3b627cef-775e-492b-b522-98227a0cfe7b + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:39:10.0484678", + "lastUpdatedTimeUtc": "2026-02-05T07:39:21.3471383", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:39:33 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3b627cef-775e-492b-b522-98227a0cfe7b/result + Pragma: + - no-cache + RequestId: + - 57a55420-74f6-47b3-a1e4-fafa07774aa0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 3b627cef-775e-492b-b522-98227a0cfe7b + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3b627cef-775e-492b-b522-98227a0cfe7b/result + response: + body: + string: '{"id": "1a8033ed-91c1-43cd-b66d-6cd6ec50700f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "9e6cfa9e-3138-4cf8-aac7-27b97282beab"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:39:34 GMT + Pragma: + - no-cache + RequestId: + - 25e469b0-1e8e-4302-8272-7279ff133a0c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "9e6cfa9e-3138-4cf8-aac7-27b97282beab", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:39:35 GMT + Pragma: + - no-cache + RequestId: + - e1eb2ab1-513d-4108-91a1-217add521c32 + 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/9e6cfa9e-3138-4cf8-aac7-27b97282beab/items + response: + body: + string: '{"value": [{"id": "49bb5c98-a0b3-403d-8412-9eeead3e8891", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "9e6cfa9e-3138-4cf8-aac7-27b97282beab"}, + {"id": "1a8033ed-91c1-43cd-b66d-6cd6ec50700f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "9e6cfa9e-3138-4cf8-aac7-27b97282beab"}, {"id": "2cd82c89-0041-434c-8330-a5d786bed9eb", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "9e6cfa9e-3138-4cf8-aac7-27b97282beab"}, {"id": "62265ece-5715-4d19-852a-30ff33c75e08", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "9e6cfa9e-3138-4cf8-aac7-27b97282beab"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '319' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:39:36 GMT + Pragma: + - no-cache + RequestId: + - 5c275035-d16d-4ce2-876a-644a8043d3ab + 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/9e6cfa9e-3138-4cf8-aac7-27b97282beab/items/1a8033ed-91c1-43cd-b66d-6cd6ec50700f + 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, 05 Feb 2026 07:39:36 GMT + Pragma: + - no-cache + RequestId: + - 3b6237b4-8227-40a5-89d7-a9bc74748f02 + 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": "9e6cfa9e-3138-4cf8-aac7-27b97282beab", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:39:37 GMT + Pragma: + - no-cache + RequestId: + - 75042858-4abf-4de0-ada3-3279aecd745d + 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/9e6cfa9e-3138-4cf8-aac7-27b97282beab/items + response: + body: + string: '{"value": [{"id": "49bb5c98-a0b3-403d-8412-9eeead3e8891", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "9e6cfa9e-3138-4cf8-aac7-27b97282beab"}, + {"id": "2cd82c89-0041-434c-8330-a5d786bed9eb", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "9e6cfa9e-3138-4cf8-aac7-27b97282beab"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '217' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:39:38 GMT + Pragma: + - no-cache + RequestId: + - 5a0e71ee-2607-4ee8-a90b-bdf075c9388a + 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/9e6cfa9e-3138-4cf8-aac7-27b97282beab/items + response: + body: + string: '{"value": [{"id": "49bb5c98-a0b3-403d-8412-9eeead3e8891", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "9e6cfa9e-3138-4cf8-aac7-27b97282beab"}, + {"id": "2cd82c89-0041-434c-8330-a5d786bed9eb", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "9e6cfa9e-3138-4cf8-aac7-27b97282beab"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '217' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:39:38 GMT + Pragma: + - no-cache + RequestId: + - c7577a49-61f0-40a4-947f-a905f1e1ba47 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Environment].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Environment].yaml new file mode 100644 index 00000000..233e2e87 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Environment].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:51 GMT + Pragma: + - no-cache + RequestId: + - edf51017-3eb6-4170-8287-22ef000a8067 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:32:51 GMT + Pragma: + - no-cache + RequestId: + - 31152f7d-944b-415e-bf63-94377907e20b + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:32:52 GMT + Pragma: + - no-cache + RequestId: + - ca5e554a-37f6-41d0-b3c4-c216fa944d3d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Environment", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/environments + response: + body: + string: '{"id": "8d4dba46-1fd3-4549-9ec9-7a8cdeb49c77", "type": "Environment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:54 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 0227184e-4ff1-465d-af88-ae41952ca0fc + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:55 GMT + Pragma: + - no-cache + RequestId: + - e690177e-588d-4e87-903a-35d07fb680c8 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "8d4dba46-1fd3-4549-9ec9-7a8cdeb49c77", "type": "Environment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:56 GMT + Pragma: + - no-cache + RequestId: + - 28946601-740b-44e1-9ef0-d3dabbd1f99f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/8d4dba46-1fd3-4549-9ec9-7a8cdeb49c77 + 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 09:32:56 GMT + Pragma: + - no-cache + RequestId: + - f81188a1-d79f-4387-9bdb-131de480d725 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:32:57 GMT + Pragma: + - no-cache + RequestId: + - b0a2e30d-64dd-4065-83c3-db1c50c5507c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:32:58 GMT + Pragma: + - no-cache + RequestId: + - c3e27966-3e43-4875-a455-5db54cb9d9b2 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:32:59 GMT + Pragma: + - no-cache + RequestId: + - 5a714802-9508-4ee6-ab07-f5265a075059 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Eventhouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Eventhouse].yaml new file mode 100644 index 00000000..b7ead5c8 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Eventhouse].yaml @@ -0,0 +1,504 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:00 GMT + Pragma: + - no-cache + RequestId: + - e4dc18e0-dd3d-41d7-92d3-87d0ffd67f97 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:01 GMT + Pragma: + - no-cache + RequestId: + - 3ea82e7a-4a51-45a2-a817-63212ead808d + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:02 GMT + Pragma: + - no-cache + RequestId: + - a9dd8fe1-b490-498d-be3a-6be418fc39d4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Eventhouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '108' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/eventhouses + response: + body: + string: '{"id": "a3ed648e-e9a3-4a3c-93c3-86a2bc70b34c", "type": "Eventhouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:05 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 8515f6da-2659-476c-9486-faedbe242777 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:06 GMT + Pragma: + - no-cache + RequestId: + - e287ccd6-7d37-47a9-b6eb-551a7eb690c3 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "a3ed648e-e9a3-4a3c-93c3-86a2bc70b34c", "type": "Eventhouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "30a20386-c6af-46c6-90eb-ee264a48f0b2", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '229' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:07 GMT + Pragma: + - no-cache + RequestId: + - 4b1fc4cd-cf50-48cf-ad19-03a902293b9f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/a3ed648e-e9a3-4a3c-93c3-86a2bc70b34c + 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 09:33:08 GMT + Pragma: + - no-cache + RequestId: + - 0e4c26a2-3773-4664-b3ad-c6113c2863e6 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:08 GMT + Pragma: + - no-cache + RequestId: + - 4d629e2c-d995-46e6-bc61-0b599be77e79 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:08 GMT + Pragma: + - no-cache + RequestId: + - 6ad3bf47-d333-490d-80f4-60eddafe5bc5 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:09 GMT + Pragma: + - no-cache + RequestId: + - 52ad4586-0891-4088-84a9-f78ee629a96d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Eventstream].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Eventstream].yaml new file mode 100644 index 00000000..703d4427 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Eventstream].yaml @@ -0,0 +1,602 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:10 GMT + Pragma: + - no-cache + RequestId: + - 67795f0d-ed4a-4df8-a6db-24c966b819a1 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:10 GMT + Pragma: + - no-cache + RequestId: + - d82ac50f-7ad1-4e19-84b1-773d5faa765f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:12 GMT + Pragma: + - no-cache + RequestId: + - 8ff4b43d-cd25-49f1-b8d7-f3387344f270 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Eventstream", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/eventstreams + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:13 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/542910ea-a9ed-4a2c-8e4f-f5013abb0149 + Pragma: + - no-cache + RequestId: + - dccd01b7-8dab-49c1-bf1f-7279adc4c8e8 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 542910ea-a9ed-4a2c-8e4f-f5013abb0149 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/542910ea-a9ed-4a2c-8e4f-f5013abb0149 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:33:13.0946755", + "lastUpdatedTimeUtc": "2026-01-29T09:33:16.5634441", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:34 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/542910ea-a9ed-4a2c-8e4f-f5013abb0149/result + Pragma: + - no-cache + RequestId: + - 327eb656-2899-4b3e-bcbe-75d772cd3e15 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 542910ea-a9ed-4a2c-8e4f-f5013abb0149 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/542910ea-a9ed-4a2c-8e4f-f5013abb0149/result + response: + body: + string: '{"id": "de25f8f9-a62a-44f2-b0dd-73db686a4992", "type": "Eventstream", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:33:34 GMT + Pragma: + - no-cache + RequestId: + - cb604ede-09db-4f64-a8fe-6a591693ebb8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:35 GMT + Pragma: + - no-cache + RequestId: + - cc300602-5577-4559-8849-a13f8357ef55 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "de25f8f9-a62a-44f2-b0dd-73db686a4992", "type": "Eventstream", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:36 GMT + Pragma: + - no-cache + RequestId: + - edaf1a6d-8d50-4a91-a894-28851aa014d5 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/de25f8f9-a62a-44f2-b0dd-73db686a4992 + 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 09:33:37 GMT + Pragma: + - no-cache + RequestId: + - 42eb6d54-1460-405e-9b94-305989dc0fff + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:37 GMT + Pragma: + - no-cache + RequestId: + - 160cf546-4e11-4f6e-aa57-4d576c992a80 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:39 GMT + Pragma: + - no-cache + RequestId: + - 60cfc55c-3151-4fa2-8496-4806ff49019a + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:39 GMT + Pragma: + - no-cache + RequestId: + - be76ec23-dabc-440c-a728-e3e64446e2c6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[GraphQLApi].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[GraphQLApi].yaml new file mode 100644 index 00000000..b2270286 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[GraphQLApi].yaml @@ -0,0 +1,507 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:48 GMT + Pragma: + - no-cache + RequestId: + - b8c07371-f14e-4dc8-bc14-207b7404da20 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:49 GMT + Pragma: + - no-cache + RequestId: + - 253c9738-5a6e-41c4-b8ec-9e70ca4f0bc6 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:50 GMT + Pragma: + - no-cache + RequestId: + - 5503028f-6bc1-4652-9608-97ac989240f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "GraphQLApi", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '108' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/graphqlapis + response: + body: + string: '{"id": "d3803131-78d8-44b3-8c8b-f5d7e5081adc", "type": "GraphQLApi", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '171' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:51 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 2501c17d-87f8-49da-9c94-2a95347e226c + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:52 GMT + Pragma: + - no-cache + RequestId: + - f7928adf-3a02-426c-a03e-1c05785c259f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "d3803131-78d8-44b3-8c8b-f5d7e5081adc", "type": "GraphQLApi", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '245' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:52 GMT + Pragma: + - no-cache + RequestId: + - 7cf845cf-d454-418c-91f3-ee81e50ff764 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/d3803131-78d8-44b3-8c8b-f5d7e5081adc + 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 09:38:54 GMT + Pragma: + - no-cache + RequestId: + - 5e945106-6420-45c4-a8c0-09c5ec8c120e + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:55 GMT + Pragma: + - no-cache + RequestId: + - 43b42306-4862-4584-98be-cb7e87da5287 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:55 GMT + Pragma: + - no-cache + RequestId: + - 5d0d76a2-e251-456a-b8be-9a944830e34c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:56 GMT + Pragma: + - no-cache + RequestId: + - 3590e5c1-8d35-4670-a974-c3116cd9be1b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[GraphQuerySet].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[GraphQuerySet].yaml new file mode 100644 index 00000000..db64a0c6 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[GraphQuerySet].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "7b503bc6-9751-4843-b183-d7ec066b20ac", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2804' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:38:14 GMT + Pragma: + - no-cache + RequestId: + - ea0b152f-1c2e-4e03-b31a-5af18c1ba27e + 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/7b503bc6-9751-4843-b183-d7ec066b20ac/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, 05 Feb 2026 07:38:15 GMT + Pragma: + - no-cache + RequestId: + - e4bc15da-4296-46f0-a016-5b663448f37d + 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/7b503bc6-9751-4843-b183-d7ec066b20ac/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, 05 Feb 2026 07:38:16 GMT + Pragma: + - no-cache + RequestId: + - e6f8beb7-1161-493a-9c80-a51468cca9a1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "GraphQuerySet", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '111' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/7b503bc6-9751-4843-b183-d7ec066b20ac/GraphQuerySets + response: + body: + string: '{"id": "8908480e-f8aa-47a9-9399-976f1d4ff2a9", "type": "GraphQuerySet", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "7b503bc6-9751-4843-b183-d7ec066b20ac"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '173' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:38:18 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - d6e43139-95f1-42fc-8319-f7fbf02baea8 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "7b503bc6-9751-4843-b183-d7ec066b20ac", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2804' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:38:19 GMT + Pragma: + - no-cache + RequestId: + - bc8e20ff-dca9-4d25-8135-47fe9a8991a1 + 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/7b503bc6-9751-4843-b183-d7ec066b20ac/items + response: + body: + string: '{"value": [{"id": "8908480e-f8aa-47a9-9399-976f1d4ff2a9", "type": "GraphQuerySet", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "7b503bc6-9751-4843-b183-d7ec066b20ac"}]}' + 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, 05 Feb 2026 07:38:19 GMT + Pragma: + - no-cache + RequestId: + - f610a7be-1bf7-417a-974f-59c0ab576ad8 + 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/7b503bc6-9751-4843-b183-d7ec066b20ac/items/8908480e-f8aa-47a9-9399-976f1d4ff2a9 + 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, 05 Feb 2026 07:38:20 GMT + Pragma: + - no-cache + RequestId: + - faeefef5-0d66-4ea3-b40b-f2696e2a2f6a + 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": "7b503bc6-9751-4843-b183-d7ec066b20ac", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2804' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:38:21 GMT + Pragma: + - no-cache + RequestId: + - 0ff7d2e9-369e-4daf-b3d6-dc21d7302565 + 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/7b503bc6-9751-4843-b183-d7ec066b20ac/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, 05 Feb 2026 07:38:22 GMT + Pragma: + - no-cache + RequestId: + - c53b3097-86c2-4c3b-a06e-dbd2f04a5307 + 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/7b503bc6-9751-4843-b183-d7ec066b20ac/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, 05 Feb 2026 07:38:23 GMT + Pragma: + - no-cache + RequestId: + - 3dc86408-5d67-40fa-a0a6-6193d369f25b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[KQLDashboard].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[KQLDashboard].yaml new file mode 100644 index 00000000..23123cdb --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[KQLDashboard].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:39 GMT + Pragma: + - no-cache + RequestId: + - 768c155b-c534-4c24-8410-b21b5c7b85e8 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:40 GMT + Pragma: + - no-cache + RequestId: + - b0161333-daeb-4d82-b751-8b18233880f5 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:42 GMT + Pragma: + - no-cache + RequestId: + - 0599488f-c3c7-400e-aad2-ca46a6183ebe + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "KQLDashboard", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/kqlDashboards + response: + body: + string: '{"id": "bc17b717-2523-4ad8-a7a8-3bec0da9ad44", "type": "KQLDashboard", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:44 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - df2374d6-e254-4dc9-8272-f6e419ceb2b3 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:44 GMT + Pragma: + - no-cache + RequestId: + - c1d08971-a4d7-4c29-a997-b8abe4b59ecd + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "bc17b717-2523-4ad8-a7a8-3bec0da9ad44", "type": "KQLDashboard", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:45 GMT + Pragma: + - no-cache + RequestId: + - 1a7b8084-11cc-4ac5-a394-62c5cc61ef82 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/bc17b717-2523-4ad8-a7a8-3bec0da9ad44 + 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 09:33:46 GMT + Pragma: + - no-cache + RequestId: + - 2e417151-4d78-4462-a610-a2ae6855e152 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:47 GMT + Pragma: + - no-cache + RequestId: + - 93ec18da-a6be-490c-88af-f5d021631c6c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:47 GMT + Pragma: + - no-cache + RequestId: + - b1e13431-0c74-4125-bfe7-39871612c503 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:48 GMT + Pragma: + - no-cache + RequestId: + - cf7eab8c-959e-4ec1-8c38-8e81ba938b9b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[KQLQueryset].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[KQLQueryset].yaml new file mode 100644 index 00000000..9da3c00d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[KQLQueryset].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:48 GMT + Pragma: + - no-cache + RequestId: + - d6147cc0-9155-47ed-917b-e47574a4a3e8 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:49 GMT + Pragma: + - no-cache + RequestId: + - b32532cb-f6e5-4f0f-b176-ec350ca358ee + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:50 GMT + Pragma: + - no-cache + RequestId: + - 6dbf96d6-324f-469b-9726-1d72b5044981 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "KQLQueryset", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/kqlQuerysets + response: + body: + string: '{"id": "0d1d0cb8-1d46-4f81-a896-8cca29248653", "type": "KQLQueryset", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '172' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:51 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 8f5d22f4-cb0f-4b19-b088-6c88534df089 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:52 GMT + Pragma: + - no-cache + RequestId: + - 4f78b5e2-3fef-487c-ada3-f01a073fac16 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0d1d0cb8-1d46-4f81-a896-8cca29248653", "type": "KQLQueryset", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '183' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:53 GMT + Pragma: + - no-cache + RequestId: + - 2ab57654-8cde-4909-b5da-37337ba17763 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/0d1d0cb8-1d46-4f81-a896-8cca29248653 + 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 09:33:54 GMT + Pragma: + - no-cache + RequestId: + - d38407e4-795b-44c9-ae8b-853640f06303 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:55 GMT + Pragma: + - no-cache + RequestId: + - 466f624a-bf17-4d03-9155-632f0adcfffe + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:56 GMT + Pragma: + - no-cache + RequestId: + - ac4a6518-e465-4d7f-865b-786776fbe253 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:57 GMT + Pragma: + - no-cache + RequestId: + - 6c77a44b-0fcf-4abd-97c6-fa0d732de465 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Lakehouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Lakehouse].yaml new file mode 100644 index 00000000..9aa449ec --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Lakehouse].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:33:57 GMT + Pragma: + - no-cache + RequestId: + - f3952761-070b-4596-8cce-61cbfb5b23af + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:58 GMT + Pragma: + - no-cache + RequestId: + - 201c1526-46ea-485a-9ea6-22f6b6c5ef41 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:33:59 GMT + Pragma: + - no-cache + RequestId: + - 79b92fbd-2444-47d9-b4c4-44ba53a8265e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Lakehouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '107' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/lakehouses + response: + body: + string: '{"id": "15d77fd8-2918-4ef0-91c6-a188ab88ff34", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:02 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - b8d6ec02-351f-4c7d-b210-5112ecf92100 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:04 GMT + Pragma: + - no-cache + RequestId: + - 3f024db0-9da4-4b28-890f-13850957ae16 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "15d77fd8-2918-4ef0-91c6-a188ab88ff34", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '179' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:04 GMT + Pragma: + - no-cache + RequestId: + - 94bd6857-978f-476f-afad-0e69a3a98971 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/15d77fd8-2918-4ef0-91c6-a188ab88ff34 + 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 09:34:05 GMT + Pragma: + - no-cache + RequestId: + - 773aa45c-2fdb-48a2-a9c2-70b35dc0b606 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:06 GMT + Pragma: + - no-cache + RequestId: + - 1953870a-88c1-4faf-8167-2ae28d06ef66 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:34:07 GMT + Pragma: + - no-cache + RequestId: + - 29e86440-9084-4590-b3e9-bd656124579c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:34:07 GMT + Pragma: + - no-cache + RequestId: + - e040914a-8eac-4909-bebd-cdc4e8461fbd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[MLExperiment].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[MLExperiment].yaml new file mode 100644 index 00000000..cd6e7314 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[MLExperiment].yaml @@ -0,0 +1,602 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:08 GMT + Pragma: + - no-cache + RequestId: + - d39686b3-a446-4c99-a136-db71294e933c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:34:09 GMT + Pragma: + - no-cache + RequestId: + - 63102173-d6ca-40f0-9365-3fc89bf61ae9 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:34:09 GMT + Pragma: + - no-cache + RequestId: + - e7cdecb7-2b3e-4eba-909e-bfbd67eb667b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "MLExperiment", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/mlExperiments + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:11 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a40a16d7-f77b-4655-9ba0-f261525ddecd + Pragma: + - no-cache + RequestId: + - d5fe7bf3-a5fa-4090-a4a6-8996b4c664e9 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - a40a16d7-f77b-4655-9ba0-f261525ddecd + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a40a16d7-f77b-4655-9ba0-f261525ddecd + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:34:10.9263648", + "lastUpdatedTimeUtc": "2026-01-29T09:34:11.8326195", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:32 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a40a16d7-f77b-4655-9ba0-f261525ddecd/result + Pragma: + - no-cache + RequestId: + - 39abb4e1-007f-47b6-a9f6-a6d38bcb47f8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a40a16d7-f77b-4655-9ba0-f261525ddecd + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a40a16d7-f77b-4655-9ba0-f261525ddecd/result + response: + body: + string: '{"id": "bb2dd7c4-69c7-4466-8fc6-f7bce1c33637", "type": "MLExperiment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:34:32 GMT + Pragma: + - no-cache + RequestId: + - 17977afd-1e06-4042-b851-124f4fd02d48 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:33 GMT + Pragma: + - no-cache + RequestId: + - 8b948341-e405-4ca0-805b-a44311e42883 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "bb2dd7c4-69c7-4466-8fc6-f7bce1c33637", "type": "MLExperiment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:34 GMT + Pragma: + - no-cache + RequestId: + - c58f02ca-8763-4dfb-b280-e8b735fc57da + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/bb2dd7c4-69c7-4466-8fc6-f7bce1c33637 + 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 09:34:35 GMT + Pragma: + - no-cache + RequestId: + - c0e499b4-2d64-4ede-b914-c439112b62f8 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:36 GMT + Pragma: + - no-cache + RequestId: + - 53e9c866-446c-4d81-aca5-48f2352a28ca + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:34:37 GMT + Pragma: + - no-cache + RequestId: + - 5ebb7816-43ff-490a-9521-18e2ad66d1c6 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:34:38 GMT + Pragma: + - no-cache + RequestId: + - d88a0546-8fd5-4703-b284-9dd1137b38ad + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[MLModel].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[MLModel].yaml new file mode 100644 index 00000000..47bbee77 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[MLModel].yaml @@ -0,0 +1,601 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:39 GMT + Pragma: + - no-cache + RequestId: + - 694dc61a-0531-494e-8a5b-f241d33e419c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:34:39 GMT + Pragma: + - no-cache + RequestId: + - 79af75b6-bd2b-41eb-bed9-39f923786d5b + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:34:40 GMT + Pragma: + - no-cache + RequestId: + - 5a8b8325-12c9-4f87-9c93-21e01b589b45 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "MLModel", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/mlModels + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:34:41 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5dda005d-91ac-4634-b055-d3f1bb8c1624 + Pragma: + - no-cache + RequestId: + - fd757ea5-5f5b-4586-b620-603ce206d9c3 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 5dda005d-91ac-4634-b055-d3f1bb8c1624 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5dda005d-91ac-4634-b055-d3f1bb8c1624 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:34:41.401052", + "lastUpdatedTimeUtc": "2026-01-29T09:34:41.8073108", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '129' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:01 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5dda005d-91ac-4634-b055-d3f1bb8c1624/result + Pragma: + - no-cache + RequestId: + - d252aa3b-0c5a-4693-8c7b-06623ab84353 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 5dda005d-91ac-4634-b055-d3f1bb8c1624 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5dda005d-91ac-4634-b055-d3f1bb8c1624/result + response: + body: + string: '{"id": "c2def888-c428-42f7-ab60-1d4ae6996942", "type": "MLModel", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:35:03 GMT + Pragma: + - no-cache + RequestId: + - fb526e52-afa6-4d31-bf83-bdedb516b0a7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:03 GMT + Pragma: + - no-cache + RequestId: + - caad319e-47d2-489c-81fe-b7c960cac530 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "c2def888-c428-42f7-ab60-1d4ae6996942", "type": "MLModel", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:04 GMT + Pragma: + - no-cache + RequestId: + - 9e3c9f4b-4ea1-4859-9d32-35e8ee4cfc77 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/c2def888-c428-42f7-ab60-1d4ae6996942 + 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 09:35:05 GMT + Pragma: + - no-cache + RequestId: + - 649a4cac-f9a9-4505-abb6-01892d572e09 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:06 GMT + Pragma: + - no-cache + RequestId: + - 2c55afa9-1e1d-4ec8-a6ed-e47b60c1e187 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:06 GMT + Pragma: + - no-cache + RequestId: + - 7c419df1-2640-46c9-b6e8-3351cb9c856e + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:08 GMT + Pragma: + - no-cache + RequestId: + - ea96b731-bff2-46dd-b266-f5cfa7699721 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[MirroredDatabase].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[MirroredDatabase].yaml new file mode 100644 index 00000000..046fe550 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[MirroredDatabase].yaml @@ -0,0 +1,504 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:09 GMT + Pragma: + - no-cache + RequestId: + - 97aa4b1e-acf8-4338-9ee6-b11c569cfe36 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:10 GMT + Pragma: + - no-cache + RequestId: + - 612ca6b5-b09d-46b7-90a0-6b23a8aff430 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:10 GMT + Pragma: + - no-cache + RequestId: + - 896fa60b-cfc8-4ec5-84fd-dc54f4a51842 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "MirroredDatabase", "folderId": null, "definition": {"parts": [{"path": "mirroring.json", + "payload": "ewogICAgInByb3BlcnRpZXMiOiB7CiAgICAgICAgInNvdXJjZSI6IHsKICAgICAgICAgICAgInR5cGUiOiAiR2VuZXJpY01pcnJvciIsCiAgICAgICAgICAgICJ0eXBlUHJvcGVydGllcyI6IHt9CiAgICAgICAgfSwKICAgICAgICAidGFyZ2V0IjogewogICAgICAgICAgICAidHlwZSI6ICJNb3VudGVkUmVsYXRpb25hbERhdGFiYXNlIiwKICAgICAgICAgICAgInR5cGVQcm9wZXJ0aWVzIjogewogICAgICAgICAgICAgICAgImZvcm1hdCI6ICJEZWx0YSIKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '603' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/mirroredDatabases + response: + body: + string: '{"id": "50931750-7347-4181-8316-bea8a858a593", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:13 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 471664fa-5173-4b9f-81d3-af5e5f1acdbb + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:13 GMT + Pragma: + - no-cache + RequestId: + - 11a4893f-d963-4b9f-85c3-91c3e7ecd7ba + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "50931750-7347-4181-8316-bea8a858a593", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '183' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:15 GMT + Pragma: + - no-cache + RequestId: + - 3ca5eba8-d989-478c-87e7-e403e15a46b6 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/50931750-7347-4181-8316-bea8a858a593 + 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 09:35:16 GMT + Pragma: + - no-cache + RequestId: + - d0121cb7-38dc-42a4-98cd-be889ed5b7cf + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:17 GMT + Pragma: + - no-cache + RequestId: + - 80b094ff-8352-4d1a-b498-b0fd234829d3 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:17 GMT + Pragma: + - no-cache + RequestId: + - 5db074b0-e615-4da7-b4a6-cdd425113546 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:18 GMT + Pragma: + - no-cache + RequestId: + - 541edf8e-2e82-4871-ba8b-2e68dc043b8a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Notebook].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Notebook].yaml new file mode 100644 index 00000000..dba7aab2 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Notebook].yaml @@ -0,0 +1,604 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:18 GMT + Pragma: + - no-cache + RequestId: + - b9eeca77-7a1f-4443-bbec-50755fd3a29e + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:20 GMT + Pragma: + - no-cache + RequestId: + - 4c01d4d8-bf24-497c-83f3-e6aff6914fac + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:20 GMT + Pragma: + - no-cache + RequestId: + - ab267f74-b767-4be9-ad2b-e9b0d4d6694a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Notebook", "folderId": null, "definition": {"parts": [{"path": "notebook-content.py", + "payload": "IyBGYWJyaWMgbm90ZWJvb2sgc291cmNlCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAia2VybmVsX2luZm8iOiB7CiMgTUVUQSAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgojIE1FVEEgICB9LAojIE1FVEEgICAiZGVwZW5kZW5jaWVzIjoge30KIyBNRVRBIH0KCiMgQ0VMTCAqKioqKioqKioqKioqKioqKioqKgoKIyBXZWxjb21lIHRvIHlvdXIgbmV3IG5vdGVib29rCiMgVHlwZSBoZXJlIGluIHRoZSBjZWxsIGVkaXRvciB0byBhZGQgY29kZSEKCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAibGFuZ3VhZ2UiOiAicHl0aG9uIiwKIyBNRVRBICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKIyBNRVRBIH0K", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '764' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/notebooks + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:22 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9897f162-dccc-43fa-a5f8-44b5016c6fe7 + Pragma: + - no-cache + RequestId: + - 61719ea0-7375-457e-8082-ed949c3d5e0d + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 9897f162-dccc-43fa-a5f8-44b5016c6fe7 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9897f162-dccc-43fa-a5f8-44b5016c6fe7 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:35:22.2510301", + "lastUpdatedTimeUtc": "2026-01-29T09:35:23.5330116", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '129' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:43 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9897f162-dccc-43fa-a5f8-44b5016c6fe7/result + Pragma: + - no-cache + RequestId: + - f094778e-a430-4501-945b-d41ab3f8c17c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 9897f162-dccc-43fa-a5f8-44b5016c6fe7 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9897f162-dccc-43fa-a5f8-44b5016c6fe7/result + response: + body: + string: '{"id": "cc6fe109-b46e-4717-bc1c-69638e9d05ff", "type": "Notebook", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:35:43 GMT + Pragma: + - no-cache + RequestId: + - df81e739-6cd8-49d3-9c4f-3693df32471e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:44 GMT + Pragma: + - no-cache + RequestId: + - 42fa7b71-fca1-4b57-b7dc-2cc7351cfaf4 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "cc6fe109-b46e-4717-bc1c-69638e9d05ff", "type": "Notebook", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '177' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:45 GMT + Pragma: + - no-cache + RequestId: + - 6b2e4034-6918-462b-bf53-faccc8899e78 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/cc6fe109-b46e-4717-bc1c-69638e9d05ff + 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 09:35:46 GMT + Pragma: + - no-cache + RequestId: + - a18f4884-3433-43f2-bbe2-95e31f3eabfb + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:47 GMT + Pragma: + - no-cache + RequestId: + - f7a9e8a2-7455-4899-82d6-4435a7831eb9 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:48 GMT + Pragma: + - no-cache + RequestId: + - f1c64303-ae16-4548-ad96-540ecb37b91d + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:48 GMT + Pragma: + - no-cache + RequestId: + - f53fba17-b15f-4744-8a36-6707f00872fa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Reflex].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Reflex].yaml new file mode 100644 index 00000000..6abf33df --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Reflex].yaml @@ -0,0 +1,501 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:50 GMT + Pragma: + - no-cache + RequestId: + - c22f5d73-fc68-4f2d-99e0-107475deedd7 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:51 GMT + Pragma: + - no-cache + RequestId: + - 0c9a84e1-784f-4ba0-9f1c-184a237fb314 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:52 GMT + Pragma: + - no-cache + RequestId: + - 132d9226-ab04-493d-9e2d-c691c8f496f8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Reflex", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '104' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/reflexes + response: + body: + string: '{"id": "901b0a5f-ba99-465b-aa68-f8cd3e4375f0", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + 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 09:35:54 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - f3057929-a0e7-4a69-9649-5e4db29a4ecf + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:54 GMT + Pragma: + - no-cache + RequestId: + - 7576a303-ef67-48b2-ac03-23b6253bb18d + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "901b0a5f-ba99-465b-aa68-f8cd3e4375f0", "type": "Reflex", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '177' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:55 GMT + Pragma: + - no-cache + RequestId: + - ef681b6c-3edb-45ec-84e8-1ac30610b0ad + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/901b0a5f-ba99-465b-aa68-f8cd3e4375f0 + 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 09:35:57 GMT + Pragma: + - no-cache + RequestId: + - 0b82441f-0b84-46cf-b543-85ca3b7a795c + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:35:57 GMT + Pragma: + - no-cache + RequestId: + - 0e2d7553-b65d-44a1-b4e0-ada78a79d636 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:58 GMT + Pragma: + - no-cache + RequestId: + - 135e44c3-b48f-4896-ac9b-923703987283 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:35:59 GMT + Pragma: + - no-cache + RequestId: + - 314d2e06-5403-4a33-98fa-dff860f5d70a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Report].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Report].yaml new file mode 100644 index 00000000..3cf758d9 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Report].yaml @@ -0,0 +1,776 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:01 GMT + Pragma: + - no-cache + RequestId: + - d8c61212-6149-4a74-87c9-d7f7f1d42043 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:36:01 GMT + Pragma: + - no-cache + RequestId: + - f533a509-4cb8-4b0c-ac4f-bae80f271309 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/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 09:36:02 GMT + Pragma: + - no-cache + RequestId: + - c68d6903-bcd3-46a5-aee9-fba608be18ef + 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_auto", "type": + "SemanticModel", "folderId": null, "definition": {"parts": [{"path": ".platform", + "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNlbWFudGljTW9kZWwiLAogICAgImRpc3BsYXlOYW1lIjogIkJsYW5rIgogIH0sCiAgImNvbmZpZyI6IHsKICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAibG9naWNhbElkIjogIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIKICB9Cn0=", + "payloadType": "InlineBase64"}, {"path": "definition.pbism", "payload": "ewogICJ2ZXJzaW9uIjogIjQuMCIsCiAgInNldHRpbmdzIjoge30KfQ==", + "payloadType": "InlineBase64"}, {"path": "definition/database.tmdl", "payload": + "ZGF0YWJhc2UKCWNvbXBhdGliaWxpdHlMZXZlbDogMTU2MQoK", "payloadType": "InlineBase64"}, + {"path": "definition/model.tmdl", "payload": "bW9kZWwgTW9kZWwKCWN1bHR1cmU6IGVuLVVTCglkZWZhdWx0UG93ZXJCSURhdGFTb3VyY2VWZXJzaW9uOiBwb3dlckJJX1YzCglzb3VyY2VRdWVyeUN1bHR1cmU6IGVuLVVTCglkYXRhQWNjZXNzT3B0aW9ucwoJCWxlZ2FjeVJlZGlyZWN0cwoJCXJldHVybkVycm9yVmFsdWVzQXNOdWxsCgphbm5vdGF0aW9uIFBCSV9RdWVyeU9yZGVyID0gWyJUYWJsZSJdCgphbm5vdGF0aW9uIF9fUEJJX1RpbWVJbnRlbGxpZ2VuY2VFbmFibGVkID0gMQoKYW5ub3RhdGlvbiBQQklEZXNrdG9wVmVyc2lvbiA9IDIuMTQwLjc1MTAuMSAoTWFpbikrYjM2NmM1ODEzNGRkNDJkZjk0MmU5YmJhNjUzNzlmM2YyMzk3M2VlMAoKcmVmIHRhYmxlIFRhYmxl", + "payloadType": "InlineBase64"}, {"path": "definition/tables/Table.tmdl", "payload": + "dGFibGUgVGFibGUKCWxpbmVhZ2VUYWc6IDFmY2QyZDhjLTkzZDYtNGU2Zi1hYjg2LThjMDU5YzhhODk4ZAoKCWNvbHVtbiBDb2x1bW4xCgkJZGF0YVR5cGU6IHN0cmluZwoJCWxpbmVhZ2VUYWc6IGIxNGI3M2UwLTI0NDctNDNlYi04ZWU1LTA2ZDQ3NTMxYzQxZAoJCXN1bW1hcml6ZUJ5OiBub25lCgkJc291cmNlQ29sdW1uOiBDb2x1bW4xCgoJCWFubm90YXRpb24gU3VtbWFyaXphdGlvblNldEJ5ID0gQXV0b21hdGljCgoJY29sdW1uIENvbHVtbjIKCQlkYXRhVHlwZTogc3RyaW5nCgkJbGluZWFnZVRhZzogZGE5YWMzNDUtMTFmMS00NGY5LThlNGItMDJjZmNhZGI4OTU3CgkJc3VtbWFyaXplQnk6IG5vbmUKCQlzb3VyY2VDb2x1bW46IENvbHVtbjIKCgkJYW5ub3RhdGlvbiBTdW1tYXJpemF0aW9uU2V0QnkgPSBBdXRvbWF0aWMKCglwYXJ0aXRpb24gVGFibGUgPSBtCgkJbW9kZTogaW1wb3J0CgkJc291cmNlID0KCQkJCWxldAoJCQkJICBTb3VyY2UgPSBUYWJsZS5Gcm9tUm93cyhKc29uLkRvY3VtZW50KEJpbmFyeS5EZWNvbXByZXNzKEJpbmFyeS5Gcm9tVGV4dCgiaTQ1V0tqRlUwZ0VSc2JFQSIsIEJpbmFyeUVuY29kaW5nLkJhc2U2NCksIENvbXByZXNzaW9uLkRlZmxhdGUpKSwgbGV0IF90ID0gKCh0eXBlIG51bGxhYmxlIHRleHQpIG1ldGEgW1NlcmlhbGl6ZWQuVGV4dCA9IHRydWVdKSBpbiB0eXBlIHRhYmxlIFtDb2x1bW4xID0gX3QsIENvbHVtbjIgPSBfdF0pLAoJCQkJICAjIkNoYW5nZWQgY29sdW1uIHR5cGUiID0gVGFibGUuVHJhbnNmb3JtQ29sdW1uVHlwZXMoU291cmNlLCB7fSkKCQkJCWluCgkJCQkgICMiQ2hhbmdlZCBjb2x1bW4gdHlwZSIKCglhbm5vdGF0aW9uIFBCSV9SZXN1bHRUeXBlID0gVGFibGUKCg==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2673' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/semanticModels + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:04 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/39b94e66-e515-4d53-a0ed-4e26123efcbb + Pragma: + - no-cache + RequestId: + - d85c6a7d-4d8c-4f24-a6b7-3d0d4d8e9e43 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 39b94e66-e515-4d53-a0ed-4e26123efcbb + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/39b94e66-e515-4d53-a0ed-4e26123efcbb + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:36:04.2446894", + "lastUpdatedTimeUtc": "2026-01-29T09:36:14.9030794", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:24 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/39b94e66-e515-4d53-a0ed-4e26123efcbb/result + Pragma: + - no-cache + RequestId: + - f9b4442f-032e-49a1-af91-d3020e20b2c8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 39b94e66-e515-4d53-a0ed-4e26123efcbb + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/39b94e66-e515-4d53-a0ed-4e26123efcbb/result + response: + body: + string: '{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:36:25 GMT + Pragma: + - no-cache + RequestId: + - 904f3a8d-a91a-46dd-928d-e536442ba9d5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Report", "folderId": null, "definition": {"parts": [{"path": ".platform", "payload": + "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlJlcG9ydCIsCiAgICAiZGlzcGxheU5hbWUiOiAiQmxhbmsiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}, {"path": "definition.pbir", "payload": "eyJ2ZXJzaW9uIjogIjQuMCIsICJkYXRhc2V0UmVmZXJlbmNlIjogeyJieVBhdGgiOiBudWxsLCAiYnlDb25uZWN0aW9uIjogeyJjb25uZWN0aW9uU3RyaW5nIjogIkRhdGEgU291cmNlPXBvd2VyYmk6Ly9hcGkucG93ZXJiaS5jb20vdjEuMC9teW9yZy9ta2RpcjtJbml0aWFsIENhdGFsb2c9cjM7SW50ZWdyYXRlZCBTZWN1cml0eT1DbGFpbXNUb2tlbiIsICJwYmlTZXJ2aWNlTW9kZWxJZCI6IG51bGwsICJwYmlNb2RlbFZpcnR1YWxTZXJ2ZXJOYW1lIjogInNvYmVfd293dmlydHVhbHNlcnZlciIsICJwYmlNb2RlbERhdGFiYXNlTmFtZSI6ICIwYmU3ZmJlYi03MTI5LTQ1OWMtODAyYy05NzY4ZGE5ZmVlODIiLCAibmFtZSI6ICJFbnRpdHlEYXRhU291cmNlIiwgImNvbm5lY3Rpb25UeXBlIjogInBiaVNlcnZpY2VYbWxhU3R5bGVMaXZlIn19fQ==", + "payloadType": "InlineBase64"}, {"path": "definition/report.json", "payload": + "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9pdGVtL3JlcG9ydC9kZWZpbml0aW9uL3JlcG9ydC8xLjIuMC9zY2hlbWEuanNvbiIsCiAgInRoZW1lQ29sbGVjdGlvbiI6IHsKICAgICJiYXNlVGhlbWUiOiB7CiAgICAgICJuYW1lIjogIkNZMjRTVTEwIiwKICAgICAgInJlcG9ydFZlcnNpb25BdEltcG9ydCI6ICI1LjYxIiwKICAgICAgInR5cGUiOiAiU2hhcmVkUmVzb3VyY2VzIgogICAgfQogIH0sCiAgImxheW91dE9wdGltaXphdGlvbiI6ICJOb25lIiwKICAib2JqZWN0cyI6IHsKICAgICJzZWN0aW9uIjogWwogICAgICB7CiAgICAgICAgInByb3BlcnRpZXMiOiB7CiAgICAgICAgICAidmVydGljYWxBbGlnbm1lbnQiOiB7CiAgICAgICAgICAgICJleHByIjogewogICAgICAgICAgICAgICJMaXRlcmFsIjogewogICAgICAgICAgICAgICAgIlZhbHVlIjogIidUb3AnIgogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgXQogIH0sCiAgInJlc291cmNlUGFja2FnZXMiOiBbCiAgICB7CiAgICAgICJuYW1lIjogIlNoYXJlZFJlc291cmNlcyIsCiAgICAgICJ0eXBlIjogIlNoYXJlZFJlc291cmNlcyIsCiAgICAgICJpdGVtcyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJDWTI0U1UxMCIsCiAgICAgICAgICAicGF0aCI6ICJCYXNlVGhlbWVzL0NZMjRTVTEwLmpzb24iLAogICAgICAgICAgInR5cGUiOiAiQmFzZVRoZW1lIgogICAgICAgIH0KICAgICAgXQogICAgfQogIF0sCiAgInNldHRpbmdzIjogewogICAgInVzZVN0eWxhYmxlVmlzdWFsQ29udGFpbmVySGVhZGVyIjogdHJ1ZSwKICAgICJkZWZhdWx0RHJpbGxGaWx0ZXJPdGhlclZpc3VhbHMiOiB0cnVlLAogICAgImFsbG93Q2hhbmdlRmlsdGVyVHlwZXMiOiB0cnVlLAogICAgInVzZUVuaGFuY2VkVG9vbHRpcHMiOiB0cnVlLAogICAgInVzZURlZmF1bHRBZ2dyZWdhdGVEaXNwbGF5TmFtZSI6IHRydWUKICB9Cn0=", + "payloadType": "InlineBase64"}, {"path": "definition/version.json", "payload": + "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9pdGVtL3JlcG9ydC9kZWZpbml0aW9uL3ZlcnNpb25NZXRhZGF0YS8xLjAuMC9zY2hlbWEuanNvbiIsCiAgInZlcnNpb24iOiAiMi4wLjAiCn0=", + "payloadType": "InlineBase64"}, {"path": "definition/pages/pages.json", "payload": + "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9pdGVtL3JlcG9ydC9kZWZpbml0aW9uL3BhZ2VzTWV0YWRhdGEvMS4wLjAvc2NoZW1hLmpzb24iLAogICJwYWdlT3JkZXIiOiBbCiAgICAiYjhjNWZiOGQ2MzVmODk4MzI2YzYiCiAgXSwKICAiYWN0aXZlUGFnZU5hbWUiOiAiYjhjNWZiOGQ2MzVmODk4MzI2YzYiCn0=", + "payloadType": "InlineBase64"}, {"path": "definition/pages/b8c5fb8d635f898326c6/page.json", + "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9pdGVtL3JlcG9ydC9kZWZpbml0aW9uL3BhZ2UvMS4zLjAvc2NoZW1hLmpzb24iLAogICJuYW1lIjogImI4YzVmYjhkNjM1Zjg5ODMyNmM2IiwKICAiZGlzcGxheU5hbWUiOiAiUGFnZSAxIiwKICAiZGlzcGxheU9wdGlvbiI6ICJGaXRUb1BhZ2UiLAogICJoZWlnaHQiOiA3MjAsCiAgIndpZHRoIjogMTI4MAp9", + "payloadType": "InlineBase64"}, {"path": "StaticResources/SharedResources/BaseThemes/CY24SU10.json", + "payload": "ewogICJuYW1lIjogIkNZMjRTVTEwIiwKICAiZGF0YUNvbG9ycyI6IFsKICAgICIjMTE4REZGIiwKICAgICIjMTIyMzlFIiwKICAgICIjRTY2QzM3IiwKICAgICIjNkIwMDdCIiwKICAgICIjRTA0NEE3IiwKICAgICIjNzQ0RUMyIiwKICAgICIjRDlCMzAwIiwKICAgICIjRDY0NTUwIiwKICAgICIjMTk3Mjc4IiwKICAgICIjMUFBQjQwIiwKICAgICIjMTVDNkY0IiwKICAgICIjNDA5MkZGIiwKICAgICIjRkZBMDU4IiwKICAgICIjQkU1REM5IiwKICAgICIjRjQ3MkQwIiwKICAgICIjQjVBMUZGIiwKICAgICIjQzRBMjAwIiwKICAgICIjRkY4MDgwIiwKICAgICIjMDBEQkJDIiwKICAgICIjNUJENjY3IiwKICAgICIjMDA5MUQ1IiwKICAgICIjNDY2OEM1IiwKICAgICIjRkY2MzAwIiwKICAgICIjOTkwMDhBIiwKICAgICIjRUMwMDhDIiwKICAgICIjNTMzMjg1IiwKICAgICIjOTk3MDBBIiwKICAgICIjRkY0MTQxIiwKICAgICIjMUY5QTg1IiwKICAgICIjMjU4OTFDIiwKICAgICIjMDA1N0EyIiwKICAgICIjMDAyMDUwIiwKICAgICIjQzk0RjBGIiwKICAgICIjNDUwRjU0IiwKICAgICIjQjYwMDY0IiwKICAgICIjMzQxMjRGIiwKICAgICIjNkE1QTI5IiwKICAgICIjMUFBQjQwIiwKICAgICIjQkExNDFBIiwKICAgICIjMEMzRDM3IiwKICAgICIjMEI1MTFGIgogIF0sCiAgImZvcmVncm91bmQiOiAiIzI1MjQyMyIsCiAgImZvcmVncm91bmROZXV0cmFsU2Vjb25kYXJ5IjogIiM2MDVFNUMiLAogICJmb3JlZ3JvdW5kTmV1dHJhbFRlcnRpYXJ5IjogIiNCM0IwQUQiLAogICJiYWNrZ3JvdW5kIjogIiNGRkZGRkYiLAogICJiYWNrZ3JvdW5kTGlnaHQiOiAiI0YzRjJGMSIsCiAgImJhY2tncm91bmROZXV0cmFsIjogIiNDOEM2QzQiLAogICJ0YWJsZUFjY2VudCI6ICIjMTE4REZGIiwKICAiZ29vZCI6ICIjMUFBQjQwIiwKICAibmV1dHJhbCI6ICIjRDlCMzAwIiwKICAiYmFkIjogIiNENjQ1NTQiLAogICJtYXhpbXVtIjogIiMxMThERkYiLAogICJjZW50ZXIiOiAiI0Q5QjMwMCIsCiAgIm1pbmltdW0iOiAiI0RFRUZGRiIsCiAgIm51bGwiOiAiI0ZGN0Y0OCIsCiAgImh5cGVybGluayI6ICIjMDA3OGQ0IiwKICAidmlzaXRlZEh5cGVybGluayI6ICIjMDA3OGQ0IiwKICAidGV4dENsYXNzZXMiOiB7CiAgICAiY2FsbG91dCI6IHsKICAgICAgImZvbnRTaXplIjogNDUsCiAgICAgICJmb250RmFjZSI6ICJESU4iLAogICAgICAiY29sb3IiOiAiIzI1MjQyMyIKICAgIH0sCiAgICAidGl0bGUiOiB7CiAgICAgICJmb250U2l6ZSI6IDEyLAogICAgICAiZm9udEZhY2UiOiAiRElOIiwKICAgICAgImNvbG9yIjogIiMyNTI0MjMiCiAgICB9LAogICAgImhlYWRlciI6IHsKICAgICAgImZvbnRTaXplIjogMTIsCiAgICAgICJmb250RmFjZSI6ICJTZWdvZSBVSSBTZW1pYm9sZCIsCiAgICAgICJjb2xvciI6ICIjMjUyNDIzIgogICAgfSwKICAgICJsYWJlbCI6IHsKICAgICAgImZvbnRTaXplIjogMTAsCiAgICAgICJmb250RmFjZSI6ICJTZWdvZSBVSSIsCiAgICAgICJjb2xvciI6ICIjMjUyNDIzIgogICAgfQogIH0sCiAgInZpc3VhbFN0eWxlcyI6IHsKICAgICIqIjogewogICAgICAiKiI6IHsKICAgICAgICAiKiI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgIndvcmRXcmFwIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgImxpbmUiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJ0cmFuc3BhcmVuY3kiOiAwCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAib3V0bGluZSI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInRyYW5zcGFyZW5jeSI6IDAKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJwbG90QXJlYSI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInRyYW5zcGFyZW5jeSI6IDAKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJjYXRlZ29yeUF4aXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93QXhpc1RpdGxlIjogdHJ1ZSwKICAgICAgICAgICAgImdyaWRsaW5lU3R5bGUiOiAiZG90dGVkIiwKICAgICAgICAgICAgImNvbmNhdGVuYXRlTGFiZWxzIjogZmFsc2UKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJ2YWx1ZUF4aXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93QXhpc1RpdGxlIjogdHJ1ZSwKICAgICAgICAgICAgImdyaWRsaW5lU3R5bGUiOiAiZG90dGVkIgogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInkyQXhpcyI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAidGl0bGUiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJ0aXRsZVdyYXAiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGluZVN0eWxlcyI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInN0cm9rZVdpZHRoIjogMwogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgIndvcmRXcmFwIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IHRydWUsCiAgICAgICAgICAgICJ0cmFuc3BhcmVuY3kiOiAwCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiYm9yZGVyIjogWwogICAgICAgICAgewogICAgICAgICAgICAid2lkdGgiOiAxCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAib3V0c3BhY2VQYW5lIjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZENvbG9yIjogewogICAgICAgICAgICAgICJzb2xpZCI6IHsKICAgICAgICAgICAgICAgICJjb2xvciI6ICIjZmZmZmZmIgogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgInRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJib3JkZXIiOiB0cnVlLAogICAgICAgICAgICAiYm9yZGVyQ29sb3IiOiB7CiAgICAgICAgICAgICAgInNvbGlkIjogewogICAgICAgICAgICAgICAgImNvbG9yIjogIiNCM0IwQUQiCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZmlsdGVyQ2FyZCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgIiRpZCI6ICJBcHBsaWVkIiwKICAgICAgICAgICAgInRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJmb3JlZ3JvdW5kQ29sb3IiOiB7CiAgICAgICAgICAgICAgInNvbGlkIjogewogICAgICAgICAgICAgICAgImNvbG9yIjogIiMyNTI0MjMiCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAogICAgICAgICAgICAiYm9yZGVyIjogdHJ1ZQogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIiRpZCI6ICJBdmFpbGFibGUiLAogICAgICAgICAgICAidHJhbnNwYXJlbmN5IjogMCwKICAgICAgICAgICAgImZvcmVncm91bmRDb2xvciI6IHsKICAgICAgICAgICAgICAic29saWQiOiB7CiAgICAgICAgICAgICAgICAiY29sb3IiOiAiIzI1MjQyMyIKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJib3JkZXIiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInNjYXR0ZXJDaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImJ1YmJsZXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJidWJibGVTaXplIjogLTEwLAogICAgICAgICAgICAibWFya2VyUmFuZ2VUeXBlIjogImF1dG8iCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZmlsbFBvaW50IjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJsZWdlbmQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93R3JhZGllbnRMZWdlbmQiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImxpbmVDaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZm9yZWNhc3QiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJtYXRjaFNlcmllc0ludGVycG9sYXRpb24iOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgIm1hcCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImJ1YmJsZXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJidWJibGVTaXplIjogLTEwLAogICAgICAgICAgICAibWFya2VyUmFuZ2VUeXBlIjogImF1dG8iCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImF6dXJlTWFwIjogewogICAgICAiKiI6IHsKICAgICAgICAiYnViYmxlTGF5ZXIiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJidWJibGVSYWRpdXMiOiA4LAogICAgICAgICAgICAibWluQnViYmxlUmFkaXVzIjogOCwKICAgICAgICAgICAgIm1heFJhZGl1cyI6IDQwCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiYmFyQ2hhcnQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJiYXJIZWlnaHQiOiAzLAogICAgICAgICAgICAidGhpY2tuZXNzIjogMwogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJwaWVDaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImxlZ2VuZCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiB0cnVlLAogICAgICAgICAgICAicG9zaXRpb24iOiAiUmlnaHRDZW50ZXIiCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGFiZWxzIjogWwogICAgICAgICAgewogICAgICAgICAgICAibGFiZWxTdHlsZSI6ICJEYXRhIHZhbHVlLCBwZXJjZW50IG9mIHRvdGFsIgogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJkb251dENoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IHRydWUsCiAgICAgICAgICAgICJwb3NpdGlvbiI6ICJSaWdodENlbnRlciIKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJsYWJlbHMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJsYWJlbFN0eWxlIjogIkRhdGEgdmFsdWUsIHBlcmNlbnQgb2YgdG90YWwiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInBpdm90VGFibGUiOiB7CiAgICAgICIqIjogewogICAgICAgICJyb3dIZWFkZXJzIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0V4cGFuZENvbGxhcHNlQnV0dG9ucyI6IHRydWUsCiAgICAgICAgICAgICJsZWdhY3lTdHlsZURpc2FibGVkIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJtdWx0aVJvd0NhcmQiOiB7CiAgICAgICIqIjogewogICAgICAgICJjYXJkIjogWwogICAgICAgICAgewogICAgICAgICAgICAib3V0bGluZVdlaWdodCI6IDIsCiAgICAgICAgICAgICJiYXJTaG93IjogdHJ1ZSwKICAgICAgICAgICAgImJhcldlaWdodCI6IDIKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0KICAgIH0sCiAgICAia3BpIjogewogICAgICAiKiI6IHsKICAgICAgICAidHJlbmRsaW5lIjogWwogICAgICAgICAgewogICAgICAgICAgICAidHJhbnNwYXJlbmN5IjogMjAKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0KICAgIH0sCiAgICAiY2FyZFZpc3VhbCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImxheW91dCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgIm1heFRpbGVzIjogMwogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgIm92ZXJmbG93IjogWwogICAgICAgICAgewogICAgICAgICAgICAidHlwZSI6IDAKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJpbWFnZSI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImZpeGVkU2l6ZSI6IGZhbHNlCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiaW1hZ2VBcmVhU2l6ZSI6IDUwCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImFkdmFuY2VkU2xpY2VyVmlzdWFsIjogewogICAgICAiKiI6IHsKICAgICAgICAibGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAibWF4VGlsZXMiOiAzCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInNsaWNlciI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgImRhdGUiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJoaWRlRGF0ZVBpY2tlckJ1dHRvbiI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiaXRlbXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJwYWRkaW5nIjogNCwKICAgICAgICAgICAgImFjY2Vzc2liaWxpdHlDb250cmFzdFByb3BlcnRpZXMiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgIndhdGVyZmFsbENoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImNvbHVtbkNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImNsdXN0ZXJlZENvbHVtbkNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImh1bmRyZWRQZXJjZW50U3RhY2tlZENvbHVtbkNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImJhckNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImNsdXN0ZXJlZEJhckNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImh1bmRyZWRQZXJjZW50U3RhY2tlZEJhckNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImFyZWFDaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInN0YWNrZWRBcmVhQ2hhcnQiOiB7CiAgICAgICIqIjogewogICAgICAgICJnZW5lcmFsIjogWwogICAgICAgICAgewogICAgICAgICAgICAicmVzcG9uc2l2ZSI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJzbWFsbE11bHRpcGxlc0xheW91dCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImJhY2tncm91bmRUcmFuc3BhcmVuY3kiOiAwLAogICAgICAgICAgICAiZ3JpZExpbmVUeXBlIjogImlubmVyIgogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJsaW5lQ2x1c3RlcmVkQ29sdW1uQ29tYm9DaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImxpbmVTdGFja2VkQ29sdW1uQ29tYm9DaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInJpYmJvbkNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAic21hbGxNdWx0aXBsZXNMYXlvdXQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJiYWNrZ3JvdW5kVHJhbnNwYXJlbmN5IjogMCwKICAgICAgICAgICAgImdyaWRMaW5lVHlwZSI6ICJpbm5lciIKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJ2YWx1ZUF4aXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJodW5kcmVkUGVyY2VudFN0YWNrZWRBcmVhQ2hhcnQiOiB7CiAgICAgICIqIjogewogICAgICAgICJnZW5lcmFsIjogWwogICAgICAgICAgewogICAgICAgICAgICAicmVzcG9uc2l2ZSI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJzbWFsbE11bHRpcGxlc0xheW91dCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImJhY2tncm91bmRUcmFuc3BhcmVuY3kiOiAwLAogICAgICAgICAgICAiZ3JpZExpbmVUeXBlIjogImlubmVyIgogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJncm91cCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImJhY2tncm91bmQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogZmFsc2UKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0KICAgIH0sCiAgICAiYmFzaWNTaGFwZSI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImJhY2tncm91bmQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogZmFsc2UKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJnZW5lcmFsIjogWwogICAgICAgICAgewogICAgICAgICAgICAia2VlcExheWVyT3JkZXIiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAidmlzdWFsSGVhZGVyIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInNoYXBlIjogewogICAgICAiKiI6IHsKICAgICAgICAiYmFja2dyb3VuZCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJrZWVwTGF5ZXJPcmRlciI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJ2aXN1YWxIZWFkZXIiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogZmFsc2UKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0KICAgIH0sCiAgICAiaW1hZ2UiOiB7CiAgICAgICIqIjogewogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImtlZXBMYXllck9yZGVyIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInZpc3VhbEhlYWRlciI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgImxvY2tBc3BlY3QiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJhY3Rpb25CdXR0b24iOiB7CiAgICAgICIqIjogewogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAidmlzdWFsSGVhZGVyIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInBhZ2VOYXZpZ2F0b3IiOiB7CiAgICAgICIqIjogewogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAidmlzdWFsSGVhZGVyIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImJvb2ttYXJrTmF2aWdhdG9yIjogewogICAgICAiKiI6IHsKICAgICAgICAiYmFja2dyb3VuZCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInZpc3VhbEhlYWRlciI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJ0ZXh0Ym94IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImtlZXBMYXllck9yZGVyIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInZpc3VhbEhlYWRlciI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJwYWdlIjogewogICAgICAiKiI6IHsKICAgICAgICAib3V0c3BhY2UiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJjb2xvciI6IHsKICAgICAgICAgICAgICAic29saWQiOiB7CiAgICAgICAgICAgICAgICAiY29sb3IiOiAiI0ZGRkZGRiIKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAidHJhbnNwYXJlbmN5IjogMTAwCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9CiAgfQp9", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '21794' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/reports + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:27 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/558f115e-aa78-431a-bfab-8020c58ec3fc + Pragma: + - no-cache + RequestId: + - 519b5108-bfb9-4fb0-a072-8f6f1321ee90 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 558f115e-aa78-431a-bfab-8020c58ec3fc + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/558f115e-aa78-431a-bfab-8020c58ec3fc + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:36:28.0624852", + "lastUpdatedTimeUtc": "2026-01-29T09:36:28.6416554", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:49 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/558f115e-aa78-431a-bfab-8020c58ec3fc/result + Pragma: + - no-cache + RequestId: + - 3f3f0c32-787f-4af4-a8c1-63d0064c84f3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 558f115e-aa78-431a-bfab-8020c58ec3fc + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/558f115e-aa78-431a-bfab-8020c58ec3fc/result + response: + body: + string: '{"id": "7723407d-905c-4fb9-b173-72d41e4349d0", "type": "Report", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:36:49 GMT + Pragma: + - no-cache + RequestId: + - 930c3c39-c1c0-4a69-8f8e-64a6f09ec6cc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:50 GMT + Pragma: + - no-cache + RequestId: + - a63d62db-4588-41d8-856b-2431eccf6510 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "7723407d-905c-4fb9-b173-72d41e4349d0", "type": "Report", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "0be7fbeb-7129-459c-802c-9768da9fee82", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '232' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:51 GMT + Pragma: + - no-cache + RequestId: + - 32760b22-b265-47b6-8b17-ad75cab2ca85 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/7723407d-905c-4fb9-b173-72d41e4349d0 + 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 09:36:52 GMT + Pragma: + - no-cache + RequestId: + - e0ac856b-7f4d-45bc-b0a2-dffff1d8fdc6 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:53 GMT + Pragma: + - no-cache + RequestId: + - d9384a2c-0b33-4b8f-bb3f-e667bede0078 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:54 GMT + Pragma: + - no-cache + RequestId: + - 78b89b59-3d6f-41ac-b6ca-94fa97790679 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:54 GMT + Pragma: + - no-cache + RequestId: + - 57f776cd-3fa3-4c46-8c2f-5bb69d04f9a6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[SQLDatabase].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[SQLDatabase].yaml new file mode 100644 index 00000000..5b8bf57b --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[SQLDatabase].yaml @@ -0,0 +1,607 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:56 GMT + Pragma: + - no-cache + RequestId: + - ec9c9345-fdf8-4db6-a27d-8bc60c386244 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:56 GMT + Pragma: + - no-cache + RequestId: + - 6b2ff531-da5b-4e41-8126-5965f78d3344 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:57 GMT + Pragma: + - no-cache + RequestId: + - ff59eb6e-46ae-4733-a5cf-97360bfb0a05 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "SQLDatabase", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/sqlDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:36:58 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a1f59a15-17ad-4164-aedc-b8cda42b5212 + Pragma: + - no-cache + RequestId: + - 7c570807-b7d6-4ba6-986e-0f13e62050c5 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - a1f59a15-17ad-4164-aedc-b8cda42b5212 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a1f59a15-17ad-4164-aedc-b8cda42b5212 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:36:58.5389737", + "lastUpdatedTimeUtc": "2026-01-29T09:37:15.3414849", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + 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 09:37:19 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a1f59a15-17ad-4164-aedc-b8cda42b5212/result + Pragma: + - no-cache + RequestId: + - 812fe3b7-7134-44cc-983b-5d267d8099c7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a1f59a15-17ad-4164-aedc-b8cda42b5212 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a1f59a15-17ad-4164-aedc-b8cda42b5212/result + response: + body: + string: '{"id": "4dc63181-ea72-47c2-befe-6032fe8ae8aa", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:37:20 GMT + Pragma: + - no-cache + RequestId: + - a89965fd-f93c-489f-b927-b194f4ad9e20 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:21 GMT + Pragma: + - no-cache + RequestId: + - 8df2f851-4a92-4679-9ecc-0f90857567e9 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "4dc63181-ea72-47c2-befe-6032fe8ae8aa", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '240' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:22 GMT + Pragma: + - no-cache + RequestId: + - df56a8af-ae80-43fb-9983-5161cac59994 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/4dc63181-ea72-47c2-befe-6032fe8ae8aa + 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 09:37:22 GMT + Pragma: + - no-cache + RequestId: + - 6b1d075a-26c6-488f-bcc6-c124c5b85074 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:23 GMT + Pragma: + - no-cache + RequestId: + - 23068cdc-6abe-4f28-8602-741174c6bab5 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:24 GMT + Pragma: + - no-cache + RequestId: + - 9c55fd58-67d8-4bba-9348-3143c9514c8f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:25 GMT + Pragma: + - no-cache + RequestId: + - eea36360-6f81-470b-a4b3-7ec570b8e274 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[SemanticModel].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[SemanticModel].yaml new file mode 100644 index 00000000..764eb379 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[SemanticModel].yaml @@ -0,0 +1,612 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:25 GMT + Pragma: + - no-cache + RequestId: + - 3b6270f4-ef0d-460f-8eca-1f7e651a3205 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:26 GMT + Pragma: + - no-cache + RequestId: + - a5e6d8d9-8579-4e55-9fce-39b946f63259 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:27 GMT + Pragma: + - no-cache + RequestId: + - 053abded-2186-4f21-81cf-390eaa664ac6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "SemanticModel", "folderId": null, "definition": {"parts": [{"path": ".platform", + "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNlbWFudGljTW9kZWwiLAogICAgImRpc3BsYXlOYW1lIjogIkJsYW5rIgogIH0sCiAgImNvbmZpZyI6IHsKICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAibG9naWNhbElkIjogIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIKICB9Cn0=", + "payloadType": "InlineBase64"}, {"path": "definition.pbism", "payload": "ewogICJ2ZXJzaW9uIjogIjQuMCIsCiAgInNldHRpbmdzIjoge30KfQ==", + "payloadType": "InlineBase64"}, {"path": "definition/database.tmdl", "payload": + "ZGF0YWJhc2UKCWNvbXBhdGliaWxpdHlMZXZlbDogMTU2MQoK", "payloadType": "InlineBase64"}, + {"path": "definition/model.tmdl", "payload": "bW9kZWwgTW9kZWwKCWN1bHR1cmU6IGVuLVVTCglkZWZhdWx0UG93ZXJCSURhdGFTb3VyY2VWZXJzaW9uOiBwb3dlckJJX1YzCglzb3VyY2VRdWVyeUN1bHR1cmU6IGVuLVVTCglkYXRhQWNjZXNzT3B0aW9ucwoJCWxlZ2FjeVJlZGlyZWN0cwoJCXJldHVybkVycm9yVmFsdWVzQXNOdWxsCgphbm5vdGF0aW9uIFBCSV9RdWVyeU9yZGVyID0gWyJUYWJsZSJdCgphbm5vdGF0aW9uIF9fUEJJX1RpbWVJbnRlbGxpZ2VuY2VFbmFibGVkID0gMQoKYW5ub3RhdGlvbiBQQklEZXNrdG9wVmVyc2lvbiA9IDIuMTQwLjc1MTAuMSAoTWFpbikrYjM2NmM1ODEzNGRkNDJkZjk0MmU5YmJhNjUzNzlmM2YyMzk3M2VlMAoKcmVmIHRhYmxlIFRhYmxl", + "payloadType": "InlineBase64"}, {"path": "definition/tables/Table.tmdl", "payload": + "dGFibGUgVGFibGUKCWxpbmVhZ2VUYWc6IDFmY2QyZDhjLTkzZDYtNGU2Zi1hYjg2LThjMDU5YzhhODk4ZAoKCWNvbHVtbiBDb2x1bW4xCgkJZGF0YVR5cGU6IHN0cmluZwoJCWxpbmVhZ2VUYWc6IGIxNGI3M2UwLTI0NDctNDNlYi04ZWU1LTA2ZDQ3NTMxYzQxZAoJCXN1bW1hcml6ZUJ5OiBub25lCgkJc291cmNlQ29sdW1uOiBDb2x1bW4xCgoJCWFubm90YXRpb24gU3VtbWFyaXphdGlvblNldEJ5ID0gQXV0b21hdGljCgoJY29sdW1uIENvbHVtbjIKCQlkYXRhVHlwZTogc3RyaW5nCgkJbGluZWFnZVRhZzogZGE5YWMzNDUtMTFmMS00NGY5LThlNGItMDJjZmNhZGI4OTU3CgkJc3VtbWFyaXplQnk6IG5vbmUKCQlzb3VyY2VDb2x1bW46IENvbHVtbjIKCgkJYW5ub3RhdGlvbiBTdW1tYXJpemF0aW9uU2V0QnkgPSBBdXRvbWF0aWMKCglwYXJ0aXRpb24gVGFibGUgPSBtCgkJbW9kZTogaW1wb3J0CgkJc291cmNlID0KCQkJCWxldAoJCQkJICBTb3VyY2UgPSBUYWJsZS5Gcm9tUm93cyhKc29uLkRvY3VtZW50KEJpbmFyeS5EZWNvbXByZXNzKEJpbmFyeS5Gcm9tVGV4dCgiaTQ1V0tqRlUwZ0VSc2JFQSIsIEJpbmFyeUVuY29kaW5nLkJhc2U2NCksIENvbXByZXNzaW9uLkRlZmxhdGUpKSwgbGV0IF90ID0gKCh0eXBlIG51bGxhYmxlIHRleHQpIG1ldGEgW1NlcmlhbGl6ZWQuVGV4dCA9IHRydWVdKSBpbiB0eXBlIHRhYmxlIFtDb2x1bW4xID0gX3QsIENvbHVtbjIgPSBfdF0pLAoJCQkJICAjIkNoYW5nZWQgY29sdW1uIHR5cGUiID0gVGFibGUuVHJhbnNmb3JtQ29sdW1uVHlwZXMoU291cmNlLCB7fSkKCQkJCWluCgkJCQkgICMiQ2hhbmdlZCBjb2x1bW4gdHlwZSIKCglhbm5vdGF0aW9uIFBCSV9SZXN1bHRUeXBlID0gVGFibGUKCg==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2668' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/semanticModels + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:28 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/af68711d-10af-48fd-9756-fc8883869a1c + Pragma: + - no-cache + RequestId: + - 4bba5c47-274a-418d-9538-20aeac3c52d3 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - af68711d-10af-48fd-9756-fc8883869a1c + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/af68711d-10af-48fd-9756-fc8883869a1c + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:37:28.5167359", + "lastUpdatedTimeUtc": "2026-01-29T09:37:39.0958406", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:49 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/af68711d-10af-48fd-9756-fc8883869a1c/result + Pragma: + - no-cache + RequestId: + - d6cceb00-975d-4260-bcc3-fca20729d1c9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - af68711d-10af-48fd-9756-fc8883869a1c + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/af68711d-10af-48fd-9756-fc8883869a1c/result + response: + body: + string: '{"id": "5070c457-b1b8-4982-a5a4-9ddebecde469", "type": "SemanticModel", + "displayName": "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:37:50 GMT + Pragma: + - no-cache + RequestId: + - 3460f002-4d98-4ca8-89c4-2358ad4d4210 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:50 GMT + Pragma: + - no-cache + RequestId: + - 35275cd7-bb14-4db3-9ea6-79f9d2a85f1f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "5070c457-b1b8-4982-a5a4-9ddebecde469", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '215' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:51 GMT + Pragma: + - no-cache + RequestId: + - 535eb6f2-dcbc-41fb-926a-e0ebcc3fc3b8 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/5070c457-b1b8-4982-a5a4-9ddebecde469 + 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 09:37:53 GMT + Pragma: + - no-cache + RequestId: + - 59cc0431-2af4-47a8-abce-d64f3c6cf72b + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:53 GMT + Pragma: + - no-cache + RequestId: + - 02db175d-1ab7-4862-90bf-e05138bd2d52 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:55 GMT + Pragma: + - no-cache + RequestId: + - 88a80282-044f-42c8-8af9-e2060e0f3f53 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:55 GMT + Pragma: + - no-cache + RequestId: + - b208ca18-74a9-49a0-89c4-8251de712f36 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[SparkJobDefinition].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[SparkJobDefinition].yaml new file mode 100644 index 00000000..43c2cb7f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[SparkJobDefinition].yaml @@ -0,0 +1,508 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:56 GMT + Pragma: + - no-cache + RequestId: + - d4bb4752-8142-4b08-8d7f-235cf79b284a + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:56 GMT + Pragma: + - no-cache + RequestId: + - 31ed39b3-b89e-435f-b476-5d450eae5edd + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:58 GMT + Pragma: + - no-cache + RequestId: + - 35d358e0-695b-4c46-b856-63ebdfe98d51 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "SparkJobDefinition", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '116' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/sparkJobDefinitions + response: + body: + string: '{"id": "be501768-1997-41e6-9da4-6902971f6f33", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '173' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:00 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - a26318a5-0451-4c25-b96b-23089a37718f + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:37:59 GMT + Pragma: + - no-cache + RequestId: + - 2ee1a2de-b2ed-40ff-a6db-a0641481625b + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "be501768-1997-41e6-9da4-6902971f6f33", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '244' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:01 GMT + Pragma: + - no-cache + RequestId: + - 78061a0e-ffe7-4687-9a83-abc737aa8377 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/be501768-1997-41e6-9da4-6902971f6f33 + 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 09:38:02 GMT + Pragma: + - no-cache + RequestId: + - e5a6dca5-6cee-4d7b-a32c-eb865e20ee65 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:02 GMT + Pragma: + - no-cache + RequestId: + - 1ce9c8c1-bc53-4e8e-a890-ae1fa64de76f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:03 GMT + Pragma: + - no-cache + RequestId: + - b5c34adf-9781-4700-9f1d-6555d64cf4d4 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:03 GMT + Pragma: + - no-cache + RequestId: + - 68235354-da68-44ce-8fd6-d5b5302e68d3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[UserDataFunction].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[UserDataFunction].yaml new file mode 100644 index 00000000..88b14654 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[UserDataFunction].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "c0ca0e3a-cbea-4451-b826-6a228a2839f5", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2802' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:37:22 GMT + Pragma: + - no-cache + RequestId: + - fdfa7390-a537-48a3-b86b-2793180b9e26 + 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/c0ca0e3a-cbea-4451-b826-6a228a2839f5/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, 05 Feb 2026 07:37:22 GMT + Pragma: + - no-cache + RequestId: + - d6111fe9-d5d2-41e9-a521-256b605d8ca3 + 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/c0ca0e3a-cbea-4451-b826-6a228a2839f5/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, 05 Feb 2026 07:37:23 GMT + Pragma: + - no-cache + RequestId: + - c4097e55-ed14-4184-b4fa-b88789127716 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "UserDataFunction", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '114' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/c0ca0e3a-cbea-4451-b826-6a228a2839f5/userdatafunctions + response: + body: + string: '{"id": "c5111876-fc9f-4694-afd7-fd5bd3123696", "type": "UserDataFunction", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "c0ca0e3a-cbea-4451-b826-6a228a2839f5"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '171' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:37:26 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - fd13e303-a501-4081-93b2-415b3f6382cd + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "c0ca0e3a-cbea-4451-b826-6a228a2839f5", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2802' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:37:28 GMT + Pragma: + - no-cache + RequestId: + - cfb0a3ae-50e7-423f-93d1-abad2e210273 + 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/c0ca0e3a-cbea-4451-b826-6a228a2839f5/items + response: + body: + string: '{"value": [{"id": "c5111876-fc9f-4694-afd7-fd5bd3123696", "type": "UserDataFunction", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "c0ca0e3a-cbea-4451-b826-6a228a2839f5"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '184' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:37:29 GMT + Pragma: + - no-cache + RequestId: + - 6b4f9b14-3054-4073-9cfc-4524e26659ab + 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/c0ca0e3a-cbea-4451-b826-6a228a2839f5/items/c5111876-fc9f-4694-afd7-fd5bd3123696 + 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, 05 Feb 2026 07:37:29 GMT + Pragma: + - no-cache + RequestId: + - 1feb6e06-ac6e-4ccb-80a9-845b9fadfb0f + 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": "c0ca0e3a-cbea-4451-b826-6a228a2839f5", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2802' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:37:31 GMT + Pragma: + - no-cache + RequestId: + - a65e421e-7960-43cd-8a79-e5d92d986240 + 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/c0ca0e3a-cbea-4451-b826-6a228a2839f5/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, 05 Feb 2026 07:37:31 GMT + Pragma: + - no-cache + RequestId: + - 08f95dae-bd17-4b9c-a044-19982e7008b7 + 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/c0ca0e3a-cbea-4451-b826-6a228a2839f5/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, 05 Feb 2026 07:37:32 GMT + Pragma: + - no-cache + RequestId: + - 631c644e-e2b3-451d-9d54-880691612495 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Warehouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Warehouse].yaml new file mode 100644 index 00000000..4b47ba13 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_success[Warehouse].yaml @@ -0,0 +1,607 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:05 GMT + Pragma: + - no-cache + RequestId: + - ebdc0e7e-274c-456d-9931-1f650462065e + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:06 GMT + Pragma: + - no-cache + RequestId: + - 1b6e7d4a-eb76-47ef-bf1c-abb3c270a2b5 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:06 GMT + Pragma: + - no-cache + RequestId: + - 9197ec94-6802-416a-bb64-95c609cbf4bc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Warehouse", "folderId": null, "creationPayload": {"defaultCollation": "Latin1_General_100_BIN2_UTF8"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '180' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/warehouses + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:07 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4265bd3e-9969-4243-b02f-2dd96281a1d2 + Pragma: + - no-cache + RequestId: + - b18824b3-888e-428f-a085-c096cf5c0883 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 4265bd3e-9969-4243-b02f-2dd96281a1d2 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4265bd3e-9969-4243-b02f-2dd96281a1d2 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:38:08.446752", + "lastUpdatedTimeUtc": "2026-01-29T09:38:20.6836906", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:28 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4265bd3e-9969-4243-b02f-2dd96281a1d2/result + Pragma: + - no-cache + RequestId: + - 6b91d122-8db7-4772-8c48-ae3bb6fa83af + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 4265bd3e-9969-4243-b02f-2dd96281a1d2 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4265bd3e-9969-4243-b02f-2dd96281a1d2/result + response: + body: + string: '{"id": "8038d796-9590-4f4e-af09-99b75f0d3868", "type": "Warehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:38:29 GMT + Pragma: + - no-cache + RequestId: + - 0d11a824-bb4a-440d-8a99-cfd62db1d418 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:31 GMT + Pragma: + - no-cache + RequestId: + - 4f406018-6a6d-4450-9ccc-53f9d5bffc73 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8038d796-9590-4f4e-af09-99b75f0d3868", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '241' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:31 GMT + Pragma: + - no-cache + RequestId: + - 991f4274-62f8-4379-984c-49d1b7c2e667 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items/8038d796-9590-4f4e-af09-99b75f0d3868 + 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 09:38:32 GMT + Pragma: + - no-cache + RequestId: + - 280345e1-6e35-4d66-9232-ffec05a627bf + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:32 GMT + Pragma: + - no-cache + RequestId: + - 88e1faaf-a702-4db1-a79e-0e5632e1d3f3 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:34 GMT + Pragma: + - no-cache + RequestId: + - 57583769-e416-482b-b42c-9c7931ecd783 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:38:34 GMT + Pragma: + - no-cache + RequestId: + - 88594929-c0ce-42f0-8bbc-3f7564b25f5f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[CopyJob].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[CopyJob].yaml new file mode 100644 index 00000000..7115c862 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[CopyJob].yaml @@ -0,0 +1,454 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:15 GMT + Pragma: + - no-cache + RequestId: + - 2adca497-8849-46de-98d6-b7d3911b613a + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1138' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:16 GMT + Pragma: + - no-cache + RequestId: + - 717c8808-f048-4de9-8bb7-8496ab4b92b1 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1138' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:17 GMT + Pragma: + - no-cache + RequestId: + - a94f6855-4ac0-4928-8a38-c921d4ec6d8b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "CopyJob", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/copyJobs + response: + body: + string: '{"id": "54611223-76df-4734-8f7d-48ad10311a13", "type": "CopyJob", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '165' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:21 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - ea2bce11-1856-4334-9a28-ad77e5b60718 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:22 GMT + Pragma: + - no-cache + RequestId: + - 109ee3d2-9309-4eff-9525-96cda6b0a2a4 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "54611223-76df-4734-8f7d-48ad10311a13", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:22 GMT + Pragma: + - no-cache + RequestId: + - e2909540-972b-4032-a8c7-22793e308af6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[CosmosDBDatabase].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[CosmosDBDatabase].yaml new file mode 100644 index 00000000..fa813f5e --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[CosmosDBDatabase].yaml @@ -0,0 +1,454 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "20e4c8f8-f961-49fd-947f-28f477f881fb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2460' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:05 GMT + Pragma: + - no-cache + RequestId: + - 296f3735-5af9-47e1-a6f4-ab2100719a57 + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "908b2795-d84e-4e0a-9f41-bdc1e6471582", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "0950972e-2faa-4809-8944-e227912b77d2", + "type": "UserDataFunction", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '478' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:05 GMT + Pragma: + - no-cache + RequestId: + - 87aa9b75-159f-4d33-b28d-336bf4368932 + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "908b2795-d84e-4e0a-9f41-bdc1e6471582", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "0950972e-2faa-4809-8944-e227912b77d2", + "type": "UserDataFunction", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '478' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:06 GMT + Pragma: + - no-cache + RequestId: + - 31978e2c-6148-436a-928d-3ea96c5ff481 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "CosmosDBDatabase", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '114' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/20e4c8f8-f961-49fd-947f-28f477f881fb/cosmosDbDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:07 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2a7573ca-1f7b-4171-a3e4-76d60a7590df + Pragma: + - no-cache + RequestId: + - f305b350-f52e-4dd6-8f5f-9d3c410f76cc + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 2a7573ca-1f7b-4171-a3e4-76d60a7590df + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2a7573ca-1f7b-4171-a3e4-76d60a7590df + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T13:08:07.5658318", + "lastUpdatedTimeUtc": "2026-02-03T13:08:14.4122476", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:28 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2a7573ca-1f7b-4171-a3e4-76d60a7590df/result + Pragma: + - no-cache + RequestId: + - 28168717-3f71-4c91-bafc-afe09e5a9d80 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 2a7573ca-1f7b-4171-a3e4-76d60a7590df + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2a7573ca-1f7b-4171-a3e4-76d60a7590df/result + response: + body: + string: '{"id": "0b658f74-106b-4eab-aca1-fc1313324744", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Tue, 03 Feb 2026 13:08:28 GMT + Pragma: + - no-cache + RequestId: + - 485c0651-d2e1-435c-b788-4d2b5fc193f0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "20e4c8f8-f961-49fd-947f-28f477f881fb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2460' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:29 GMT + Pragma: + - no-cache + RequestId: + - 03ccf2e6-84ea-416c-af4f-eb389d270cee + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "908b2795-d84e-4e0a-9f41-bdc1e6471582", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "0950972e-2faa-4809-8944-e227912b77d2", + "type": "UserDataFunction", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "0b658f74-106b-4eab-aca1-fc1313324744", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '526' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:30 GMT + Pragma: + - no-cache + RequestId: + - b4d13764-db81-4671-a090-900d8c367ecd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[DataPipeline].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[DataPipeline].yaml new file mode 100644 index 00000000..aed14df7 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[DataPipeline].yaml @@ -0,0 +1,317 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:07 GMT + Pragma: + - no-cache + RequestId: + - fa349575-cf9c-4788-bd4f-6b0c62991256 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '247' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:07 GMT + Pragma: + - no-cache + RequestId: + - b1cfedc6-f369-461e-9747-d1aa65e1a9b5 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '247' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:08 GMT + Pragma: + - no-cache + RequestId: + - a980ffe9-2bbd-47b6-8fec-556bfea6610b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "DataPipeline", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/dataPipelines + response: + body: + string: '{"id": "bb27247d-5842-4280-bc11-ece193543087", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '171' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:12 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 545b82f3-f95c-465c-98b8-4d21035e4213 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:13 GMT + Pragma: + - no-cache + RequestId: + - a2651dbd-6889-4775-a432-14cab085cdf8 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '307' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:14 GMT + Pragma: + - no-cache + RequestId: + - 24338bab-bb84-475c-9370-6097ac6514e0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Dataflow].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Dataflow].yaml new file mode 100644 index 00000000..d7a6b645 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Dataflow].yaml @@ -0,0 +1,467 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:30 GMT + Pragma: + - no-cache + RequestId: + - 14be5c50-f5fd-4436-a7bc-0ce1596653e4 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "54611223-76df-4734-8f7d-48ad10311a13", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "c3043c0b-05f4-4531-a900-a6ce04f25f81", + "type": "GraphQLApi", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1228' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:31 GMT + Pragma: + - no-cache + RequestId: + - b486578e-187f-42c7-93fd-6164cfd45831 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "54611223-76df-4734-8f7d-48ad10311a13", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "c3043c0b-05f4-4531-a900-a6ce04f25f81", + "type": "GraphQLApi", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1228' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:32 GMT + Pragma: + - no-cache + RequestId: + - 4a1c03dd-8db3-4e89-9353-2d899710eaa5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Dataflow", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '106' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/dataflows + response: + body: + string: '{"id": "f9bf6cdd-d5bb-4579-9dcd-c832af73b799", "type": "Dataflow", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '164' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:35 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - fa51dce2-e370-445a-ac5c-75cdcbbb3f2a + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:35 GMT + Pragma: + - no-cache + RequestId: + - bec6cae1-008d-44d7-9801-02b1d72c3a27 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "54611223-76df-4734-8f7d-48ad10311a13", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "c3043c0b-05f4-4531-a900-a6ce04f25f81", + "type": "GraphQLApi", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "f9bf6cdd-d5bb-4579-9dcd-c832af73b799", + "type": "Dataflow", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1268' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:36 GMT + Pragma: + - no-cache + RequestId: + - 105c34fc-beea-4adf-abb1-c51abdc972a1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[DigitalTwinBuilder].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[DigitalTwinBuilder].yaml new file mode 100644 index 00000000..4ca3402d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[DigitalTwinBuilder].yaml @@ -0,0 +1,421 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "20e4c8f8-f961-49fd-947f-28f477f881fb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2460' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:22 GMT + Pragma: + - no-cache + RequestId: + - 3d12ea73-f727-410d-89a1-d1aa22a594e6 + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '218' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:23 GMT + Pragma: + - no-cache + RequestId: + - 2e42c016-8b01-4bc1-9122-bb80b30db414 + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '218' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:23 GMT + Pragma: + - no-cache + RequestId: + - 1d717432-7517-46fe-a63b-384d2b13b284 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "DigitalTwinBuilder", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '116' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/20e4c8f8-f961-49fd-947f-28f477f881fb/digitalTwinBuilders + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:26 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c07c220f-7710-46c6-9742-f125bf2bbe3d + Pragma: + - no-cache + RequestId: + - 2c7d5777-e439-4bef-ab24-713823a30378 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - c07c220f-7710-46c6-9742-f125bf2bbe3d + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c07c220f-7710-46c6-9742-f125bf2bbe3d + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T13:07:25.2629877", + "lastUpdatedTimeUtc": "2026-02-03T13:07:32.4976605", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:47 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c07c220f-7710-46c6-9742-f125bf2bbe3d/result + Pragma: + - no-cache + RequestId: + - 3a5e26da-bee6-4fbe-84b2-d28c9c44e106 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - c07c220f-7710-46c6-9742-f125bf2bbe3d + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c07c220f-7710-46c6-9742-f125bf2bbe3d/result + response: + body: + string: '{"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Tue, 03 Feb 2026 13:07:48 GMT + Pragma: + - no-cache + RequestId: + - bdbfe349-ad93-480c-a9bf-2bc018e8837e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "20e4c8f8-f961-49fd-947f-28f477f881fb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2460' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:49 GMT + Pragma: + - no-cache + RequestId: + - a32f598c-6eb2-47d2-8d37-7bf5115f0dde + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '381' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:50 GMT + Pragma: + - no-cache + RequestId: + - 48a49c3e-0a5d-4e19-804f-c08fa6e768e0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Environment].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Environment].yaml new file mode 100644 index 00000000..1cfcbc05 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Environment].yaml @@ -0,0 +1,325 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:14 GMT + Pragma: + - no-cache + RequestId: + - 429cf1d0-15d1-4e09-aa5a-10767902c67c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '307' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:14 GMT + Pragma: + - no-cache + RequestId: + - 591740a2-7ded-4db5-95dc-a65ea5849b9f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '307' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:15 GMT + Pragma: + - no-cache + RequestId: + - 73bfc8fc-b865-4abd-bb76-67c7f5ef0b7e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Environment", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/environments + response: + body: + string: '{"id": "70355090-c46a-477d-b112-0c71bc845076", "type": "Environment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:17 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - f96ba995-9a15-4427-8f73-d7b0efc41fdc + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:17 GMT + Pragma: + - no-cache + RequestId: + - b8ef71d4-6577-4932-8cab-7b2baef33b25 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260129093902", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "bb27247d-5842-4280-bc11-ece193543087", "type": "DataPipeline", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "70355090-c46a-477d-b112-0c71bc845076", "type": "Environment", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '394' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:18 GMT + Pragma: + - no-cache + RequestId: + - e02aec2d-1c27-49ec-bd7c-1746369c87fa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Eventhouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Eventhouse].yaml new file mode 100644 index 00000000..963a56e3 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Eventhouse].yaml @@ -0,0 +1,337 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:19 GMT + Pragma: + - no-cache + RequestId: + - d568c879-8c60-43d4-bfbb-1dedd817f15c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260129093902", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "bb27247d-5842-4280-bc11-ece193543087", "type": "DataPipeline", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "70355090-c46a-477d-b112-0c71bc845076", "type": "Environment", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '394' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:20 GMT + Pragma: + - no-cache + RequestId: + - 9baffd46-7ca9-4296-8c17-092a037f7847 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260129093902", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "bb27247d-5842-4280-bc11-ece193543087", "type": "DataPipeline", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "70355090-c46a-477d-b112-0c71bc845076", "type": "Environment", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '394' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:20 GMT + Pragma: + - no-cache + RequestId: + - d6477e87-20a1-47a1-97a1-74247e6b74fe + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Eventhouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '108' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/eventhouses + response: + body: + string: '{"id": "3937bde7-a583-44d3-a080-c450e6b73eff", "type": "Eventhouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:24 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 922f3dd7-d2b2-4a4d-bdfa-5ea6f91ee51e + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:25 GMT + Pragma: + - no-cache + RequestId: + - 9086aab9-9173-4c67-b46f-b9a05692e575 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260129093902", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "bb27247d-5842-4280-bc11-ece193543087", "type": "DataPipeline", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "70355090-c46a-477d-b112-0c71bc845076", "type": "Environment", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", "type": "Eventhouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", "type": "KQLDatabase", "displayName": + "fabcli000001", "description": "fabcli000001", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '475' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:25 GMT + Pragma: + - no-cache + RequestId: + - f0fc308d-6b81-4f88-a770-fe0fefad4fc0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Eventstream].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Eventstream].yaml new file mode 100644 index 00000000..94783b5c --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Eventstream].yaml @@ -0,0 +1,450 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:26 GMT + Pragma: + - no-cache + RequestId: + - ed076495-580e-418b-9727-badd7119db51 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260129093902", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "bb27247d-5842-4280-bc11-ece193543087", "type": "DataPipeline", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "70355090-c46a-477d-b112-0c71bc845076", "type": "Environment", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", "type": "Eventhouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", "type": "KQLDatabase", "displayName": + "fabcli000001", "description": "fabcli000001", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '475' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:26 GMT + Pragma: + - no-cache + RequestId: + - 8d84b2d5-bce4-45f8-8ffa-bba34bff9f3b + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260129093902", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "bb27247d-5842-4280-bc11-ece193543087", "type": "DataPipeline", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "70355090-c46a-477d-b112-0c71bc845076", "type": "Environment", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", "type": "Eventhouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", "type": "KQLDatabase", "displayName": + "fabcli000001", "description": "fabcli000001", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '475' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:27 GMT + Pragma: + - no-cache + RequestId: + - 5eb3c890-8fa4-4367-b1ee-3f9cb7c7f1ba + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Eventstream", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/eventstreams + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:28 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/24169e38-be43-48be-b384-ac576b1274b0 + Pragma: + - no-cache + RequestId: + - 9c6152c5-296b-4be2-bd85-1506a1911f10 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 24169e38-be43-48be-b384-ac576b1274b0 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/24169e38-be43-48be-b384-ac576b1274b0 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:39:28.7139217", + "lastUpdatedTimeUtc": "2026-01-29T09:39:31.7139388", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:49 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/24169e38-be43-48be-b384-ac576b1274b0/result + Pragma: + - no-cache + RequestId: + - 8c18f947-80f1-436a-a871-cb42479c4a73 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 24169e38-be43-48be-b384-ac576b1274b0 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/24169e38-be43-48be-b384-ac576b1274b0/result + response: + body: + string: '{"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", "type": "Eventstream", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:39:50 GMT + Pragma: + - no-cache + RequestId: + - 916a26c8-980e-4333-abc5-f2a509ce05e2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:50 GMT + Pragma: + - no-cache + RequestId: + - fe6c220f-d98c-4d92-81ee-7607988ed105 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '556' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:51 GMT + Pragma: + - no-cache + RequestId: + - c82dd09a-5405-44d6-bfd4-792f86c73ade + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[GraphQLApi].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[GraphQLApi].yaml new file mode 100644 index 00000000..46fc844e --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[GraphQLApi].yaml @@ -0,0 +1,461 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:24 GMT + Pragma: + - no-cache + RequestId: + - daecc839-c0e1-4b4c-9ff5-9c7d3f77fa55 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "54611223-76df-4734-8f7d-48ad10311a13", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:24 GMT + Pragma: + - no-cache + RequestId: + - 8add731b-6720-4ed0-a928-b007e45f2172 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "54611223-76df-4734-8f7d-48ad10311a13", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:25 GMT + Pragma: + - no-cache + RequestId: + - 6d6e0ec5-8f83-4e32-9556-ab63e73c2bbe + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "GraphQLApi", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '108' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/graphqlapis + response: + body: + string: '{"id": "c3043c0b-05f4-4531-a900-a6ce04f25f81", "type": "GraphQLApi", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '172' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:27 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 3cab2510-f928-4132-8b6f-1d684bcfcbae + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:28 GMT + Pragma: + - no-cache + RequestId: + - a3102268-a0b0-4761-9ea9-4d69e3cae448 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "54611223-76df-4734-8f7d-48ad10311a13", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "c3043c0b-05f4-4531-a900-a6ce04f25f81", + "type": "GraphQLApi", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1228' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:29 GMT + Pragma: + - no-cache + RequestId: + - 7d008939-ee62-440d-a5cf-b691e3043349 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[GraphQuerySet].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[GraphQuerySet].yaml new file mode 100644 index 00000000..ba1735a2 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[GraphQuerySet].yaml @@ -0,0 +1,341 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "20e4c8f8-f961-49fd-947f-28f477f881fb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2460' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:50 GMT + Pragma: + - no-cache + RequestId: + - 23fb9a13-b89b-4f4d-93ce-6fa59d4f7186 + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '381' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:52 GMT + Pragma: + - no-cache + RequestId: + - 39fd2fbf-b1e7-4bbf-9d2c-5da758855323 + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '381' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:53 GMT + Pragma: + - no-cache + RequestId: + - a61b4aeb-eefa-4643-8f05-4bfc1e8f3d17 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "GraphQuerySet", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '111' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/20e4c8f8-f961-49fd-947f-28f477f881fb/GraphQuerySets + response: + body: + string: '{"id": "908b2795-d84e-4e0a-9f41-bdc1e6471582", "type": "GraphQuerySet", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '172' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:54 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 1343e214-5351-46ef-bdf8-17b344a569ba + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "20e4c8f8-f961-49fd-947f-28f477f881fb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2460' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:55 GMT + Pragma: + - no-cache + RequestId: + - 51f9017d-ed06-4906-bec1-785f35222b8f + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "908b2795-d84e-4e0a-9f41-bdc1e6471582", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '429' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:55 GMT + Pragma: + - no-cache + RequestId: + - f61ee107-0cbe-4496-b106-e7e62f91acd6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[KQLDashboard].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[KQLDashboard].yaml new file mode 100644 index 00000000..dfff9b0e --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[KQLDashboard].yaml @@ -0,0 +1,362 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:52 GMT + Pragma: + - no-cache + RequestId: + - cde58057-7dab-4018-b0f5-7549005195d7 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '556' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:53 GMT + Pragma: + - no-cache + RequestId: + - 51965d1f-807e-42da-b742-909a7048c48b + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '556' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:55 GMT + Pragma: + - no-cache + RequestId: + - 14c71eac-bbf5-4a86-88e8-cc7913f18cee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "KQLDashboard", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/kqlDashboards + response: + body: + string: '{"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", "type": "KQLDashboard", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:56 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 948429a9-b9e4-4a8d-a1ea-8afb598b79c3 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:57 GMT + Pragma: + - no-cache + RequestId: + - 2c65b5ad-990b-43c5-b282-827f0dfbc3bd + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '598' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:58 GMT + Pragma: + - no-cache + RequestId: + - 9d324ba8-90cf-45f9-8e16-7ac36993edb8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[KQLQueryset].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[KQLQueryset].yaml new file mode 100644 index 00000000..5f26d800 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[KQLQueryset].yaml @@ -0,0 +1,368 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:39:59 GMT + Pragma: + - no-cache + RequestId: + - 5c9cc03d-7077-4c86-bf2e-ce259b71f2ce + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '598' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:00 GMT + Pragma: + - no-cache + RequestId: + - 6594234e-b6ca-4aac-8f61-ab040920c98f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '598' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:01 GMT + Pragma: + - no-cache + RequestId: + - aa293075-45bd-473b-9024-db3fff438387 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "KQLQueryset", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/kqlQuerysets + response: + body: + string: '{"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", "type": "KQLQueryset", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:03 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 97f18ecf-c593-4434-a58a-0a433d9af69f + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:04 GMT + Pragma: + - no-cache + RequestId: + - 90817449-2dd5-4f58-8418-3c91c57023a1 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '641' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:05 GMT + Pragma: + - no-cache + RequestId: + - b55b5035-4dc8-437e-81e8-69347b5129b6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Lakehouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Lakehouse].yaml new file mode 100644 index 00000000..758b9cf5 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Lakehouse].yaml @@ -0,0 +1,374 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:06 GMT + Pragma: + - no-cache + RequestId: + - 555bd01a-8b4a-4205-9465-56070e3c0b39 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '641' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:07 GMT + Pragma: + - no-cache + RequestId: + - 9429de88-8282-41c6-a935-c266ae4ef45c + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '641' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:07 GMT + Pragma: + - no-cache + RequestId: + - fd6a5291-ccbd-4797-8ad2-39bd6d10a06d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Lakehouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '107' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/lakehouses + response: + body: + string: '{"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:10 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 14be083c-cf8b-4784-bc65-fca33a54ab8e + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:11 GMT + Pragma: + - no-cache + RequestId: + - ffa88892-a950-448d-9cbb-cf5cc50a4dc9 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '678' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:13 GMT + Pragma: + - no-cache + RequestId: + - 2a3a8212-7ce8-48c6-b9fc-9de69fca7b18 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[MLExperiment].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[MLExperiment].yaml new file mode 100644 index 00000000..37d7835d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[MLExperiment].yaml @@ -0,0 +1,482 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:13 GMT + Pragma: + - no-cache + RequestId: + - 6b3c06e0-1278-4533-a5fe-253f934c4967 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '678' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:14 GMT + Pragma: + - no-cache + RequestId: + - 8ee95891-e6d6-4396-be9e-7162443c60ab + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '678' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:15 GMT + Pragma: + - no-cache + RequestId: + - d53f6b0e-a9c8-416e-ba31-5ac2885c7e7c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "MLExperiment", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/mlExperiments + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:16 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/27cd9652-609a-4aaa-94ff-921ba1f79eb7 + Pragma: + - no-cache + RequestId: + - 116de36f-b989-400c-b89b-625d8f33b165 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 27cd9652-609a-4aaa-94ff-921ba1f79eb7 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/27cd9652-609a-4aaa-94ff-921ba1f79eb7 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:40:16.5205939", + "lastUpdatedTimeUtc": "2026-01-29T09:40:17.395598", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:37 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/27cd9652-609a-4aaa-94ff-921ba1f79eb7/result + Pragma: + - no-cache + RequestId: + - 95383d52-ca37-4af4-a1f0-f90b9aa4a96a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 27cd9652-609a-4aaa-94ff-921ba1f79eb7 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/27cd9652-609a-4aaa-94ff-921ba1f79eb7/result + response: + body: + string: '{"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", "type": "MLExperiment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:40:38 GMT + Pragma: + - no-cache + RequestId: + - c109414f-8b53-4940-83e1-5e7891de761d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:39 GMT + Pragma: + - no-cache + RequestId: + - 98eaf7ee-51a8-4179-a815-026a0015ab4e + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '755' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:40 GMT + Pragma: + - no-cache + RequestId: + - 87904181-ef1d-4fa2-8ae0-5ea54fdeb1b9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[MLModel].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[MLModel].yaml new file mode 100644 index 00000000..d5bb8587 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[MLModel].yaml @@ -0,0 +1,491 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:41 GMT + Pragma: + - no-cache + RequestId: + - fae71317-387e-4f2a-b539-2e01a5a5b7b0 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '755' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:41 GMT + Pragma: + - no-cache + RequestId: + - 24bcbd86-3b16-422f-8260-6e05af3812fb + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '755' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:42 GMT + Pragma: + - no-cache + RequestId: + - 59aa5189-06d4-4599-98c4-494088bb7426 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "MLModel", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/mlModels + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:40:44 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/98aedf14-7fcb-4292-8314-e4feeb25239c + Pragma: + - no-cache + RequestId: + - 9b09c303-a142-4b70-b526-1c3bf2eab95c + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 98aedf14-7fcb-4292-8314-e4feeb25239c + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/98aedf14-7fcb-4292-8314-e4feeb25239c + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:40:43.8555251", + "lastUpdatedTimeUtc": "2026-01-29T09:40:44.543025", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:04 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/98aedf14-7fcb-4292-8314-e4feeb25239c/result + Pragma: + - no-cache + RequestId: + - 8bb6a1fe-34fe-4f67-9b63-23e61dcc657e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 98aedf14-7fcb-4292-8314-e4feeb25239c + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/98aedf14-7fcb-4292-8314-e4feeb25239c/result + response: + body: + string: '{"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", "type": "MLModel", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:41:05 GMT + Pragma: + - no-cache + RequestId: + - 1e40d4ee-d0c5-41bc-8a61-15c96816ba10 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:06 GMT + Pragma: + - no-cache + RequestId: + - 231760da-da38-4ef4-be52-538ba0f6e457 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '796' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:06 GMT + Pragma: + - no-cache + RequestId: + - 1e926dea-527e-4faa-98b0-6b1fe18b234f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[MirroredDatabase].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[MirroredDatabase].yaml new file mode 100644 index 00000000..c7be9962 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[MirroredDatabase].yaml @@ -0,0 +1,400 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:08 GMT + Pragma: + - no-cache + RequestId: + - 2976139f-c544-4d4b-a13b-4497e996e1af + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '796' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:08 GMT + Pragma: + - no-cache + RequestId: + - 9e15f2ae-9bd0-4e20-a3e8-4c2240652bde + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '796' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:09 GMT + Pragma: + - no-cache + RequestId: + - 181d808a-bd3f-4279-b149-e5a15c3c646e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "MirroredDatabase", "folderId": null, "definition": {"parts": [{"path": "mirroring.json", + "payload": "ewogICAgInByb3BlcnRpZXMiOiB7CiAgICAgICAgInNvdXJjZSI6IHsKICAgICAgICAgICAgInR5cGUiOiAiR2VuZXJpY01pcnJvciIsCiAgICAgICAgICAgICJ0eXBlUHJvcGVydGllcyI6IHt9CiAgICAgICAgfSwKICAgICAgICAidGFyZ2V0IjogewogICAgICAgICAgICAidHlwZSI6ICJNb3VudGVkUmVsYXRpb25hbERhdGFiYXNlIiwKICAgICAgICAgICAgInR5cGVQcm9wZXJ0aWVzIjogewogICAgICAgICAgICAgICAgImZvcm1hdCI6ICJEZWx0YSIKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '603' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/mirroredDatabases + response: + body: + string: '{"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:11 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 5d690305-87e8-46a8-b353-1aefe74bcb5a + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:12 GMT + Pragma: + - no-cache + RequestId: + - e8b7b360-534b-4729-8502-63e92e828eeb + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '838' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:13 GMT + Pragma: + - no-cache + RequestId: + - 3c16a1cf-1195-4f84-b572-940fb7bd450b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Notebook].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Notebook].yaml new file mode 100644 index 00000000..cb747a44 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Notebook].yaml @@ -0,0 +1,508 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:14 GMT + Pragma: + - no-cache + RequestId: + - e695742e-9312-4155-a3ce-06b171aa9b46 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '838' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:15 GMT + Pragma: + - no-cache + RequestId: + - 89b24465-4927-40c6-bebc-3c9c2e0fd8a5 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '838' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:16 GMT + Pragma: + - no-cache + RequestId: + - 782421e3-9253-4d02-a7b8-1dc5f277d3f3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Notebook", "folderId": null, "definition": {"parts": [{"path": "notebook-content.py", + "payload": "IyBGYWJyaWMgbm90ZWJvb2sgc291cmNlCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAia2VybmVsX2luZm8iOiB7CiMgTUVUQSAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgojIE1FVEEgICB9LAojIE1FVEEgICAiZGVwZW5kZW5jaWVzIjoge30KIyBNRVRBIH0KCiMgQ0VMTCAqKioqKioqKioqKioqKioqKioqKgoKIyBXZWxjb21lIHRvIHlvdXIgbmV3IG5vdGVib29rCiMgVHlwZSBoZXJlIGluIHRoZSBjZWxsIGVkaXRvciB0byBhZGQgY29kZSEKCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAibGFuZ3VhZ2UiOiAicHl0aG9uIiwKIyBNRVRBICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKIyBNRVRBIH0K", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '764' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/notebooks + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:16 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8515f388-2583-4a3d-b07c-2a7e5cbbefa4 + Pragma: + - no-cache + RequestId: + - 03cc589a-2c32-4a7e-8962-968754e6e409 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 8515f388-2583-4a3d-b07c-2a7e5cbbefa4 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8515f388-2583-4a3d-b07c-2a7e5cbbefa4 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:41:16.847199", + "lastUpdatedTimeUtc": "2026-01-29T09:41:18.0503392", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:38 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8515f388-2583-4a3d-b07c-2a7e5cbbefa4/result + Pragma: + - no-cache + RequestId: + - cda8f097-1186-4e5a-aab6-4bb77d0f8c2b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8515f388-2583-4a3d-b07c-2a7e5cbbefa4 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8515f388-2583-4a3d-b07c-2a7e5cbbefa4/result + response: + body: + string: '{"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:41:38 GMT + Pragma: + - no-cache + RequestId: + - 8813f159-b07b-424b-a5b8-362475878498 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:39 GMT + Pragma: + - no-cache + RequestId: + - 27388422-ff0b-4f80-8920-d710e9ca5059 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '910' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:40 GMT + Pragma: + - no-cache + RequestId: + - f340d272-6623-4d09-b611-6f87c9b99b70 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Reflex].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Reflex].yaml new file mode 100644 index 00000000..944a7f6f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Reflex].yaml @@ -0,0 +1,415 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:41 GMT + Pragma: + - no-cache + RequestId: + - 79cc2cf9-0320-4a7e-8a1d-34a07a87bbeb + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '910' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:41 GMT + Pragma: + - no-cache + RequestId: + - 441edee9-0b9a-4ee4-ac7c-43b35953a048 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '910' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:42 GMT + Pragma: + - no-cache + RequestId: + - c630f656-a77c-47ee-9bb2-7c1f91dccfe5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Reflex", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '104' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/reflexes + response: + body: + string: '{"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '164' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:45 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 019242f6-9471-40a7-ad1b-3ad0f5bb9911 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:45 GMT + Pragma: + - no-cache + RequestId: + - faeb7a46-cf0c-4a3d-90a9-c4b5886e8815 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '951' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:46 GMT + Pragma: + - no-cache + RequestId: + - 398c7faf-de77-4dae-8303-4fe7e4e019d6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[SQLDatabase].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[SQLDatabase].yaml new file mode 100644 index 00000000..cbf175ce --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[SQLDatabase].yaml @@ -0,0 +1,524 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:47 GMT + Pragma: + - no-cache + RequestId: + - a47a11c9-7f9a-4195-a4b9-70121baafbdb + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '951' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:48 GMT + Pragma: + - no-cache + RequestId: + - 0ca40742-0e25-4bd0-8ef0-5ea986b4463f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '951' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:49 GMT + Pragma: + - no-cache + RequestId: + - 8751018c-b6cf-47b0-9217-f5884fa63b38 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "SQLDatabase", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/sqlDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:41:51 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/e42da9d9-fffa-4d79-a6b8-eb9c3b428657 + Pragma: + - no-cache + RequestId: + - 3ec307b3-f790-43dd-b867-4e1216e94c80 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - e42da9d9-fffa-4d79-a6b8-eb9c3b428657 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/e42da9d9-fffa-4d79-a6b8-eb9c3b428657 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:41:50.8852107", + "lastUpdatedTimeUtc": "2026-01-29T09:42:04.9508528", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:12 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/e42da9d9-fffa-4d79-a6b8-eb9c3b428657/result + Pragma: + - no-cache + RequestId: + - 728d82e8-1e0a-4cef-857e-f10c99577f74 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - e42da9d9-fffa-4d79-a6b8-eb9c3b428657 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/e42da9d9-fffa-4d79-a6b8-eb9c3b428657/result + response: + body: + string: '{"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:42:13 GMT + Pragma: + - no-cache + RequestId: + - b8966bad-822c-49ad-9628-91e43c973c9c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:13 GMT + Pragma: + - no-cache + RequestId: + - da7b2ebf-4a18-4f13-b52d-ae1f8cdc2c58 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1019' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:14 GMT + Pragma: + - no-cache + RequestId: + - 48c06157-c8ae-4377-82f2-863c3af3b4bf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[SemanticModel].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[SemanticModel].yaml new file mode 100644 index 00000000..25541834 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[SemanticModel].yaml @@ -0,0 +1,539 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:15 GMT + Pragma: + - no-cache + RequestId: + - ba259504-cb59-4df1-9854-e5afc71c4619 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1019' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:16 GMT + Pragma: + - no-cache + RequestId: + - 712db5e4-12df-4e61-a473-b607bbb40f85 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1019' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:16 GMT + Pragma: + - no-cache + RequestId: + - a3e55da9-b66d-477e-a7e9-3c78914d87b6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "SemanticModel", "folderId": null, "definition": {"parts": [{"path": ".platform", + "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNlbWFudGljTW9kZWwiLAogICAgImRpc3BsYXlOYW1lIjogIkJsYW5rIgogIH0sCiAgImNvbmZpZyI6IHsKICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAibG9naWNhbElkIjogIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIKICB9Cn0=", + "payloadType": "InlineBase64"}, {"path": "definition.pbism", "payload": "ewogICJ2ZXJzaW9uIjogIjQuMCIsCiAgInNldHRpbmdzIjoge30KfQ==", + "payloadType": "InlineBase64"}, {"path": "definition/database.tmdl", "payload": + "ZGF0YWJhc2UKCWNvbXBhdGliaWxpdHlMZXZlbDogMTU2MQoK", "payloadType": "InlineBase64"}, + {"path": "definition/model.tmdl", "payload": "bW9kZWwgTW9kZWwKCWN1bHR1cmU6IGVuLVVTCglkZWZhdWx0UG93ZXJCSURhdGFTb3VyY2VWZXJzaW9uOiBwb3dlckJJX1YzCglzb3VyY2VRdWVyeUN1bHR1cmU6IGVuLVVTCglkYXRhQWNjZXNzT3B0aW9ucwoJCWxlZ2FjeVJlZGlyZWN0cwoJCXJldHVybkVycm9yVmFsdWVzQXNOdWxsCgphbm5vdGF0aW9uIFBCSV9RdWVyeU9yZGVyID0gWyJUYWJsZSJdCgphbm5vdGF0aW9uIF9fUEJJX1RpbWVJbnRlbGxpZ2VuY2VFbmFibGVkID0gMQoKYW5ub3RhdGlvbiBQQklEZXNrdG9wVmVyc2lvbiA9IDIuMTQwLjc1MTAuMSAoTWFpbikrYjM2NmM1ODEzNGRkNDJkZjk0MmU5YmJhNjUzNzlmM2YyMzk3M2VlMAoKcmVmIHRhYmxlIFRhYmxl", + "payloadType": "InlineBase64"}, {"path": "definition/tables/Table.tmdl", "payload": + "dGFibGUgVGFibGUKCWxpbmVhZ2VUYWc6IDFmY2QyZDhjLTkzZDYtNGU2Zi1hYjg2LThjMDU5YzhhODk4ZAoKCWNvbHVtbiBDb2x1bW4xCgkJZGF0YVR5cGU6IHN0cmluZwoJCWxpbmVhZ2VUYWc6IGIxNGI3M2UwLTI0NDctNDNlYi04ZWU1LTA2ZDQ3NTMxYzQxZAoJCXN1bW1hcml6ZUJ5OiBub25lCgkJc291cmNlQ29sdW1uOiBDb2x1bW4xCgoJCWFubm90YXRpb24gU3VtbWFyaXphdGlvblNldEJ5ID0gQXV0b21hdGljCgoJY29sdW1uIENvbHVtbjIKCQlkYXRhVHlwZTogc3RyaW5nCgkJbGluZWFnZVRhZzogZGE5YWMzNDUtMTFmMS00NGY5LThlNGItMDJjZmNhZGI4OTU3CgkJc3VtbWFyaXplQnk6IG5vbmUKCQlzb3VyY2VDb2x1bW46IENvbHVtbjIKCgkJYW5ub3RhdGlvbiBTdW1tYXJpemF0aW9uU2V0QnkgPSBBdXRvbWF0aWMKCglwYXJ0aXRpb24gVGFibGUgPSBtCgkJbW9kZTogaW1wb3J0CgkJc291cmNlID0KCQkJCWxldAoJCQkJICBTb3VyY2UgPSBUYWJsZS5Gcm9tUm93cyhKc29uLkRvY3VtZW50KEJpbmFyeS5EZWNvbXByZXNzKEJpbmFyeS5Gcm9tVGV4dCgiaTQ1V0tqRlUwZ0VSc2JFQSIsIEJpbmFyeUVuY29kaW5nLkJhc2U2NCksIENvbXByZXNzaW9uLkRlZmxhdGUpKSwgbGV0IF90ID0gKCh0eXBlIG51bGxhYmxlIHRleHQpIG1ldGEgW1NlcmlhbGl6ZWQuVGV4dCA9IHRydWVdKSBpbiB0eXBlIHRhYmxlIFtDb2x1bW4xID0gX3QsIENvbHVtbjIgPSBfdF0pLAoJCQkJICAjIkNoYW5nZWQgY29sdW1uIHR5cGUiID0gVGFibGUuVHJhbnNmb3JtQ29sdW1uVHlwZXMoU291cmNlLCB7fSkKCQkJCWluCgkJCQkgICMiQ2hhbmdlZCBjb2x1bW4gdHlwZSIKCglhbm5vdGF0aW9uIFBCSV9SZXN1bHRUeXBlID0gVGFibGUKCg==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2668' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/semanticModels + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:18 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1f7a63e5-f382-45c0-aa38-c42ec5a14a52 + Pragma: + - no-cache + RequestId: + - cfdafd50-d1c9-438d-8b92-62b87687a658 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 1f7a63e5-f382-45c0-aa38-c42ec5a14a52 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1f7a63e5-f382-45c0-aa38-c42ec5a14a52 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:42:18.4848798", + "lastUpdatedTimeUtc": "2026-01-29T09:42:29.1281319", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:39 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1f7a63e5-f382-45c0-aa38-c42ec5a14a52/result + Pragma: + - no-cache + RequestId: + - bd20b49e-0022-47b2-8ec1-27e8c5eff407 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 1f7a63e5-f382-45c0-aa38-c42ec5a14a52 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1f7a63e5-f382-45c0-aa38-c42ec5a14a52/result + response: + body: + string: '{"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", + "displayName": "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:42:40 GMT + Pragma: + - no-cache + RequestId: + - 21ce01a9-4fd4-40b5-a337-a75d19820bf3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:40 GMT + Pragma: + - no-cache + RequestId: + - fc21b072-9111-4945-b915-500ae68e3f90 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1052' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:41 GMT + Pragma: + - no-cache + RequestId: + - 70fe37e8-1828-435d-9182-5d9665b4f8ec + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[SparkJobDefinition].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[SparkJobDefinition].yaml new file mode 100644 index 00000000..eb0a6b45 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[SparkJobDefinition].yaml @@ -0,0 +1,441 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:41 GMT + Pragma: + - no-cache + RequestId: + - 44ae0c93-6298-441d-b632-e9068f6a7a11 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1052' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:42 GMT + Pragma: + - no-cache + RequestId: + - dabca6ef-7262-41a2-a61a-4217b90bf63f + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1052' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:43 GMT + Pragma: + - no-cache + RequestId: + - 85f6bd7e-e262-4d53-843d-7cba07d55d13 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "SparkJobDefinition", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '116' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/sparkJobDefinitions + response: + body: + string: '{"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:44 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - b8339e5b-f6af-4cfc-84ee-b7d35a12ded4 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:46 GMT + Pragma: + - no-cache + RequestId: + - c0b16fc2-04b5-44f0-a694-38cbb5929b46 + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:47 GMT + Pragma: + - no-cache + RequestId: + - 091e6020-0fac-464c-a58d-cc9838c00e37 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[UserDataFunction].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[UserDataFunction].yaml new file mode 100644 index 00000000..1796eba8 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[UserDataFunction].yaml @@ -0,0 +1,347 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "20e4c8f8-f961-49fd-947f-28f477f881fb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2460' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:57 GMT + Pragma: + - no-cache + RequestId: + - 614aea45-3a61-4498-9a36-43fee37bf7fc + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "908b2795-d84e-4e0a-9f41-bdc1e6471582", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '429' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:58 GMT + Pragma: + - no-cache + RequestId: + - 568613d8-33e0-4173-931c-d1afcc86d34f + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "908b2795-d84e-4e0a-9f41-bdc1e6471582", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '429' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:07:58 GMT + Pragma: + - no-cache + RequestId: + - 10ca7493-47a1-45c7-beec-2a06c04a16e9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "UserDataFunction", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '114' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/20e4c8f8-f961-49fd-947f-28f477f881fb/userdatafunctions + response: + body: + string: '{"id": "0950972e-2faa-4809-8944-e227912b77d2", "type": "UserDataFunction", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '171' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:01 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 7849600a-6dab-46cc-bf37-8b47a1387857 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "20e4c8f8-f961-49fd-947f-28f477f881fb", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2460' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:03 GMT + Pragma: + - no-cache + RequestId: + - 6ca59cae-a722-48b5-a4c8-ea6f3197cf8d + 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/20e4c8f8-f961-49fd-947f-28f477f881fb/items + response: + body: + string: '{"value": [{"id": "58b90332-8f80-43e4-b2bb-ef3986a3a85e", "type": "SQLEndpoint", + "displayName": "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "fa36ad95-cc47-4107-93e5-07acdf481a96", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "9d0b70c5-f3a8-4a74-86d3-29fa9a218e7c", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, + {"id": "5947c048-e82e-4d9d-8050-9784d7a1ee8f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "6bf98cf6-6c84-490c-8737-eaa4901fe6ec", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "ab1ef74a-0d46-4cb6-9b0a-d87992b43278", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "908b2795-d84e-4e0a-9f41-bdc1e6471582", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}, {"id": "0950972e-2faa-4809-8944-e227912b77d2", + "type": "UserDataFunction", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "20e4c8f8-f961-49fd-947f-28f477f881fb"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '478' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 13:08:03 GMT + Pragma: + - no-cache + RequestId: + - d2c80124-1703-4123-b103-89db365dc219 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Warehouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Warehouse].yaml new file mode 100644 index 00000000..f49cca3b --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_cancel_operation_success[Warehouse].yaml @@ -0,0 +1,549 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:47 GMT + Pragma: + - no-cache + RequestId: + - 36d1c028-643e-40b4-b406-db0baf84d85a + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:48 GMT + Pragma: + - no-cache + RequestId: + - 2f76e412-1e0b-4bc2-84a4-9ce2664af6eb + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1102' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:49 GMT + Pragma: + - no-cache + RequestId: + - 1e00bf60-f78f-4317-be82-00f09900d0a0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Warehouse", "folderId": null, "creationPayload": {"defaultCollation": "Latin1_General_100_BIN2_UTF8"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '180' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/5bf49d41-ccf2-4662-872c-a1d794eb7eba/warehouses + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:42:50 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9c5eb4d3-d7b5-4bc0-a287-fe653d414805 + Pragma: + - no-cache + RequestId: + - 5aaa9879-ad7d-4b35-b73c-f9a887ba4f9a + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 9c5eb4d3-d7b5-4bc0-a287-fe653d414805 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9c5eb4d3-d7b5-4bc0-a287-fe653d414805 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T09:42:51.1486466", + "lastUpdatedTimeUtc": "2026-01-29T09:43:00.2020492", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:12 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9c5eb4d3-d7b5-4bc0-a287-fe653d414805/result + Pragma: + - no-cache + RequestId: + - d7265ad2-da61-482e-b47e-189bbebb3864 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 9c5eb4d3-d7b5-4bc0-a287-fe653d414805 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9c5eb4d3-d7b5-4bc0-a287-fe653d414805/result + response: + body: + string: '{"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 09:43:12 GMT + Pragma: + - no-cache + RequestId: + - c8f166f4-ac5b-4811-aa28-c6e2c9924c15 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:13 GMT + Pragma: + - no-cache + RequestId: + - c61162fa-b566-4cb4-afbf-1c605171eddb + 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/5bf49d41-ccf2-4662-872c-a1d794eb7eba/items + response: + body: + string: '{"value": [{"id": "0be7fbeb-7129-459c-802c-9768da9fee82", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "8a9513d9-18b0-4c29-8a17-7aeecd1e2976", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "63e713bb-d4c4-439f-aac5-e4e9e2f53e6a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "001625fe-8bfb-4e1d-8160-efdb693837e9", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129093925", + "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "22b02bed-33cc-4ed1-9310-fa75c52c8392", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "a0d992db-d3dd-455c-8611-9219db7dcd3d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "17630c77-b735-44fa-8856-622c62e0a6a7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "dbc2a011-4abd-41c5-a6aa-49cb20c34032", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "eb7b9d42-9795-4ba1-a826-19e0428ead6f", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129093902", "description": "", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "bb27247d-5842-4280-bc11-ece193543087", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70355090-c46a-477d-b112-0c71bc845076", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "3937bde7-a583-44d3-a080-c450e6b73eff", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "6c0968ea-d88f-44be-aecc-879af2eb47dd", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "70a5f712-b36b-4075-9496-4abdbc9e99c2", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "18f3fd81-30ba-4eea-a774-ebcceba0aff9", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "4f67d819-5ef3-496d-90fd-8488da2eec6b", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "dfe52a7d-e782-4672-bbf5-a30a043360e8", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "8a6bc503-5d1c-4a70-ad5c-4b517816303f", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "71e75847-dec3-4d9f-8f7d-28682de67b25", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, {"id": "ee621e14-0464-4a9a-8dc4-31dc9ae4352c", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "83f68cc5-a668-4447-ac04-f1467f4a6a2e", "type": "Notebook", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b36ffe74-f3a3-4cdd-912a-2b6c6cc129bf", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b32d9b47-6753-4b6c-a19f-c6bb92364243", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}, + {"id": "b609aebf-1855-421a-8c0d-f47c326d4340", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "5bf49d41-ccf2-4662-872c-a1d794eb7eba"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '1138' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:43:15 GMT + Pragma: + - no-cache + RequestId: + - ac0e1eed-063a-402b-92a3-552fa4238b40 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[CopyJob].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[CopyJob].yaml new file mode 100644 index 00000000..f36e1a28 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[CopyJob].yaml @@ -0,0 +1,506 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:22 GMT + Pragma: + - no-cache + RequestId: + - 6ece1671-b673-46f4-a698-6e18680e7dd4 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:22 GMT + Pragma: + - no-cache + RequestId: + - f9eca46b-f79f-463b-9200-072a0b547cf1 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:23 GMT + Pragma: + - no-cache + RequestId: + - ac3a6962-5e1e-4ba7-8e67-8b51c2ae4c1f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "CopyJob", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/copyJobs + response: + body: + string: '{"id": "3b5e0404-4ec8-450d-8269-fb4273b7057f", "type": "CopyJob", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '164' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:28 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 39467501-5475-4822-8f24-92b69191274e + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:29 GMT + Pragma: + - no-cache + RequestId: + - c907e4aa-112f-4f31-a9c5-2d16077633a1 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "3b5e0404-4ec8-450d-8269-fb4273b7057f", "type": "CopyJob", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '238' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:30 GMT + Pragma: + - no-cache + RequestId: + - c0defc34-ae53-4c18-a111-fa0fd1a38d1c + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/3b5e0404-4ec8-450d-8269-fb4273b7057f + 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, 05 Feb 2026 07:47:31 GMT + Pragma: + - no-cache + RequestId: + - 7a69388e-7148-4ede-9bea-168097f5c056 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:31 GMT + Pragma: + - no-cache + RequestId: + - cb66d478-5af0-47c9-a539-9b19a4b27a0f + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:32 GMT + Pragma: + - no-cache + RequestId: + - ef835685-ee50-44e9-a52f-f5ca83c1e39e + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:33 GMT + Pragma: + - no-cache + RequestId: + - c9bf8598-8f19-4fe2-904a-afaa5634c194 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[CosmosDBDatabase].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[CosmosDBDatabase].yaml new file mode 100644 index 00000000..b1d63603 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[CosmosDBDatabase].yaml @@ -0,0 +1,639 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:51 GMT + Pragma: + - no-cache + RequestId: + - e24657f9-60e4-4d92-a83b-1d91ac324d9a + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '248' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:51 GMT + Pragma: + - no-cache + RequestId: + - 7b2a79b5-6458-4d9a-b878-d57372558496 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '248' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:52 GMT + Pragma: + - no-cache + RequestId: + - 06494372-9c98-4a3a-b167-33101e9f4e72 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "CosmosDBDatabase", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '114' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/cosmosDbDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:54 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/68a1cb3d-2ab4-48dc-a430-f2be6daa84d6 + Pragma: + - no-cache + RequestId: + - ee0fcbed-4c80-4448-af7f-2651ff3edd27 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 68a1cb3d-2ab4-48dc-a430-f2be6daa84d6 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/68a1cb3d-2ab4-48dc-a430-f2be6daa84d6 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:47:53.8591788", + "lastUpdatedTimeUtc": "2026-02-05T07:48:02.5193437", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '133' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:15 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/68a1cb3d-2ab4-48dc-a430-f2be6daa84d6/result + Pragma: + - no-cache + RequestId: + - 0f17ca00-1007-4ae0-b0cd-f1bb6049f623 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 68a1cb3d-2ab4-48dc-a430-f2be6daa84d6 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/68a1cb3d-2ab4-48dc-a430-f2be6daa84d6/result + response: + body: + string: '{"id": "b458512b-5a02-43f9-aba3-117ba85a5843", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:48:16 GMT + Pragma: + - no-cache + RequestId: + - 47cbcb3a-d90e-4f54-bed2-4d011334ab0b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:17 GMT + Pragma: + - no-cache + RequestId: + - eeb36637-f7e4-4606-ac83-6c9a79bf92f8 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "209b0104-8de2-4547-b278-3b227f6c5f95", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "b458512b-5a02-43f9-aba3-117ba85a5843", + "type": "CosmosDBDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + 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, 05 Feb 2026 07:48:18 GMT + Pragma: + - no-cache + RequestId: + - df24b90a-d872-4ce1-bcf8-4ec318bd819f + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/b458512b-5a02-43f9-aba3-117ba85a5843 + 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, 05 Feb 2026 07:48:18 GMT + Pragma: + - no-cache + RequestId: + - 86667e09-1bf5-46a4-9fb9-3deb274539a0 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:19 GMT + Pragma: + - no-cache + RequestId: + - 644da239-0515-4875-838f-efd5eac028da + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:20 GMT + Pragma: + - no-cache + RequestId: + - 2e552f30-6c03-421b-afb3-b8ccdcdc71cb + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:20 GMT + Pragma: + - no-cache + RequestId: + - 9d950fc8-c2a3-4630-8e5e-6524d31ea19a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[DataPipeline].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[DataPipeline].yaml new file mode 100644 index 00000000..c68184e9 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[DataPipeline].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:30 GMT + Pragma: + - no-cache + RequestId: + - cca4d424-c13b-4288-998c-5edec0a91367 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:31 GMT + Pragma: + - no-cache + RequestId: + - 710a2afc-fac4-4128-a692-e8c110fc51ce + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:32 GMT + Pragma: + - no-cache + RequestId: + - 195563f2-73be-4c36-813f-4c57070b753f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "DataPipeline", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/dataPipelines + response: + body: + string: '{"id": "c077a381-abb4-4373-8980-eeb100d4c136", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:38 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 8d12ee64-0455-408c-8508-d68bd8e7dfd1 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:39 GMT + Pragma: + - no-cache + RequestId: + - 4efa438a-5e56-4e15-989f-f2334f87a87a + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "c077a381-abb4-4373-8980-eeb100d4c136", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:40 GMT + Pragma: + - no-cache + RequestId: + - 965cb53b-d0b7-4360-a816-2420deba661f + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/c077a381-abb4-4373-8980-eeb100d4c136 + 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, 05 Feb 2026 07:41:40 GMT + Pragma: + - no-cache + RequestId: + - 34f156ef-0fc8-4670-8619-29d0828bd2fc + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:41 GMT + Pragma: + - no-cache + RequestId: + - 152f298e-4634-4207-9112-b5844db35ee5 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:42 GMT + Pragma: + - no-cache + RequestId: + - 49d4da92-46d0-4f06-a794-3362bec51756 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:43 GMT + Pragma: + - no-cache + RequestId: + - 73cf1825-956a-470a-854b-e38456d1c463 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Dataflow].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Dataflow].yaml new file mode 100644 index 00000000..3886ae56 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Dataflow].yaml @@ -0,0 +1,513 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:42 GMT + Pragma: + - no-cache + RequestId: + - b235c4d1-c0ae-47e5-abaf-6c9db52c8319 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:42 GMT + Pragma: + - no-cache + RequestId: + - ff3d7742-da94-47a4-bb2e-f24bb4a101bc + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:42 GMT + Pragma: + - no-cache + RequestId: + - 9238ebaf-81b8-4de8-8f9c-c8a78ca9f58d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Dataflow", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '106' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/dataflows + response: + body: + string: '{"id": "f81ddded-5c03-41ac-8d60-44d7cb5363a1", "type": "Dataflow", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '166' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:45 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - a50320dd-f034-47b5-ae0a-ce26f8bc5c75 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:46 GMT + Pragma: + - no-cache + RequestId: + - a5912e5c-3768-46e8-ab3f-0df649151842 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "f81ddded-5c03-41ac-8d60-44d7cb5363a1", "type": "Dataflow", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '241' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:46 GMT + Pragma: + - no-cache + RequestId: + - 8eff66a6-2a0f-43b9-9157-13af67a7052e + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/f81ddded-5c03-41ac-8d60-44d7cb5363a1 + 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, 05 Feb 2026 07:47:48 GMT + Pragma: + - no-cache + RequestId: + - a67eef2d-ed8e-429e-a072-7ad685861f1d + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:48 GMT + Pragma: + - no-cache + RequestId: + - 5ccfdb79-b36a-4124-9e2e-e8de0220a39a + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '248' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:49 GMT + Pragma: + - no-cache + RequestId: + - 9435beff-8281-4b19-8c9a-3ef3d04fb705 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '248' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:50 GMT + Pragma: + - no-cache + RequestId: + - 3bea8ffe-54b5-4497-a597-87426d4f544e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[DigitalTwinBuilder].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[DigitalTwinBuilder].yaml new file mode 100644 index 00000000..d4002561 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[DigitalTwinBuilder].yaml @@ -0,0 +1,661 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:39 GMT + Pragma: + - no-cache + RequestId: + - 92c7f988-eb19-4d42-8f57-38222d2cfc5f + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:40 GMT + Pragma: + - no-cache + RequestId: + - 3bc38af3-74b7-49a6-817e-a103e6c7d0e3 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:40 GMT + Pragma: + - no-cache + RequestId: + - 1ae2b1ef-60c8-477a-84e7-2b8c4bd4bb5e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "DigitalTwinBuilder", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '116' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/digitalTwinBuilders + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:42 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/7c62b9d9-2a8d-4483-be14-45e4bcf4d841 + Pragma: + - no-cache + RequestId: + - ff03bd50-14a6-4505-82eb-6e11ad82fe9e + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 7c62b9d9-2a8d-4483-be14-45e4bcf4d841 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/7c62b9d9-2a8d-4483-be14-45e4bcf4d841 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:48:41.714649", + "lastUpdatedTimeUtc": "2026-02-05T07:48:49.2939636", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:49:04 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/7c62b9d9-2a8d-4483-be14-45e4bcf4d841/result + Pragma: + - no-cache + RequestId: + - 050b4839-3901-4769-ba03-64fa7a22ac92 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 7c62b9d9-2a8d-4483-be14-45e4bcf4d841 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/7c62b9d9-2a8d-4483-be14-45e4bcf4d841/result + response: + body: + string: '{"id": "105c402a-7cfa-4934-a04d-308547892e1f", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:49:04 GMT + Pragma: + - no-cache + RequestId: + - ff0cc985-3f22-4159-9264-f56520740e8c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:49:06 GMT + Pragma: + - no-cache + RequestId: + - ebf9c549-8602-486c-b5e1-acb4423cc070 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "16ea9fac-9ed5-4675-a3aa-5268964d04cb", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "105c402a-7cfa-4934-a04d-308547892e1f", + "type": "DigitalTwinBuilder", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "52276d4b-247c-4865-852b-e93a0b4339da", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "27825e9a-cc93-47d0-9ee6-fcb60a1ecabd", "type": "DigitalTwinBuilderFlow", + "displayName": "fabcli000001OnDemand", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '496' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:49:06 GMT + Pragma: + - no-cache + RequestId: + - 5d60c1c7-5dc0-4d52-b2b7-1eed85970012 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/105c402a-7cfa-4934-a04d-308547892e1f + 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, 05 Feb 2026 07:49:07 GMT + Pragma: + - no-cache + RequestId: + - 5330e58e-b14f-49dc-8874-d65f90a0f308 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:49:08 GMT + Pragma: + - no-cache + RequestId: + - 6348912d-66c5-45a5-b5cf-7e697955ee86 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "16ea9fac-9ed5-4675-a3aa-5268964d04cb", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "52276d4b-247c-4865-852b-e93a0b4339da", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '399' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:49:08 GMT + Pragma: + - no-cache + RequestId: + - f0537389-8f7e-44cd-8ab0-90e3386a49fe + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "16ea9fac-9ed5-4675-a3aa-5268964d04cb", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "52276d4b-247c-4865-852b-e93a0b4339da", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '399' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:49:09 GMT + Pragma: + - no-cache + RequestId: + - 0e2d4e03-6275-452c-91f4-90076c9e2e0b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Environment].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Environment].yaml new file mode 100644 index 00000000..693ce886 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Environment].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:44 GMT + Pragma: + - no-cache + RequestId: + - d3e6b192-a328-4be0-a7d6-c5a92a1da940 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:45 GMT + Pragma: + - no-cache + RequestId: + - 1b446b93-2a1b-405c-b20e-f6af42d003d6 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:45 GMT + Pragma: + - no-cache + RequestId: + - f9bf3f23-bccb-4dae-a28d-a859028aefd2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Environment", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/environments + response: + body: + string: '{"id": "c2030a0b-54b2-47c9-a9a3-6bf49948c2d3", "type": "Environment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:47 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - cf618da4-84bb-46fe-9edc-4bed7179c1bc + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:48 GMT + Pragma: + - no-cache + RequestId: + - 824979ac-2d0e-420c-9f5c-5a0431eb0056 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "c2030a0b-54b2-47c9-a9a3-6bf49948c2d3", "type": "Environment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:50 GMT + Pragma: + - no-cache + RequestId: + - 1ac50aba-19a1-4280-b42a-0241d76ec3c2 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/c2030a0b-54b2-47c9-a9a3-6bf49948c2d3 + 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, 05 Feb 2026 07:41:50 GMT + Pragma: + - no-cache + RequestId: + - 84646eec-e11d-48ea-8a44-1a69da86720c + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:51 GMT + Pragma: + - no-cache + RequestId: + - 186ea5a6-1f28-40be-b2b4-ceb3e910b204 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:51 GMT + Pragma: + - no-cache + RequestId: + - 9cf07461-a9cd-40e2-b454-3d7f9db0c19c + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:51 GMT + Pragma: + - no-cache + RequestId: + - 24011cf6-fc07-4b88-81a7-606a44e5edae + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Eventhouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Eventhouse].yaml new file mode 100644 index 00000000..1d8eb432 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Eventhouse].yaml @@ -0,0 +1,504 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:52 GMT + Pragma: + - no-cache + RequestId: + - 26715783-77f6-4a5f-a9b2-e3a171ddeae2 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:53 GMT + Pragma: + - no-cache + RequestId: + - a662f3ba-4e1e-4346-87b8-352aa26e8d33 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:41:53 GMT + Pragma: + - no-cache + RequestId: + - 7113a2c2-7530-476d-a89c-a55664910841 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Eventhouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '108' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/eventhouses + response: + body: + string: '{"id": "38a88b29-5bc5-459d-aaa6-108d18518c9d", "type": "Eventhouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:57 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 83f51230-0f9e-43e2-b758-d528f1f2be0f + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:57 GMT + Pragma: + - no-cache + RequestId: + - e77d69af-be1b-41d2-b603-6a127fabbf30 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "38a88b29-5bc5-459d-aaa6-108d18518c9d", "type": "Eventhouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "4632d3f7-faa6-4dea-bf29-f776e46a21eb", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '229' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:58 GMT + Pragma: + - no-cache + RequestId: + - 0327a451-317d-4ad7-be57-a77224aecdc2 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/38a88b29-5bc5-459d-aaa6-108d18518c9d + 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, 05 Feb 2026 07:41:59 GMT + Pragma: + - no-cache + RequestId: + - 64d78c9f-c10b-453b-b1ec-b12b44689b03 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:41:59 GMT + Pragma: + - no-cache + RequestId: + - 5ba4dd24-53d0-40d2-8ddb-94d8895ee1e1 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:00 GMT + Pragma: + - no-cache + RequestId: + - 8a23a142-b6f4-4909-9f2b-43a6b81c39b8 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:01 GMT + Pragma: + - no-cache + RequestId: + - 26cb2f6b-fcf8-409e-bcc3-d31cff9ad0b5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Eventstream].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Eventstream].yaml new file mode 100644 index 00000000..761f55f3 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Eventstream].yaml @@ -0,0 +1,602 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:02 GMT + Pragma: + - no-cache + RequestId: + - d587ab78-dd89-4b85-8586-c892b86bab73 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:02 GMT + Pragma: + - no-cache + RequestId: + - 8a7860b0-b828-4fd7-9446-8a7bb051ed46 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:03 GMT + Pragma: + - no-cache + RequestId: + - e7f63a57-a69a-4e02-b169-1a4a7188ff7d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Eventstream", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/eventstreams + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:03 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/05485416-2ae4-4f84-a648-79bb874b5534 + Pragma: + - no-cache + RequestId: + - 8c2332f6-51e4-41e3-9b34-ebae0e094099 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 05485416-2ae4-4f84-a648-79bb874b5534 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/05485416-2ae4-4f84-a648-79bb874b5534 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:42:04.1554426", + "lastUpdatedTimeUtc": "2026-02-05T07:42:09.0936477", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:25 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/05485416-2ae4-4f84-a648-79bb874b5534/result + Pragma: + - no-cache + RequestId: + - 80de9fec-16ed-474a-a551-e50a4588f4c1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 05485416-2ae4-4f84-a648-79bb874b5534 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/05485416-2ae4-4f84-a648-79bb874b5534/result + response: + body: + string: '{"id": "b8c7c6ad-8a72-4161-b578-2e77d089fb69", "type": "Eventstream", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:42:26 GMT + Pragma: + - no-cache + RequestId: + - 74ae2c76-8f92-4206-b17a-a6bad2f60c45 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:27 GMT + Pragma: + - no-cache + RequestId: + - 6c078d28-79dd-4698-ac1d-974caf67b9ac + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "b8c7c6ad-8a72-4161-b578-2e77d089fb69", "type": "Eventstream", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '180' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:28 GMT + Pragma: + - no-cache + RequestId: + - bba65bb2-04d8-4cf7-83b1-6f3357135477 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/b8c7c6ad-8a72-4161-b578-2e77d089fb69 + 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, 05 Feb 2026 07:42:28 GMT + Pragma: + - no-cache + RequestId: + - 8b59d43f-c768-4b5c-933f-dde81bc9a55e + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:28 GMT + Pragma: + - no-cache + RequestId: + - df4ecb15-6bd6-43d7-8807-7086207e7436 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:29 GMT + Pragma: + - no-cache + RequestId: + - 204d2a24-23e7-4a8d-ab48-042da997c196 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:30 GMT + Pragma: + - no-cache + RequestId: + - d6394ca0-aba5-4631-b7ce-65d79c5343be + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[GraphQLApi].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[GraphQLApi].yaml new file mode 100644 index 00000000..cdbbf026 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[GraphQLApi].yaml @@ -0,0 +1,507 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:34 GMT + Pragma: + - no-cache + RequestId: + - 7f39395b-b376-4054-9ec7-fe7fa50c503e + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:34 GMT + Pragma: + - no-cache + RequestId: + - f6539079-1651-44ef-bcc9-43c83c50762b + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:35 GMT + Pragma: + - no-cache + RequestId: + - 48b56df2-6a7b-4c28-8f3e-c4a693e4da48 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "GraphQLApi", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '108' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/graphqlapis + response: + body: + string: '{"id": "f32538b0-ad8d-43fa-8568-f7e32eff1f32", "type": "GraphQLApi", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '171' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:37 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 4e14bd39-bca8-4233-af7e-013d478913f8 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:38 GMT + Pragma: + - no-cache + RequestId: + - a4281d96-7876-4016-b94a-da86040a21c7 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "f32538b0-ad8d-43fa-8568-f7e32eff1f32", "type": "GraphQLApi", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '244' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:38 GMT + Pragma: + - no-cache + RequestId: + - 0e4ea194-ca36-4260-bfc3-bc36b89f67f9 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/f32538b0-ad8d-43fa-8568-f7e32eff1f32 + 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, 05 Feb 2026 07:47:39 GMT + Pragma: + - no-cache + RequestId: + - 1f242c35-88af-4ae6-a2ef-9ad6355b8779 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:40 GMT + Pragma: + - no-cache + RequestId: + - 8166dd72-5cf3-46b8-9c29-24b6c5abfd39 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:40 GMT + Pragma: + - no-cache + RequestId: + - 5ef2c11f-2f84-49d8-b083-21f1e433808e + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:41 GMT + Pragma: + - no-cache + RequestId: + - 7a858159-7f3a-4c36-a553-a9bed44ddf02 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[GraphQuerySet].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[GraphQuerySet].yaml new file mode 100644 index 00000000..40933932 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[GraphQuerySet].yaml @@ -0,0 +1,547 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:31 GMT + Pragma: + - no-cache + RequestId: + - e0a75a31-6713-4f85-927c-3e1be061c7bd + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:32 GMT + Pragma: + - no-cache + RequestId: + - 0854a9c8-3a88-4649-a7e5-f27757838b43 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:32 GMT + Pragma: + - no-cache + RequestId: + - 4777289f-8712-4e5b-9eef-54dbb231769a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "GraphQuerySet", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '111' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/GraphQuerySets + response: + body: + string: '{"id": "629985e4-d434-48da-b37d-f972661e676e", "type": "GraphQuerySet", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '173' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:34 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 84099ec9-29c7-4386-b57e-cfe0e6d7edf3 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:35 GMT + Pragma: + - no-cache + RequestId: + - 275b450f-5492-46ef-8d3b-7576297b0294 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "629985e4-d434-48da-b37d-f972661e676e", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '393' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:36 GMT + Pragma: + - no-cache + RequestId: + - 64d015d8-b1d8-475f-a79a-4afdbbbc295b + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/629985e4-d434-48da-b37d-f972661e676e + 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, 05 Feb 2026 07:48:36 GMT + Pragma: + - no-cache + RequestId: + - 42ae431f-e4d0-45ae-98a4-a99a179b333b + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:37 GMT + Pragma: + - no-cache + RequestId: + - 170c0dd0-d6cc-41f2-a03a-c61151591122 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:37 GMT + Pragma: + - no-cache + RequestId: + - f8e66224-2d68-47ed-b93f-656e7e6087b6 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:38 GMT + Pragma: + - no-cache + RequestId: + - 358fc4f4-ade9-45cc-ac9c-d12daf33a901 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[KQLDashboard].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[KQLDashboard].yaml new file mode 100644 index 00000000..bb681d56 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[KQLDashboard].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:30 GMT + Pragma: + - no-cache + RequestId: + - b117f926-b30d-4a9f-a4f5-2f25215fd055 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:31 GMT + Pragma: + - no-cache + RequestId: + - 86e4b4e4-9fc0-4e6e-8b7c-86b9e5bee3d4 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:32 GMT + Pragma: + - no-cache + RequestId: + - a0ecefac-eba9-450a-94cb-f49e0d751d0a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "KQLDashboard", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/kqlDashboards + response: + body: + string: '{"id": "5abe5047-213d-4f47-bece-d3e7396721c3", "type": "KQLDashboard", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '171' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:34 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 1bbf0a03-4d20-48b1-a4ee-f36f5677e5bb + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:35 GMT + Pragma: + - no-cache + RequestId: + - 39607cff-ff09-47bc-b9ac-9f70679e2899 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "5abe5047-213d-4f47-bece-d3e7396721c3", "type": "KQLDashboard", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:35 GMT + Pragma: + - no-cache + RequestId: + - 154e4de3-52b0-4ef5-b909-8eec58bec01a + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/5abe5047-213d-4f47-bece-d3e7396721c3 + 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, 05 Feb 2026 07:42:36 GMT + Pragma: + - no-cache + RequestId: + - 1c07c96b-447f-402c-ae76-5392f738ef6b + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:37 GMT + Pragma: + - no-cache + RequestId: + - fb7f767f-2157-4fb9-ac35-78d00f9311a1 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:38 GMT + Pragma: + - no-cache + RequestId: + - 1d5df543-ff36-4430-96bd-2b8d96a0ba0b + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:38 GMT + Pragma: + - no-cache + RequestId: + - 970ed644-7fe0-4a74-a854-fe3a4ca317db + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[KQLQueryset].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[KQLQueryset].yaml new file mode 100644 index 00000000..44bbbe63 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[KQLQueryset].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:39 GMT + Pragma: + - no-cache + RequestId: + - e0b2b8a6-0105-4974-9b9c-7c7c011e46fc + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:40 GMT + Pragma: + - no-cache + RequestId: + - faf8a72d-bd52-426d-b06d-794bb24deeb1 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:40 GMT + Pragma: + - no-cache + RequestId: + - 89448507-1e3e-4baf-a1ee-b4787359dafd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "KQLQueryset", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/kqlQuerysets + response: + body: + string: '{"id": "dcaf1f8d-e5d7-454c-9500-c9c3cf63fd70", "type": "KQLQueryset", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '170' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:42 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 6b99f1d5-6d97-408d-ba43-565fc3135120 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:43 GMT + Pragma: + - no-cache + RequestId: + - 9876f050-d28d-4206-b097-6f936f8e2ef9 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "dcaf1f8d-e5d7-454c-9500-c9c3cf63fd70", "type": "KQLQueryset", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '181' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:43 GMT + Pragma: + - no-cache + RequestId: + - 46e28ed3-b993-43fe-ad7e-3ea98c4c9645 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/dcaf1f8d-e5d7-454c-9500-c9c3cf63fd70 + 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, 05 Feb 2026 07:42:44 GMT + Pragma: + - no-cache + RequestId: + - 74c0d527-90e5-49ea-91dc-0a88abf3186e + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:45 GMT + Pragma: + - no-cache + RequestId: + - 88d5eeb6-da21-4e3a-830f-954f054fb72d + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:45 GMT + Pragma: + - no-cache + RequestId: + - 76e50f53-7368-4b3d-bdf2-92cf4f49d3ef + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:46 GMT + Pragma: + - no-cache + RequestId: + - 09c300b8-caa7-4429-b362-13883712850f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Lakehouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Lakehouse].yaml new file mode 100644 index 00000000..029b74f7 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Lakehouse].yaml @@ -0,0 +1,502 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:47 GMT + Pragma: + - no-cache + RequestId: + - 15d19809-3d1c-47be-9ee3-5a4d9488b48d + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:47 GMT + Pragma: + - no-cache + RequestId: + - e486747f-e593-4f0e-b752-a7c94a246777 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:48 GMT + Pragma: + - no-cache + RequestId: + - 2ef90148-655e-4323-aac5-963998630d7d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Lakehouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '107' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/lakehouses + response: + body: + string: '{"id": "d0d6d45f-e34e-465d-8b00-747d3e3e084c", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:52 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 4e3cb852-aa7b-4681-a307-fa338b6765bb + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:52 GMT + Pragma: + - no-cache + RequestId: + - 058bccb4-2c00-4842-a9b1-8c04a54f1338 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "d0d6d45f-e34e-465d-8b00-747d3e3e084c", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:53 GMT + Pragma: + - no-cache + RequestId: + - a1b3c7b4-d2d7-4dbe-ab92-fe6a74316d3d + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/d0d6d45f-e34e-465d-8b00-747d3e3e084c + 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, 05 Feb 2026 07:42:54 GMT + Pragma: + - no-cache + RequestId: + - 5f004fe9-6c9f-4f0e-95ea-c7a949a2c518 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:54 GMT + Pragma: + - no-cache + RequestId: + - 10bdfde5-eaf6-4a89-a4cf-b4c62550d81f + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:55 GMT + Pragma: + - no-cache + RequestId: + - 93422350-9f5e-4438-83fc-c5fc1067a575 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:56 GMT + Pragma: + - no-cache + RequestId: + - f37e7762-3098-462e-a103-9544760ea8ed + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[MLExperiment].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[MLExperiment].yaml new file mode 100644 index 00000000..a416f2ce --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[MLExperiment].yaml @@ -0,0 +1,602 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:56 GMT + Pragma: + - no-cache + RequestId: + - 0c166013-9ad9-476f-be4a-6caca7faa1fd + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:58 GMT + Pragma: + - no-cache + RequestId: + - 003eb812-07d1-4b2d-ace1-af06a84e7b20 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:42:58 GMT + Pragma: + - no-cache + RequestId: + - 51816b1b-fba4-4e0f-9c14-1f130103e72c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "MLExperiment", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '110' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/mlExperiments + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:42:59 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1d031d8-4988-4332-b454-dfd71d4e5ba3 + Pragma: + - no-cache + RequestId: + - 9e18e106-8f00-4256-84a2-880ff25b047b + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - b1d031d8-4988-4332-b454-dfd71d4e5ba3 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1d031d8-4988-4332-b454-dfd71d4e5ba3 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:42:59.1834466", + "lastUpdatedTimeUtc": "2026-02-05T07:43:00.152372", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:20 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1d031d8-4988-4332-b454-dfd71d4e5ba3/result + Pragma: + - no-cache + RequestId: + - b2c895c6-1e39-4622-9f8c-610a151d7c2c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - b1d031d8-4988-4332-b454-dfd71d4e5ba3 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1d031d8-4988-4332-b454-dfd71d4e5ba3/result + response: + body: + string: '{"id": "8b82092e-23b8-4ab9-af2e-36a5e4aa0377", "type": "MLExperiment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:43:21 GMT + Pragma: + - no-cache + RequestId: + - bdfea5cf-e323-4794-908e-a11c97181ae7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:22 GMT + Pragma: + - no-cache + RequestId: + - 5251412b-e137-400a-9eeb-d5fc95d28b51 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "8b82092e-23b8-4ab9-af2e-36a5e4aa0377", "type": "MLExperiment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '183' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:22 GMT + Pragma: + - no-cache + RequestId: + - 2a857d4f-5a4b-4b13-aa0a-8f510ed9d4bf + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/8b82092e-23b8-4ab9-af2e-36a5e4aa0377 + 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, 05 Feb 2026 07:43:23 GMT + Pragma: + - no-cache + RequestId: + - 6d6887fc-9b1b-44f5-af72-051514a606ee + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:24 GMT + Pragma: + - no-cache + RequestId: + - 8f3dbe2e-5d1c-4fec-9638-5ed019ae8608 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:43:24 GMT + Pragma: + - no-cache + RequestId: + - 3fb6ef03-4879-4276-96a4-10f26070d49d + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:43:25 GMT + Pragma: + - no-cache + RequestId: + - 594aad61-c6cb-4df8-ab39-f87c406c853e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[MLModel].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[MLModel].yaml new file mode 100644 index 00000000..d5b1b63b --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[MLModel].yaml @@ -0,0 +1,601 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:25 GMT + Pragma: + - no-cache + RequestId: + - a3ea825f-3992-46b6-a52f-6af16ce7013f + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:43:25 GMT + Pragma: + - no-cache + RequestId: + - 5cb1b333-bd3d-42be-8749-8aa888fa0a73 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:43:26 GMT + Pragma: + - no-cache + RequestId: + - f33f3d96-4e60-42de-bd7e-884250a4ab70 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "MLModel", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/mlModels + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:27 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3fdd4e30-5136-4802-b267-f9009a19cf69 + Pragma: + - no-cache + RequestId: + - 154530e7-d84e-448c-8ff1-f00308da8a9c + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 3fdd4e30-5136-4802-b267-f9009a19cf69 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3fdd4e30-5136-4802-b267-f9009a19cf69 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:43:28.0405761", + "lastUpdatedTimeUtc": "2026-02-05T07:43:28.6655761", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '128' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:49 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3fdd4e30-5136-4802-b267-f9009a19cf69/result + Pragma: + - no-cache + RequestId: + - 17ad1481-4d56-408d-856a-3a020c8e98cd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 3fdd4e30-5136-4802-b267-f9009a19cf69 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3fdd4e30-5136-4802-b267-f9009a19cf69/result + response: + body: + string: '{"id": "cb435b21-9dd7-4dc0-a9dc-7ba437030863", "type": "MLModel", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:43:49 GMT + Pragma: + - no-cache + RequestId: + - d1788875-9391-4071-88fe-7a3be4eeed81 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:51 GMT + Pragma: + - no-cache + RequestId: + - e79b1be6-4a04-460e-8aba-dc32d21a6e4d + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "cb435b21-9dd7-4dc0-a9dc-7ba437030863", "type": "MLModel", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:51 GMT + Pragma: + - no-cache + RequestId: + - 62c4814b-d8d7-48ee-85b2-1a6e2f90c0b4 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/cb435b21-9dd7-4dc0-a9dc-7ba437030863 + 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, 05 Feb 2026 07:43:53 GMT + Pragma: + - no-cache + RequestId: + - 15ee6e33-69cc-4e01-be6f-77ad86c492e0 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:53 GMT + Pragma: + - no-cache + RequestId: + - 40fffe38-cf18-4125-8bbf-9f36a52a5b75 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:43:54 GMT + Pragma: + - no-cache + RequestId: + - d5624553-4f5c-42c0-8169-c5e2fb87ae7f + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:43:55 GMT + Pragma: + - no-cache + RequestId: + - 62fea05f-5eb8-4c9f-879e-13c50906bff8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[MirroredDatabase].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[MirroredDatabase].yaml new file mode 100644 index 00000000..930c468f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[MirroredDatabase].yaml @@ -0,0 +1,504 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:56 GMT + Pragma: + - no-cache + RequestId: + - 95ee4580-1ff7-4486-9003-b19ce06e8f8b + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:43:56 GMT + Pragma: + - no-cache + RequestId: + - 88ad7fb8-a224-4ebf-9999-bcb633794279 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:43:57 GMT + Pragma: + - no-cache + RequestId: + - 81153a93-1fb4-4df4-895d-dff040d7ec8d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "MirroredDatabase", "folderId": null, "definition": {"parts": [{"path": "mirroring.json", + "payload": "ewogICAgInByb3BlcnRpZXMiOiB7CiAgICAgICAgInNvdXJjZSI6IHsKICAgICAgICAgICAgInR5cGUiOiAiR2VuZXJpY01pcnJvciIsCiAgICAgICAgICAgICJ0eXBlUHJvcGVydGllcyI6IHt9CiAgICAgICAgfSwKICAgICAgICAidGFyZ2V0IjogewogICAgICAgICAgICAidHlwZSI6ICJNb3VudGVkUmVsYXRpb25hbERhdGFiYXNlIiwKICAgICAgICAgICAgInR5cGVQcm9wZXJ0aWVzIjogewogICAgICAgICAgICAgICAgImZvcm1hdCI6ICJEZWx0YSIKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '603' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/mirroredDatabases + response: + body: + string: '{"id": "cdf74e7d-8341-41f3-ab76-3847ecf95853", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '169' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:43:59 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - b87bd1f0-3b9b-4e82-b639-5752736393b7 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:00 GMT + Pragma: + - no-cache + RequestId: + - fb07ec6f-55be-4982-b249-238d0048d2d7 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "cdf74e7d-8341-41f3-ab76-3847ecf95853", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '182' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:00 GMT + Pragma: + - no-cache + RequestId: + - 864e92ca-43a6-4b23-a844-5a16e40d8720 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/cdf74e7d-8341-41f3-ab76-3847ecf95853 + 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, 05 Feb 2026 07:44:01 GMT + Pragma: + - no-cache + RequestId: + - 66aaa64b-d837-4a19-85d8-55b6fb01316d + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:01 GMT + Pragma: + - no-cache + RequestId: + - 7938e5d9-9b56-4113-b2bf-9adb47bf8dc2 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:02 GMT + Pragma: + - no-cache + RequestId: + - 164a2e85-a238-4f1c-8fa5-3401acac54ed + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:02 GMT + Pragma: + - no-cache + RequestId: + - 87b99ba7-afc6-4848-9f34-4682250b03e8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Notebook].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Notebook].yaml new file mode 100644 index 00000000..d6b1cc69 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Notebook].yaml @@ -0,0 +1,604 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:03 GMT + Pragma: + - no-cache + RequestId: + - d818d7fe-c21d-4276-bb6b-c78365a99aaa + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:04 GMT + Pragma: + - no-cache + RequestId: + - d666c3a2-f05d-4cee-9bee-809e1d8dd596 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:05 GMT + Pragma: + - no-cache + RequestId: + - e65bcc76-5209-46d4-97c3-83f20b22b2f0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Notebook", "folderId": null, "definition": {"parts": [{"path": "notebook-content.py", + "payload": "IyBGYWJyaWMgbm90ZWJvb2sgc291cmNlCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAia2VybmVsX2luZm8iOiB7CiMgTUVUQSAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgojIE1FVEEgICB9LAojIE1FVEEgICAiZGVwZW5kZW5jaWVzIjoge30KIyBNRVRBIH0KCiMgQ0VMTCAqKioqKioqKioqKioqKioqKioqKgoKIyBXZWxjb21lIHRvIHlvdXIgbmV3IG5vdGVib29rCiMgVHlwZSBoZXJlIGluIHRoZSBjZWxsIGVkaXRvciB0byBhZGQgY29kZSEKCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAibGFuZ3VhZ2UiOiAicHl0aG9uIiwKIyBNRVRBICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKIyBNRVRBIH0K", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '764' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/notebooks + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:06 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/469faed6-fb4a-48d1-8921-636c9106c7e2 + Pragma: + - no-cache + RequestId: + - dcea55cb-f501-487b-b958-c2a747c277f5 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 469faed6-fb4a-48d1-8921-636c9106c7e2 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/469faed6-fb4a-48d1-8921-636c9106c7e2 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:44:06.3008961", + "lastUpdatedTimeUtc": "2026-02-05T07:44:07.3321576", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:27 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/469faed6-fb4a-48d1-8921-636c9106c7e2/result + Pragma: + - no-cache + RequestId: + - 0225359a-d0c5-4adc-8b0a-7fbf9b892d2d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 469faed6-fb4a-48d1-8921-636c9106c7e2 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/469faed6-fb4a-48d1-8921-636c9106c7e2/result + response: + body: + string: '{"id": "76c7fba3-61ac-467d-9923-ab6eeeb603e6", "type": "Notebook", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:44:28 GMT + Pragma: + - no-cache + RequestId: + - c462f69f-3df7-4136-95d5-c52c9842ace3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:29 GMT + Pragma: + - no-cache + RequestId: + - 97ae6b33-7da7-4508-b086-dedef9d8ee28 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "76c7fba3-61ac-467d-9923-ab6eeeb603e6", "type": "Notebook", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '177' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:30 GMT + Pragma: + - no-cache + RequestId: + - d45779cd-78e9-4652-ab09-62da07886fad + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/76c7fba3-61ac-467d-9923-ab6eeeb603e6 + 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, 05 Feb 2026 07:44:31 GMT + Pragma: + - no-cache + RequestId: + - 6a619693-3471-45f9-8af9-04dd258ead43 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:31 GMT + Pragma: + - no-cache + RequestId: + - 1c51521e-00bd-4c5c-b540-4556b03907e5 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:33 GMT + Pragma: + - no-cache + RequestId: + - c40ddb0a-3323-4d66-96dd-db0b0198fe3d + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:33 GMT + Pragma: + - no-cache + RequestId: + - 98321444-723a-4505-a845-d9942a113b37 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Reflex].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Reflex].yaml new file mode 100644 index 00000000..59884fd2 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Reflex].yaml @@ -0,0 +1,501 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:34 GMT + Pragma: + - no-cache + RequestId: + - 0b1c325b-7862-436f-9f66-6ea6f1372380 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:35 GMT + Pragma: + - no-cache + RequestId: + - d99ee5d4-1f69-4fb0-9779-182ffb7ed2ec + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:36 GMT + Pragma: + - no-cache + RequestId: + - 7ee24dd9-b0c5-4642-9a1c-ce7d326fdab4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Reflex", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '104' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/reflexes + response: + body: + string: '{"id": "414f7609-1fdf-4b2a-9c43-0295be3bb385", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '166' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:38 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - ad62f193-d91b-4c9d-8fb6-050e75d785a2 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:38 GMT + Pragma: + - no-cache + RequestId: + - 26f12ae1-8221-490d-8d2f-be9aad366c78 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "414f7609-1fdf-4b2a-9c43-0295be3bb385", "type": "Reflex", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '178' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:39 GMT + Pragma: + - no-cache + RequestId: + - 3337f64d-8afd-4a53-b18c-e69fdb2eaa8b + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/414f7609-1fdf-4b2a-9c43-0295be3bb385 + 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, 05 Feb 2026 07:44:41 GMT + Pragma: + - no-cache + RequestId: + - 7bca5ced-c7e2-462d-aeaa-63c67d4a6e0c + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:41 GMT + Pragma: + - no-cache + RequestId: + - c1cfab82-ce23-46de-b378-5469d3420779 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:41 GMT + Pragma: + - no-cache + RequestId: + - 0b3920ea-6be0-47f6-a572-1257dc84c23c + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:43 GMT + Pragma: + - no-cache + RequestId: + - 97fc5699-eb64-416b-853b-46c472ae3164 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Report].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Report].yaml new file mode 100644 index 00000000..070a7c40 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Report].yaml @@ -0,0 +1,776 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:43 GMT + Pragma: + - no-cache + RequestId: + - e18009f4-eb57-4746-a5ad-19030b7d4501 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:43 GMT + Pragma: + - no-cache + RequestId: + - 728620d7-9a4e-48a6-a4d5-5ddb12a2fcf1 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/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, 05 Feb 2026 07:44:44 GMT + Pragma: + - no-cache + RequestId: + - afd741eb-f163-4538-a023-f2e0df080f56 + 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_auto", "type": + "SemanticModel", "folderId": null, "definition": {"parts": [{"path": ".platform", + "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNlbWFudGljTW9kZWwiLAogICAgImRpc3BsYXlOYW1lIjogIkJsYW5rIgogIH0sCiAgImNvbmZpZyI6IHsKICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAibG9naWNhbElkIjogIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIKICB9Cn0=", + "payloadType": "InlineBase64"}, {"path": "definition.pbism", "payload": "ewogICJ2ZXJzaW9uIjogIjQuMCIsCiAgInNldHRpbmdzIjoge30KfQ==", + "payloadType": "InlineBase64"}, {"path": "definition/database.tmdl", "payload": + "ZGF0YWJhc2UKCWNvbXBhdGliaWxpdHlMZXZlbDogMTU2MQoK", "payloadType": "InlineBase64"}, + {"path": "definition/model.tmdl", "payload": "bW9kZWwgTW9kZWwKCWN1bHR1cmU6IGVuLVVTCglkZWZhdWx0UG93ZXJCSURhdGFTb3VyY2VWZXJzaW9uOiBwb3dlckJJX1YzCglzb3VyY2VRdWVyeUN1bHR1cmU6IGVuLVVTCglkYXRhQWNjZXNzT3B0aW9ucwoJCWxlZ2FjeVJlZGlyZWN0cwoJCXJldHVybkVycm9yVmFsdWVzQXNOdWxsCgphbm5vdGF0aW9uIFBCSV9RdWVyeU9yZGVyID0gWyJUYWJsZSJdCgphbm5vdGF0aW9uIF9fUEJJX1RpbWVJbnRlbGxpZ2VuY2VFbmFibGVkID0gMQoKYW5ub3RhdGlvbiBQQklEZXNrdG9wVmVyc2lvbiA9IDIuMTQwLjc1MTAuMSAoTWFpbikrYjM2NmM1ODEzNGRkNDJkZjk0MmU5YmJhNjUzNzlmM2YyMzk3M2VlMAoKcmVmIHRhYmxlIFRhYmxl", + "payloadType": "InlineBase64"}, {"path": "definition/tables/Table.tmdl", "payload": + "dGFibGUgVGFibGUKCWxpbmVhZ2VUYWc6IDFmY2QyZDhjLTkzZDYtNGU2Zi1hYjg2LThjMDU5YzhhODk4ZAoKCWNvbHVtbiBDb2x1bW4xCgkJZGF0YVR5cGU6IHN0cmluZwoJCWxpbmVhZ2VUYWc6IGIxNGI3M2UwLTI0NDctNDNlYi04ZWU1LTA2ZDQ3NTMxYzQxZAoJCXN1bW1hcml6ZUJ5OiBub25lCgkJc291cmNlQ29sdW1uOiBDb2x1bW4xCgoJCWFubm90YXRpb24gU3VtbWFyaXphdGlvblNldEJ5ID0gQXV0b21hdGljCgoJY29sdW1uIENvbHVtbjIKCQlkYXRhVHlwZTogc3RyaW5nCgkJbGluZWFnZVRhZzogZGE5YWMzNDUtMTFmMS00NGY5LThlNGItMDJjZmNhZGI4OTU3CgkJc3VtbWFyaXplQnk6IG5vbmUKCQlzb3VyY2VDb2x1bW46IENvbHVtbjIKCgkJYW5ub3RhdGlvbiBTdW1tYXJpemF0aW9uU2V0QnkgPSBBdXRvbWF0aWMKCglwYXJ0aXRpb24gVGFibGUgPSBtCgkJbW9kZTogaW1wb3J0CgkJc291cmNlID0KCQkJCWxldAoJCQkJICBTb3VyY2UgPSBUYWJsZS5Gcm9tUm93cyhKc29uLkRvY3VtZW50KEJpbmFyeS5EZWNvbXByZXNzKEJpbmFyeS5Gcm9tVGV4dCgiaTQ1V0tqRlUwZ0VSc2JFQSIsIEJpbmFyeUVuY29kaW5nLkJhc2U2NCksIENvbXByZXNzaW9uLkRlZmxhdGUpKSwgbGV0IF90ID0gKCh0eXBlIG51bGxhYmxlIHRleHQpIG1ldGEgW1NlcmlhbGl6ZWQuVGV4dCA9IHRydWVdKSBpbiB0eXBlIHRhYmxlIFtDb2x1bW4xID0gX3QsIENvbHVtbjIgPSBfdF0pLAoJCQkJICAjIkNoYW5nZWQgY29sdW1uIHR5cGUiID0gVGFibGUuVHJhbnNmb3JtQ29sdW1uVHlwZXMoU291cmNlLCB7fSkKCQkJCWluCgkJCQkgICMiQ2hhbmdlZCBjb2x1bW4gdHlwZSIKCglhbm5vdGF0aW9uIFBCSV9SZXN1bHRUeXBlID0gVGFibGUKCg==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2673' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/semanticModels + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:44:46 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f255b4c9-d763-482b-a32b-94abd9bb05dd + Pragma: + - no-cache + RequestId: + - 8c3b6753-04d5-4b46-aee7-c2fe559b57e4 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - f255b4c9-d763-482b-a32b-94abd9bb05dd + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f255b4c9-d763-482b-a32b-94abd9bb05dd + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:44:46.2284267", + "lastUpdatedTimeUtc": "2026-02-05T07:44:58.3999325", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:07 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f255b4c9-d763-482b-a32b-94abd9bb05dd/result + Pragma: + - no-cache + RequestId: + - 4d32a443-ae3c-4a85-b46f-259d51c05f5b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - f255b4c9-d763-482b-a32b-94abd9bb05dd + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f255b4c9-d763-482b-a32b-94abd9bb05dd/result + response: + body: + string: '{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:45:08 GMT + Pragma: + - no-cache + RequestId: + - 6ae79898-64db-4ab9-8887-76efcc9bec26 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Report", "folderId": null, "definition": {"parts": [{"path": ".platform", "payload": + "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlJlcG9ydCIsCiAgICAiZGlzcGxheU5hbWUiOiAiQmxhbmsiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}, {"path": "definition.pbir", "payload": "eyJ2ZXJzaW9uIjogIjQuMCIsICJkYXRhc2V0UmVmZXJlbmNlIjogeyJieVBhdGgiOiBudWxsLCAiYnlDb25uZWN0aW9uIjogeyJjb25uZWN0aW9uU3RyaW5nIjogIkRhdGEgU291cmNlPXBvd2VyYmk6Ly9hcGkucG93ZXJiaS5jb20vdjEuMC9teW9yZy9ta2RpcjtJbml0aWFsIENhdGFsb2c9cjM7SW50ZWdyYXRlZCBTZWN1cml0eT1DbGFpbXNUb2tlbiIsICJwYmlTZXJ2aWNlTW9kZWxJZCI6IG51bGwsICJwYmlNb2RlbFZpcnR1YWxTZXJ2ZXJOYW1lIjogInNvYmVfd293dmlydHVhbHNlcnZlciIsICJwYmlNb2RlbERhdGFiYXNlTmFtZSI6ICIzYWUxMjZmZS1lYWM4LTRhNTMtYTc1MS0yZmE2ZDcyZTY0M2EiLCAibmFtZSI6ICJFbnRpdHlEYXRhU291cmNlIiwgImNvbm5lY3Rpb25UeXBlIjogInBiaVNlcnZpY2VYbWxhU3R5bGVMaXZlIn19fQ==", + "payloadType": "InlineBase64"}, {"path": "definition/report.json", "payload": + "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9pdGVtL3JlcG9ydC9kZWZpbml0aW9uL3JlcG9ydC8xLjIuMC9zY2hlbWEuanNvbiIsCiAgInRoZW1lQ29sbGVjdGlvbiI6IHsKICAgICJiYXNlVGhlbWUiOiB7CiAgICAgICJuYW1lIjogIkNZMjRTVTEwIiwKICAgICAgInJlcG9ydFZlcnNpb25BdEltcG9ydCI6ICI1LjYxIiwKICAgICAgInR5cGUiOiAiU2hhcmVkUmVzb3VyY2VzIgogICAgfQogIH0sCiAgImxheW91dE9wdGltaXphdGlvbiI6ICJOb25lIiwKICAib2JqZWN0cyI6IHsKICAgICJzZWN0aW9uIjogWwogICAgICB7CiAgICAgICAgInByb3BlcnRpZXMiOiB7CiAgICAgICAgICAidmVydGljYWxBbGlnbm1lbnQiOiB7CiAgICAgICAgICAgICJleHByIjogewogICAgICAgICAgICAgICJMaXRlcmFsIjogewogICAgICAgICAgICAgICAgIlZhbHVlIjogIidUb3AnIgogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgXQogIH0sCiAgInJlc291cmNlUGFja2FnZXMiOiBbCiAgICB7CiAgICAgICJuYW1lIjogIlNoYXJlZFJlc291cmNlcyIsCiAgICAgICJ0eXBlIjogIlNoYXJlZFJlc291cmNlcyIsCiAgICAgICJpdGVtcyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJDWTI0U1UxMCIsCiAgICAgICAgICAicGF0aCI6ICJCYXNlVGhlbWVzL0NZMjRTVTEwLmpzb24iLAogICAgICAgICAgInR5cGUiOiAiQmFzZVRoZW1lIgogICAgICAgIH0KICAgICAgXQogICAgfQogIF0sCiAgInNldHRpbmdzIjogewogICAgInVzZVN0eWxhYmxlVmlzdWFsQ29udGFpbmVySGVhZGVyIjogdHJ1ZSwKICAgICJkZWZhdWx0RHJpbGxGaWx0ZXJPdGhlclZpc3VhbHMiOiB0cnVlLAogICAgImFsbG93Q2hhbmdlRmlsdGVyVHlwZXMiOiB0cnVlLAogICAgInVzZUVuaGFuY2VkVG9vbHRpcHMiOiB0cnVlLAogICAgInVzZURlZmF1bHRBZ2dyZWdhdGVEaXNwbGF5TmFtZSI6IHRydWUKICB9Cn0=", + "payloadType": "InlineBase64"}, {"path": "definition/version.json", "payload": + "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9pdGVtL3JlcG9ydC9kZWZpbml0aW9uL3ZlcnNpb25NZXRhZGF0YS8xLjAuMC9zY2hlbWEuanNvbiIsCiAgInZlcnNpb24iOiAiMi4wLjAiCn0=", + "payloadType": "InlineBase64"}, {"path": "definition/pages/pages.json", "payload": + "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9pdGVtL3JlcG9ydC9kZWZpbml0aW9uL3BhZ2VzTWV0YWRhdGEvMS4wLjAvc2NoZW1hLmpzb24iLAogICJwYWdlT3JkZXIiOiBbCiAgICAiYjhjNWZiOGQ2MzVmODk4MzI2YzYiCiAgXSwKICAiYWN0aXZlUGFnZU5hbWUiOiAiYjhjNWZiOGQ2MzVmODk4MzI2YzYiCn0=", + "payloadType": "InlineBase64"}, {"path": "definition/pages/b8c5fb8d635f898326c6/page.json", + "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9pdGVtL3JlcG9ydC9kZWZpbml0aW9uL3BhZ2UvMS4zLjAvc2NoZW1hLmpzb24iLAogICJuYW1lIjogImI4YzVmYjhkNjM1Zjg5ODMyNmM2IiwKICAiZGlzcGxheU5hbWUiOiAiUGFnZSAxIiwKICAiZGlzcGxheU9wdGlvbiI6ICJGaXRUb1BhZ2UiLAogICJoZWlnaHQiOiA3MjAsCiAgIndpZHRoIjogMTI4MAp9", + "payloadType": "InlineBase64"}, {"path": "StaticResources/SharedResources/BaseThemes/CY24SU10.json", + "payload": "ewogICJuYW1lIjogIkNZMjRTVTEwIiwKICAiZGF0YUNvbG9ycyI6IFsKICAgICIjMTE4REZGIiwKICAgICIjMTIyMzlFIiwKICAgICIjRTY2QzM3IiwKICAgICIjNkIwMDdCIiwKICAgICIjRTA0NEE3IiwKICAgICIjNzQ0RUMyIiwKICAgICIjRDlCMzAwIiwKICAgICIjRDY0NTUwIiwKICAgICIjMTk3Mjc4IiwKICAgICIjMUFBQjQwIiwKICAgICIjMTVDNkY0IiwKICAgICIjNDA5MkZGIiwKICAgICIjRkZBMDU4IiwKICAgICIjQkU1REM5IiwKICAgICIjRjQ3MkQwIiwKICAgICIjQjVBMUZGIiwKICAgICIjQzRBMjAwIiwKICAgICIjRkY4MDgwIiwKICAgICIjMDBEQkJDIiwKICAgICIjNUJENjY3IiwKICAgICIjMDA5MUQ1IiwKICAgICIjNDY2OEM1IiwKICAgICIjRkY2MzAwIiwKICAgICIjOTkwMDhBIiwKICAgICIjRUMwMDhDIiwKICAgICIjNTMzMjg1IiwKICAgICIjOTk3MDBBIiwKICAgICIjRkY0MTQxIiwKICAgICIjMUY5QTg1IiwKICAgICIjMjU4OTFDIiwKICAgICIjMDA1N0EyIiwKICAgICIjMDAyMDUwIiwKICAgICIjQzk0RjBGIiwKICAgICIjNDUwRjU0IiwKICAgICIjQjYwMDY0IiwKICAgICIjMzQxMjRGIiwKICAgICIjNkE1QTI5IiwKICAgICIjMUFBQjQwIiwKICAgICIjQkExNDFBIiwKICAgICIjMEMzRDM3IiwKICAgICIjMEI1MTFGIgogIF0sCiAgImZvcmVncm91bmQiOiAiIzI1MjQyMyIsCiAgImZvcmVncm91bmROZXV0cmFsU2Vjb25kYXJ5IjogIiM2MDVFNUMiLAogICJmb3JlZ3JvdW5kTmV1dHJhbFRlcnRpYXJ5IjogIiNCM0IwQUQiLAogICJiYWNrZ3JvdW5kIjogIiNGRkZGRkYiLAogICJiYWNrZ3JvdW5kTGlnaHQiOiAiI0YzRjJGMSIsCiAgImJhY2tncm91bmROZXV0cmFsIjogIiNDOEM2QzQiLAogICJ0YWJsZUFjY2VudCI6ICIjMTE4REZGIiwKICAiZ29vZCI6ICIjMUFBQjQwIiwKICAibmV1dHJhbCI6ICIjRDlCMzAwIiwKICAiYmFkIjogIiNENjQ1NTQiLAogICJtYXhpbXVtIjogIiMxMThERkYiLAogICJjZW50ZXIiOiAiI0Q5QjMwMCIsCiAgIm1pbmltdW0iOiAiI0RFRUZGRiIsCiAgIm51bGwiOiAiI0ZGN0Y0OCIsCiAgImh5cGVybGluayI6ICIjMDA3OGQ0IiwKICAidmlzaXRlZEh5cGVybGluayI6ICIjMDA3OGQ0IiwKICAidGV4dENsYXNzZXMiOiB7CiAgICAiY2FsbG91dCI6IHsKICAgICAgImZvbnRTaXplIjogNDUsCiAgICAgICJmb250RmFjZSI6ICJESU4iLAogICAgICAiY29sb3IiOiAiIzI1MjQyMyIKICAgIH0sCiAgICAidGl0bGUiOiB7CiAgICAgICJmb250U2l6ZSI6IDEyLAogICAgICAiZm9udEZhY2UiOiAiRElOIiwKICAgICAgImNvbG9yIjogIiMyNTI0MjMiCiAgICB9LAogICAgImhlYWRlciI6IHsKICAgICAgImZvbnRTaXplIjogMTIsCiAgICAgICJmb250RmFjZSI6ICJTZWdvZSBVSSBTZW1pYm9sZCIsCiAgICAgICJjb2xvciI6ICIjMjUyNDIzIgogICAgfSwKICAgICJsYWJlbCI6IHsKICAgICAgImZvbnRTaXplIjogMTAsCiAgICAgICJmb250RmFjZSI6ICJTZWdvZSBVSSIsCiAgICAgICJjb2xvciI6ICIjMjUyNDIzIgogICAgfQogIH0sCiAgInZpc3VhbFN0eWxlcyI6IHsKICAgICIqIjogewogICAgICAiKiI6IHsKICAgICAgICAiKiI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgIndvcmRXcmFwIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgImxpbmUiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJ0cmFuc3BhcmVuY3kiOiAwCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAib3V0bGluZSI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInRyYW5zcGFyZW5jeSI6IDAKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJwbG90QXJlYSI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInRyYW5zcGFyZW5jeSI6IDAKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJjYXRlZ29yeUF4aXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93QXhpc1RpdGxlIjogdHJ1ZSwKICAgICAgICAgICAgImdyaWRsaW5lU3R5bGUiOiAiZG90dGVkIiwKICAgICAgICAgICAgImNvbmNhdGVuYXRlTGFiZWxzIjogZmFsc2UKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJ2YWx1ZUF4aXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93QXhpc1RpdGxlIjogdHJ1ZSwKICAgICAgICAgICAgImdyaWRsaW5lU3R5bGUiOiAiZG90dGVkIgogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInkyQXhpcyI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAidGl0bGUiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJ0aXRsZVdyYXAiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGluZVN0eWxlcyI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInN0cm9rZVdpZHRoIjogMwogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgIndvcmRXcmFwIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IHRydWUsCiAgICAgICAgICAgICJ0cmFuc3BhcmVuY3kiOiAwCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiYm9yZGVyIjogWwogICAgICAgICAgewogICAgICAgICAgICAid2lkdGgiOiAxCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAib3V0c3BhY2VQYW5lIjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZENvbG9yIjogewogICAgICAgICAgICAgICJzb2xpZCI6IHsKICAgICAgICAgICAgICAgICJjb2xvciI6ICIjZmZmZmZmIgogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSwKICAgICAgICAgICAgInRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJib3JkZXIiOiB0cnVlLAogICAgICAgICAgICAiYm9yZGVyQ29sb3IiOiB7CiAgICAgICAgICAgICAgInNvbGlkIjogewogICAgICAgICAgICAgICAgImNvbG9yIjogIiNCM0IwQUQiCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZmlsdGVyQ2FyZCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgIiRpZCI6ICJBcHBsaWVkIiwKICAgICAgICAgICAgInRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJmb3JlZ3JvdW5kQ29sb3IiOiB7CiAgICAgICAgICAgICAgInNvbGlkIjogewogICAgICAgICAgICAgICAgImNvbG9yIjogIiMyNTI0MjMiCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAogICAgICAgICAgICAiYm9yZGVyIjogdHJ1ZQogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgIiRpZCI6ICJBdmFpbGFibGUiLAogICAgICAgICAgICAidHJhbnNwYXJlbmN5IjogMCwKICAgICAgICAgICAgImZvcmVncm91bmRDb2xvciI6IHsKICAgICAgICAgICAgICAic29saWQiOiB7CiAgICAgICAgICAgICAgICAiY29sb3IiOiAiIzI1MjQyMyIKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJib3JkZXIiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInNjYXR0ZXJDaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImJ1YmJsZXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJidWJibGVTaXplIjogLTEwLAogICAgICAgICAgICAibWFya2VyUmFuZ2VUeXBlIjogImF1dG8iCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZmlsbFBvaW50IjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJsZWdlbmQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93R3JhZGllbnRMZWdlbmQiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImxpbmVDaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZm9yZWNhc3QiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJtYXRjaFNlcmllc0ludGVycG9sYXRpb24iOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgIm1hcCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImJ1YmJsZXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJidWJibGVTaXplIjogLTEwLAogICAgICAgICAgICAibWFya2VyUmFuZ2VUeXBlIjogImF1dG8iCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImF6dXJlTWFwIjogewogICAgICAiKiI6IHsKICAgICAgICAiYnViYmxlTGF5ZXIiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJidWJibGVSYWRpdXMiOiA4LAogICAgICAgICAgICAibWluQnViYmxlUmFkaXVzIjogOCwKICAgICAgICAgICAgIm1heFJhZGl1cyI6IDQwCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiYmFyQ2hhcnQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJiYXJIZWlnaHQiOiAzLAogICAgICAgICAgICAidGhpY2tuZXNzIjogMwogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJwaWVDaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImxlZ2VuZCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiB0cnVlLAogICAgICAgICAgICAicG9zaXRpb24iOiAiUmlnaHRDZW50ZXIiCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGFiZWxzIjogWwogICAgICAgICAgewogICAgICAgICAgICAibGFiZWxTdHlsZSI6ICJEYXRhIHZhbHVlLCBwZXJjZW50IG9mIHRvdGFsIgogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJkb251dENoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IHRydWUsCiAgICAgICAgICAgICJwb3NpdGlvbiI6ICJSaWdodENlbnRlciIKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJsYWJlbHMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJsYWJlbFN0eWxlIjogIkRhdGEgdmFsdWUsIHBlcmNlbnQgb2YgdG90YWwiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInBpdm90VGFibGUiOiB7CiAgICAgICIqIjogewogICAgICAgICJyb3dIZWFkZXJzIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0V4cGFuZENvbGxhcHNlQnV0dG9ucyI6IHRydWUsCiAgICAgICAgICAgICJsZWdhY3lTdHlsZURpc2FibGVkIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJtdWx0aVJvd0NhcmQiOiB7CiAgICAgICIqIjogewogICAgICAgICJjYXJkIjogWwogICAgICAgICAgewogICAgICAgICAgICAib3V0bGluZVdlaWdodCI6IDIsCiAgICAgICAgICAgICJiYXJTaG93IjogdHJ1ZSwKICAgICAgICAgICAgImJhcldlaWdodCI6IDIKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0KICAgIH0sCiAgICAia3BpIjogewogICAgICAiKiI6IHsKICAgICAgICAidHJlbmRsaW5lIjogWwogICAgICAgICAgewogICAgICAgICAgICAidHJhbnNwYXJlbmN5IjogMjAKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0KICAgIH0sCiAgICAiY2FyZFZpc3VhbCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImxheW91dCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgIm1heFRpbGVzIjogMwogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgIm92ZXJmbG93IjogWwogICAgICAgICAgewogICAgICAgICAgICAidHlwZSI6IDAKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJpbWFnZSI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImZpeGVkU2l6ZSI6IGZhbHNlCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiaW1hZ2VBcmVhU2l6ZSI6IDUwCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImFkdmFuY2VkU2xpY2VyVmlzdWFsIjogewogICAgICAiKiI6IHsKICAgICAgICAibGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAibWF4VGlsZXMiOiAzCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInNsaWNlciI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgImRhdGUiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJoaWRlRGF0ZVBpY2tlckJ1dHRvbiI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiaXRlbXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJwYWRkaW5nIjogNCwKICAgICAgICAgICAgImFjY2Vzc2liaWxpdHlDb250cmFzdFByb3BlcnRpZXMiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgIndhdGVyZmFsbENoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImNvbHVtbkNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImNsdXN0ZXJlZENvbHVtbkNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImh1bmRyZWRQZXJjZW50U3RhY2tlZENvbHVtbkNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImJhckNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImNsdXN0ZXJlZEJhckNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImh1bmRyZWRQZXJjZW50U3RhY2tlZEJhckNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAibGVnZW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvd0dyYWRpZW50TGVnZW5kIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImFyZWFDaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInN0YWNrZWRBcmVhQ2hhcnQiOiB7CiAgICAgICIqIjogewogICAgICAgICJnZW5lcmFsIjogWwogICAgICAgICAgewogICAgICAgICAgICAicmVzcG9uc2l2ZSI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJzbWFsbE11bHRpcGxlc0xheW91dCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImJhY2tncm91bmRUcmFuc3BhcmVuY3kiOiAwLAogICAgICAgICAgICAiZ3JpZExpbmVUeXBlIjogImlubmVyIgogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJsaW5lQ2x1c3RlcmVkQ29sdW1uQ29tYm9DaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImxpbmVTdGFja2VkQ29sdW1uQ29tYm9DaGFydCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyZXNwb25zaXZlIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInNtYWxsTXVsdGlwbGVzTGF5b3V0IjogWwogICAgICAgICAgewogICAgICAgICAgICAiYmFja2dyb3VuZFRyYW5zcGFyZW5jeSI6IDAsCiAgICAgICAgICAgICJncmlkTGluZVR5cGUiOiAiaW5uZXIiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInJpYmJvbkNoYXJ0IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInJlc3BvbnNpdmUiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAic21hbGxNdWx0aXBsZXNMYXlvdXQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJiYWNrZ3JvdW5kVHJhbnNwYXJlbmN5IjogMCwKICAgICAgICAgICAgImdyaWRMaW5lVHlwZSI6ICJpbm5lciIKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJ2YWx1ZUF4aXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJodW5kcmVkUGVyY2VudFN0YWNrZWRBcmVhQ2hhcnQiOiB7CiAgICAgICIqIjogewogICAgICAgICJnZW5lcmFsIjogWwogICAgICAgICAgewogICAgICAgICAgICAicmVzcG9uc2l2ZSI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJzbWFsbE11bHRpcGxlc0xheW91dCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImJhY2tncm91bmRUcmFuc3BhcmVuY3kiOiAwLAogICAgICAgICAgICAiZ3JpZExpbmVUeXBlIjogImlubmVyIgogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJncm91cCI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImJhY2tncm91bmQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogZmFsc2UKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0KICAgIH0sCiAgICAiYmFzaWNTaGFwZSI6IHsKICAgICAgIioiOiB7CiAgICAgICAgImJhY2tncm91bmQiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogZmFsc2UKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJnZW5lcmFsIjogWwogICAgICAgICAgewogICAgICAgICAgICAia2VlcExheWVyT3JkZXIiOiB0cnVlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAidmlzdWFsSGVhZGVyIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInNoYXBlIjogewogICAgICAiKiI6IHsKICAgICAgICAiYmFja2dyb3VuZCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgImdlbmVyYWwiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJrZWVwTGF5ZXJPcmRlciI6IHRydWUKICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJ2aXN1YWxIZWFkZXIiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogZmFsc2UKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0KICAgIH0sCiAgICAiaW1hZ2UiOiB7CiAgICAgICIqIjogewogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImtlZXBMYXllck9yZGVyIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInZpc3VhbEhlYWRlciI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgImxvY2tBc3BlY3QiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJzaG93IjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJhY3Rpb25CdXR0b24iOiB7CiAgICAgICIqIjogewogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAidmlzdWFsSGVhZGVyIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgInBhZ2VOYXZpZ2F0b3IiOiB7CiAgICAgICIqIjogewogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAidmlzdWFsSGVhZGVyIjogWwogICAgICAgICAgewogICAgICAgICAgICAic2hvdyI6IGZhbHNlCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9LAogICAgImJvb2ttYXJrTmF2aWdhdG9yIjogewogICAgICAiKiI6IHsKICAgICAgICAiYmFja2dyb3VuZCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInZpc3VhbEhlYWRlciI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJ0ZXh0Ym94IjogewogICAgICAiKiI6IHsKICAgICAgICAiZ2VuZXJhbCI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImtlZXBMYXllck9yZGVyIjogdHJ1ZQogICAgICAgICAgfQogICAgICAgIF0sCiAgICAgICAgInZpc3VhbEhlYWRlciI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgInNob3ciOiBmYWxzZQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgfSwKICAgICJwYWdlIjogewogICAgICAiKiI6IHsKICAgICAgICAib3V0c3BhY2UiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJjb2xvciI6IHsKICAgICAgICAgICAgICAic29saWQiOiB7CiAgICAgICAgICAgICAgICAiY29sb3IiOiAiI0ZGRkZGRiIKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJiYWNrZ3JvdW5kIjogWwogICAgICAgICAgewogICAgICAgICAgICAidHJhbnNwYXJlbmN5IjogMTAwCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICB9CiAgfQp9", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '21794' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/reports + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:10 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9a6dc13f-91d7-4279-9940-aa94d20a152f + Pragma: + - no-cache + RequestId: + - ea120a6d-8c7b-442e-8289-9a0567ef1a4d + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 9a6dc13f-91d7-4279-9940-aa94d20a152f + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9a6dc13f-91d7-4279-9940-aa94d20a152f + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:45:10.5266885", + "lastUpdatedTimeUtc": "2026-02-05T07:45:11.6055284", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '129' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:32 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9a6dc13f-91d7-4279-9940-aa94d20a152f/result + Pragma: + - no-cache + RequestId: + - a8ca7da4-82b8-4ea3-8c1f-7ef12ce2b1b4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 9a6dc13f-91d7-4279-9940-aa94d20a152f + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9a6dc13f-91d7-4279-9940-aa94d20a152f/result + response: + body: + string: '{"id": "c281550e-e1fc-45ba-8748-805899c88931", "type": "Report", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:45:32 GMT + Pragma: + - no-cache + RequestId: + - 486e9d26-2cdf-4c2b-a6d2-5e05e577def4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:34 GMT + Pragma: + - no-cache + RequestId: + - 6e61ca32-96a9-4e71-b182-993e80380246 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "c281550e-e1fc-45ba-8748-805899c88931", "type": "Report", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '232' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:34 GMT + Pragma: + - no-cache + RequestId: + - 1ba60da8-587e-4f10-8558-68ecd84ff1f0 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/c281550e-e1fc-45ba-8748-805899c88931 + 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, 05 Feb 2026 07:45:36 GMT + Pragma: + - no-cache + RequestId: + - 3a45ee43-9ed6-443b-874b-4dfcf75035f4 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:37 GMT + Pragma: + - no-cache + RequestId: + - 1579ba50-c1ca-44fc-9fe8-10fac6359fff + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:37 GMT + Pragma: + - no-cache + RequestId: + - abba0f56-6439-4d06-83dc-439592f0cdf5 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:38 GMT + Pragma: + - no-cache + RequestId: + - 21540c65-659e-4b32-bcc0-b568bead1de1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[SQLDatabase].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[SQLDatabase].yaml new file mode 100644 index 00000000..4edf8f01 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[SQLDatabase].yaml @@ -0,0 +1,607 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:39 GMT + Pragma: + - no-cache + RequestId: + - b2067d46-e03e-485d-a627-bc7a51633095 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:39 GMT + Pragma: + - no-cache + RequestId: + - 6940bc12-e789-4c83-ad7a-05aa23d07902 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:40 GMT + Pragma: + - no-cache + RequestId: + - 4079fe18-97cb-4927-a5e4-93bd95253b4c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "SQLDatabase", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '109' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/sqlDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:45:42 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5ac8ed5d-201a-4d6d-b5d8-27e76a0b7db5 + Pragma: + - no-cache + RequestId: + - d67b4a2a-cfa7-425e-87ec-ba45343d4cf6 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 5ac8ed5d-201a-4d6d-b5d8-27e76a0b7db5 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5ac8ed5d-201a-4d6d-b5d8-27e76a0b7db5 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:45:42.0432757", + "lastUpdatedTimeUtc": "2026-02-05T07:45:58.8916114", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:04 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5ac8ed5d-201a-4d6d-b5d8-27e76a0b7db5/result + Pragma: + - no-cache + RequestId: + - 26cf2c73-6369-4492-88ad-0dc1d657812a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 5ac8ed5d-201a-4d6d-b5d8-27e76a0b7db5 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5ac8ed5d-201a-4d6d-b5d8-27e76a0b7db5/result + response: + body: + string: '{"id": "cfe8ff8a-93e3-4012-a8c9-6136bfdd62b7", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:46:04 GMT + Pragma: + - no-cache + RequestId: + - 792e3947-33c3-45b1-a9c9-8ba2701f3c72 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:06 GMT + Pragma: + - no-cache + RequestId: + - 9912b25d-22e6-4000-8dea-bb2a41ddcc69 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "cfe8ff8a-93e3-4012-a8c9-6136bfdd62b7", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '242' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:06 GMT + Pragma: + - no-cache + RequestId: + - a2fbd58f-f4af-49ff-8034-eb6a456bb1ab + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/cfe8ff8a-93e3-4012-a8c9-6136bfdd62b7 + 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, 05 Feb 2026 07:46:07 GMT + Pragma: + - no-cache + RequestId: + - 8878ee6c-a6a6-49be-a912-317dbba9a9e3 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:08 GMT + Pragma: + - no-cache + RequestId: + - 202d03ab-970c-4f95-80f6-ee02da5bab28 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:09 GMT + Pragma: + - no-cache + RequestId: + - e7477109-508b-498b-a616-54fbf5bb9480 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:10 GMT + Pragma: + - no-cache + RequestId: + - 5c08aef6-a556-4ed8-9adc-dbfb834a7613 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[SemanticModel].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[SemanticModel].yaml new file mode 100644 index 00000000..c22ced5b --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[SemanticModel].yaml @@ -0,0 +1,612 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:10 GMT + Pragma: + - no-cache + RequestId: + - 0f4f1003-eb52-42a2-bc07-965f51537f1d + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:11 GMT + Pragma: + - no-cache + RequestId: + - 34bdce60-6a39-496f-bc8c-f887feedcc0b + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:12 GMT + Pragma: + - no-cache + RequestId: + - 8135bf74-d70a-4bcf-adc2-5c206b49cdb8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "SemanticModel", "folderId": null, "definition": {"parts": [{"path": ".platform", + "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNlbWFudGljTW9kZWwiLAogICAgImRpc3BsYXlOYW1lIjogIkJsYW5rIgogIH0sCiAgImNvbmZpZyI6IHsKICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAibG9naWNhbElkIjogIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIKICB9Cn0=", + "payloadType": "InlineBase64"}, {"path": "definition.pbism", "payload": "ewogICJ2ZXJzaW9uIjogIjQuMCIsCiAgInNldHRpbmdzIjoge30KfQ==", + "payloadType": "InlineBase64"}, {"path": "definition/database.tmdl", "payload": + "ZGF0YWJhc2UKCWNvbXBhdGliaWxpdHlMZXZlbDogMTU2MQoK", "payloadType": "InlineBase64"}, + {"path": "definition/model.tmdl", "payload": "bW9kZWwgTW9kZWwKCWN1bHR1cmU6IGVuLVVTCglkZWZhdWx0UG93ZXJCSURhdGFTb3VyY2VWZXJzaW9uOiBwb3dlckJJX1YzCglzb3VyY2VRdWVyeUN1bHR1cmU6IGVuLVVTCglkYXRhQWNjZXNzT3B0aW9ucwoJCWxlZ2FjeVJlZGlyZWN0cwoJCXJldHVybkVycm9yVmFsdWVzQXNOdWxsCgphbm5vdGF0aW9uIFBCSV9RdWVyeU9yZGVyID0gWyJUYWJsZSJdCgphbm5vdGF0aW9uIF9fUEJJX1RpbWVJbnRlbGxpZ2VuY2VFbmFibGVkID0gMQoKYW5ub3RhdGlvbiBQQklEZXNrdG9wVmVyc2lvbiA9IDIuMTQwLjc1MTAuMSAoTWFpbikrYjM2NmM1ODEzNGRkNDJkZjk0MmU5YmJhNjUzNzlmM2YyMzk3M2VlMAoKcmVmIHRhYmxlIFRhYmxl", + "payloadType": "InlineBase64"}, {"path": "definition/tables/Table.tmdl", "payload": + "dGFibGUgVGFibGUKCWxpbmVhZ2VUYWc6IDFmY2QyZDhjLTkzZDYtNGU2Zi1hYjg2LThjMDU5YzhhODk4ZAoKCWNvbHVtbiBDb2x1bW4xCgkJZGF0YVR5cGU6IHN0cmluZwoJCWxpbmVhZ2VUYWc6IGIxNGI3M2UwLTI0NDctNDNlYi04ZWU1LTA2ZDQ3NTMxYzQxZAoJCXN1bW1hcml6ZUJ5OiBub25lCgkJc291cmNlQ29sdW1uOiBDb2x1bW4xCgoJCWFubm90YXRpb24gU3VtbWFyaXphdGlvblNldEJ5ID0gQXV0b21hdGljCgoJY29sdW1uIENvbHVtbjIKCQlkYXRhVHlwZTogc3RyaW5nCgkJbGluZWFnZVRhZzogZGE5YWMzNDUtMTFmMS00NGY5LThlNGItMDJjZmNhZGI4OTU3CgkJc3VtbWFyaXplQnk6IG5vbmUKCQlzb3VyY2VDb2x1bW46IENvbHVtbjIKCgkJYW5ub3RhdGlvbiBTdW1tYXJpemF0aW9uU2V0QnkgPSBBdXRvbWF0aWMKCglwYXJ0aXRpb24gVGFibGUgPSBtCgkJbW9kZTogaW1wb3J0CgkJc291cmNlID0KCQkJCWxldAoJCQkJICBTb3VyY2UgPSBUYWJsZS5Gcm9tUm93cyhKc29uLkRvY3VtZW50KEJpbmFyeS5EZWNvbXByZXNzKEJpbmFyeS5Gcm9tVGV4dCgiaTQ1V0tqRlUwZ0VSc2JFQSIsIEJpbmFyeUVuY29kaW5nLkJhc2U2NCksIENvbXByZXNzaW9uLkRlZmxhdGUpKSwgbGV0IF90ID0gKCh0eXBlIG51bGxhYmxlIHRleHQpIG1ldGEgW1NlcmlhbGl6ZWQuVGV4dCA9IHRydWVdKSBpbiB0eXBlIHRhYmxlIFtDb2x1bW4xID0gX3QsIENvbHVtbjIgPSBfdF0pLAoJCQkJICAjIkNoYW5nZWQgY29sdW1uIHR5cGUiID0gVGFibGUuVHJhbnNmb3JtQ29sdW1uVHlwZXMoU291cmNlLCB7fSkKCQkJCWluCgkJCQkgICMiQ2hhbmdlZCBjb2x1bW4gdHlwZSIKCglhbm5vdGF0aW9uIFBCSV9SZXN1bHRUeXBlID0gVGFibGUKCg==", + "payloadType": "InlineBase64"}]}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2668' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/semanticModels + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:13 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/cafc6632-6617-4acc-9c80-f82a774ea649 + Pragma: + - no-cache + RequestId: + - 944b7361-787f-42ba-a0d7-93907eea8389 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - cafc6632-6617-4acc-9c80-f82a774ea649 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/cafc6632-6617-4acc-9c80-f82a774ea649 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:46:14.0373558", + "lastUpdatedTimeUtc": "2026-02-05T07:46:24.8991886", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:34 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/cafc6632-6617-4acc-9c80-f82a774ea649/result + Pragma: + - no-cache + RequestId: + - 294f41ad-af57-4e4b-8477-a1b557e4468a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - cafc6632-6617-4acc-9c80-f82a774ea649 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/cafc6632-6617-4acc-9c80-f82a774ea649/result + response: + body: + string: '{"id": "05d926e2-c1b7-4214-8a02-ac172393e99a", "type": "SemanticModel", + "displayName": "fabcli000001", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:46:36 GMT + Pragma: + - no-cache + RequestId: + - 7ac33f61-803d-4268-b5af-562141f45b0c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:37 GMT + Pragma: + - no-cache + RequestId: + - 0e74c21d-775d-479b-9161-ac386355c4cb + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "05d926e2-c1b7-4214-8a02-ac172393e99a", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '218' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:38 GMT + Pragma: + - no-cache + RequestId: + - 30cc5914-99c3-4d30-bfbf-4fcf89f78a71 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/05d926e2-c1b7-4214-8a02-ac172393e99a + 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, 05 Feb 2026 07:46:40 GMT + Pragma: + - no-cache + RequestId: + - a2f7c5a7-84a0-462b-92d5-4a55e5aacb3e + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:40 GMT + Pragma: + - no-cache + RequestId: + - 97bc3091-95bd-4a70-9f42-94865f41a5e1 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:41 GMT + Pragma: + - no-cache + RequestId: + - 6c8fa02b-f79b-42ad-84e4-1530745d493c + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:42 GMT + Pragma: + - no-cache + RequestId: + - 41dd5421-567d-4aea-9007-60371d1f9182 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[SparkJobDefinition].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[SparkJobDefinition].yaml new file mode 100644 index 00000000..ad835e95 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[SparkJobDefinition].yaml @@ -0,0 +1,508 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:43 GMT + Pragma: + - no-cache + RequestId: + - aeedd78e-9215-427a-bf72-e0fc317052ea + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:43 GMT + Pragma: + - no-cache + RequestId: + - 72c19b70-c383-4239-8a39-91052679da75 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:44 GMT + Pragma: + - no-cache + RequestId: + - 951d5738-38aa-437a-b4d1-4b994f5fb364 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "SparkJobDefinition", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '116' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/sparkJobDefinitions + response: + body: + string: '{"id": "08add96c-01cb-4e15-825a-a5478930b725", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '173' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:46 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 7d851167-4f20-4172-9dd5-8f30de68809c + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:47 GMT + Pragma: + - no-cache + RequestId: + - 6394b6a8-76e9-42ae-8fe0-84c06d740062 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "08add96c-01cb-4e15-825a-a5478930b725", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '245' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:48 GMT + Pragma: + - no-cache + RequestId: + - a2d0b69a-744e-4a8a-93e7-79b5d33fc194 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/08add96c-01cb-4e15-825a-a5478930b725 + 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, 05 Feb 2026 07:46:49 GMT + Pragma: + - no-cache + RequestId: + - f23bffae-e42d-4396-99c6-ae8074e5c4da + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:49 GMT + Pragma: + - no-cache + RequestId: + - 2af13b83-97eb-40ac-974f-a7c1c0cec39b + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:51 GMT + Pragma: + - no-cache + RequestId: + - 47ae53c7-0974-4467-a629-7a213e40b5df + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:51 GMT + Pragma: + - no-cache + RequestId: + - 9ab486e0-b282-49b8-a59c-e1e53852d334 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[UserDataFunction].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[UserDataFunction].yaml new file mode 100644 index 00000000..7ffa4175 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[UserDataFunction].yaml @@ -0,0 +1,547 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:21 GMT + Pragma: + - no-cache + RequestId: + - 44f7cdc2-21ed-449a-b12c-b2f6dac4d423 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:22 GMT + Pragma: + - no-cache + RequestId: + - 6fb8a158-aa79-4f6e-a6aa-82a23427b951 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:23 GMT + Pragma: + - no-cache + RequestId: + - 80eedef3-3254-4566-a0bc-a3a87af1ee24 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "UserDataFunction", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '114' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/userdatafunctions + response: + body: + string: '{"id": "64046aff-d0dd-4310-a184-785fdb81002a", "type": "UserDataFunction", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '173' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:26 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 902c3f9d-3878-493a-b3ab-6a35b3a8c1a2 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:26 GMT + Pragma: + - no-cache + RequestId: + - 06463e54-1531-4c84-ad94-534380778515 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "64046aff-d0dd-4310-a184-785fdb81002a", + "type": "UserDataFunction", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '393' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:27 GMT + Pragma: + - no-cache + RequestId: + - e279c175-c2cc-4c1b-bfd7-19f34d5ea060 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/64046aff-d0dd-4310-a184-785fdb81002a + 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, 05 Feb 2026 07:48:28 GMT + Pragma: + - no-cache + RequestId: + - 180f60fc-e0bc-44b2-ab48-7de9298207a8 + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:29 GMT + Pragma: + - no-cache + RequestId: + - 603f4d65-7515-442a-8e93-debec5e11506 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:30 GMT + Pragma: + - no-cache + RequestId: + - 32c09db9-97e7-4ef0-947c-cf00d8c1293f + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "ea1fce42-491b-433f-8692-3d237d4acc11", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, {"id": "0f48811d-f17e-4011-adf2-3967c717102e", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260205074758", + "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "40f22982-bb05-4403-9ffc-a76e8a7e3051", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260205074746", "description": "", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '328' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:48:30 GMT + Pragma: + - no-cache + RequestId: + - 20a8606f-ed2a-4061-ada1-a9cf3d270259 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Warehouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Warehouse].yaml new file mode 100644 index 00000000..23dacfeb --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_item_without_force_success[Warehouse].yaml @@ -0,0 +1,607 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:52 GMT + Pragma: + - no-cache + RequestId: + - 7f12526c-4c82-4f1f-9967-9de7d00b39fe + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:53 GMT + Pragma: + - no-cache + RequestId: + - 6956d99e-e4d7-4383-ad2f-8bc52e595db9 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:54 GMT + Pragma: + - no-cache + RequestId: + - 875d27b2-25e0-468e-aaf6-3fb0f74acd09 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "Warehouse", "folderId": null, "creationPayload": {"defaultCollation": "Latin1_General_100_BIN2_UTF8"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '180' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/adb8fb8e-54a1-4e39-927a-c4d65c660745/warehouses + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:46:54 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a556a52c-fbe8-40da-9f61-fee4370f97f3 + Pragma: + - no-cache + RequestId: + - 68c35aba-6274-44d8-bd97-1b5d9727725f + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - a556a52c-fbe8-40da-9f61-fee4370f97f3 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a556a52c-fbe8-40da-9f61-fee4370f97f3 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T07:46:55.1576499", + "lastUpdatedTimeUtc": "2026-02-05T07:47:04.3476869", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '134' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:16 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a556a52c-fbe8-40da-9f61-fee4370f97f3/result + Pragma: + - no-cache + RequestId: + - 92aaa069-6ca1-40d2-8a8f-a2a90f8bfc32 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a556a52c-fbe8-40da-9f61-fee4370f97f3 + 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://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a556a52c-fbe8-40da-9f61-fee4370f97f3/result + response: + body: + string: '{"id": "125b2384-3483-4178-bb17-3ef34affae71", "type": "Warehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "adb8fb8e-54a1-4e39-927a-c4d65c660745"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 07:47:17 GMT + Pragma: + - no-cache + RequestId: + - 56a061dc-7865-462d-829f-89ba1c9f7dd8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:17 GMT + Pragma: + - no-cache + RequestId: + - 78be99cc-3bd3-4064-a415-3f5c9f810a32 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}, + {"id": "125b2384-3483-4178-bb17-3ef34affae71", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '241' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:19 GMT + Pragma: + - no-cache + RequestId: + - 75c81ae5-b5ab-433b-bbe7-27ed3f9184a3 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items/125b2384-3483-4178-bb17-3ef34affae71 + 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, 05 Feb 2026 07:47:19 GMT + Pragma: + - no-cache + RequestId: + - 6939dcea-3438-4250-9dc6-b4f3a840057a + 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": "adb8fb8e-54a1-4e39-927a-c4d65c660745", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2803' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:20 GMT + Pragma: + - no-cache + RequestId: + - a4ecd8a0-c6b0-4756-9a87-c77c07ce2b98 + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:20 GMT + Pragma: + - no-cache + RequestId: + - 46ffd015-1424-41cc-9ba3-18e6e744df2b + 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/adb8fb8e-54a1-4e39-927a-c4d65c660745/items + response: + body: + string: '{"value": [{"id": "3ae126fe-eac8-4a53-a751-2fa6d72e643a", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "adb8fb8e-54a1-4e39-927a-c4d65c660745"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '174' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 07:47:21 GMT + Pragma: + - no-cache + RequestId: + - 4d1e8d58-fb92-4c9c-8309-57ed8d5f1c48 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[Dashboard].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[Dashboard].yaml new file mode 100644 index 00000000..b950b515 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[Dashboard].yaml @@ -0,0 +1,508 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:51:27 GMT + Pragma: + - no-cache + RequestId: + - b4b1d619-88de-4a50-aff7-a637669bb8d4 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:51:27 GMT + Pragma: + - no-cache + RequestId: + - 7570ac62-25da-4918-a7da-7007cefeacc6 + 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 09:51:33 GMT + Pragma: + - no-cache + RequestId: + - d8a979ed-f099-4032-b7d9-ab98e7ffbede + 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": "06cb51c8-4fc5-4a4c-8d34-df086ce54f55", "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: + - '165' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:51:39 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/06cb51c8-4fc5-4a4c-8d34-df086ce54f55 + Pragma: + - no-cache + RequestId: + - b43a575a-3d08-476c-a57d-ef24a896f34e + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "06cb51c8-4fc5-4a4c-8d34-df086ce54f55", "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: + - '2343' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:51:39 GMT + Pragma: + - no-cache + RequestId: + - 0fee2ac0-67b5-497a-8c93-271a8951214f + 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/06cb51c8-4fc5-4a4c-8d34-df086ce54f55/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 09:51:40 GMT + Pragma: + - no-cache + RequestId: + - 10d6aaa6-e865-43d2-a50e-a649283b478f + 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/06cb51c8-4fc5-4a4c-8d34-df086ce54f55/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 09:51:41 GMT + Pragma: + - no-cache + RequestId: + - da5c1ef0-42ae-482d-ac92-bf334a588502 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "06cb51c8-4fc5-4a4c-8d34-df086ce54f55", "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: + - '2343' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:51:41 GMT + Pragma: + - no-cache + RequestId: + - d33c0793-a016-49f5-a4e0-e781bd434240 + 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/06cb51c8-4fc5-4a4c-8d34-df086ce54f55/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 09:51:42 GMT + Pragma: + - no-cache + RequestId: + - 3632dc54-53e1-4db5-9eb0-0bff432c9e49 + 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/06cb51c8-4fc5-4a4c-8d34-df086ce54f55 + 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 09:51:42 GMT + Pragma: + - no-cache + RequestId: + - a6df33a2-2b8a-4aae-96a0-8bda07002fc7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[Datamart].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[Datamart].yaml new file mode 100644 index 00000000..999dfa4b --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[Datamart].yaml @@ -0,0 +1,508 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:51:43 GMT + Pragma: + - no-cache + RequestId: + - 08e395e8-088a-4837-8532-f7b4b4c8f0af + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:51:43 GMT + Pragma: + - no-cache + RequestId: + - f3b0aceb-bc18-46df-adcc-228cf775480a + 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 09:51:49 GMT + Pragma: + - no-cache + RequestId: + - 139a2772-baa8-409f-a69c-a132635a5e1e + 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": "d22d1ff8-49c2-48d9-a67a-0c865134c646", "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: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:51:59 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/d22d1ff8-49c2-48d9-a67a-0c865134c646 + Pragma: + - no-cache + RequestId: + - bb0c19e3-6fb6-4629-a382-61055455fbf5 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "d22d1ff8-49c2-48d9-a67a-0c865134c646", "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: + - '2345' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:51:59 GMT + Pragma: + - no-cache + RequestId: + - c20ca2d2-5a51-4108-acb6-e1f1c3033b8c + 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/d22d1ff8-49c2-48d9-a67a-0c865134c646/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 09:51:59 GMT + Pragma: + - no-cache + RequestId: + - d631a38f-a419-4cc8-9f9a-ce519c3bbf70 + 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/d22d1ff8-49c2-48d9-a67a-0c865134c646/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 09:52:00 GMT + Pragma: + - no-cache + RequestId: + - 5210384a-6242-43d8-a325-b3466274e824 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "d22d1ff8-49c2-48d9-a67a-0c865134c646", "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: + - '2345' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:01 GMT + Pragma: + - no-cache + RequestId: + - 3424d2b2-46a6-4b28-ade4-c30649beb247 + 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/d22d1ff8-49c2-48d9-a67a-0c865134c646/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 09:52:01 GMT + Pragma: + - no-cache + RequestId: + - 441e3b30-a3fa-4dd4-baa4-298431469e06 + 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/d22d1ff8-49c2-48d9-a67a-0c865134c646 + 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 09:52:01 GMT + Pragma: + - no-cache + RequestId: + - ce319392-cecd-482a-9e7f-04c74d1a7465 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[MirroredWarehouse].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[MirroredWarehouse].yaml new file mode 100644 index 00000000..4e8810a3 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[MirroredWarehouse].yaml @@ -0,0 +1,508 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:02 GMT + Pragma: + - no-cache + RequestId: + - 41256227-34a2-4b77-8663-5c417ce88362 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:03 GMT + Pragma: + - no-cache + RequestId: + - 8daa0309-a43d-41d0-82e4-b2199a2ab62e + 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: + - '426' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:08 GMT + Pragma: + - no-cache + RequestId: + - 07cf2b27-e119-40ee-ab92-b13fe868a57d + 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": "a8643ed5-81e3-424f-9668-a03912297218", "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 09:52:17 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/a8643ed5-81e3-424f-9668-a03912297218 + Pragma: + - no-cache + RequestId: + - a691f269-b981-4717-a251-10005ba5fc81 + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "a8643ed5-81e3-424f-9668-a03912297218", "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: + - '2340' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:17 GMT + Pragma: + - no-cache + RequestId: + - a3f7c3f8-b07d-4bbf-a59e-bc216a4790cc + 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/a8643ed5-81e3-424f-9668-a03912297218/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 09:52:18 GMT + Pragma: + - no-cache + RequestId: + - b8cad16a-f579-4ab2-95e2-375656effe64 + 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/a8643ed5-81e3-424f-9668-a03912297218/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 09:52:19 GMT + Pragma: + - no-cache + RequestId: + - 210da1a7-7713-4a4d-bef2-a69076db7372 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "a8643ed5-81e3-424f-9668-a03912297218", "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: + - '2340' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:19 GMT + Pragma: + - no-cache + RequestId: + - 05e6162e-e65d-4173-aaa3-f6609298bdcb + 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/a8643ed5-81e3-424f-9668-a03912297218/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 09:52:20 GMT + Pragma: + - no-cache + RequestId: + - 133f32eb-91f6-4204-92ad-13a277619770 + 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/a8643ed5-81e3-424f-9668-a03912297218 + 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 09:52:21 GMT + Pragma: + - no-cache + RequestId: + - cf49f295-2c7a-46d8-bfb1-ea0d865c86b1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[PaginatedReport].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[PaginatedReport].yaml new file mode 100644 index 00000000..d34bae01 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[PaginatedReport].yaml @@ -0,0 +1,508 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:22 GMT + Pragma: + - no-cache + RequestId: + - c68d0750-f27f-48d8-8cb3-a573b03030f7 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:22 GMT + Pragma: + - no-cache + RequestId: + - caa533f3-b36a-4929-8927-790e5e23c51e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/capacities + response: + body: + string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": + "Active"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '424' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:28 GMT + Pragma: + - no-cache + RequestId: + - f7c29308-48a3-4e7f-b2f0-cb151d5f613c + 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": "489fd858-3bbd-4944-8996-5384386dbb9f", "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: + - '165' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:38 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/489fd858-3bbd-4944-8996-5384386dbb9f + Pragma: + - no-cache + RequestId: + - ea261981-86ba-45e2-8af8-10ec32ac26af + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "489fd858-3bbd-4944-8996-5384386dbb9f", "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: + - '2340' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:39 GMT + Pragma: + - no-cache + RequestId: + - eaf56b20-dec5-46d1-9dac-363aff853426 + 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/489fd858-3bbd-4944-8996-5384386dbb9f/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 09:52:40 GMT + Pragma: + - no-cache + RequestId: + - 2c2e34a6-86b5-4aba-9f74-efc1e3957b8d + 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/489fd858-3bbd-4944-8996-5384386dbb9f/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 09:52:40 GMT + Pragma: + - no-cache + RequestId: + - dfe5d299-368d-4e0e-961f-b94f7ab682c6 + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "489fd858-3bbd-4944-8996-5384386dbb9f", "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: + - '2340' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:42 GMT + Pragma: + - no-cache + RequestId: + - f91c91c8-030e-4240-a519-bbbdcf9b7dc9 + 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/489fd858-3bbd-4944-8996-5384386dbb9f/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 09:52:42 GMT + Pragma: + - no-cache + RequestId: + - 706c75a9-6ca4-4074-b061-7f6740c36203 + 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/489fd858-3bbd-4944-8996-5384386dbb9f + 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 09:52:43 GMT + Pragma: + - no-cache + RequestId: + - 132bec82-a579-4206-9ce4-0596a45eb6f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[SQLEndpoint].yaml b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[SQLEndpoint].yaml new file mode 100644 index 00000000..2c63fba0 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_rm/test_rm_unsupported_item_failure[SQLEndpoint].yaml @@ -0,0 +1,508 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:44 GMT + Pragma: + - no-cache + RequestId: + - 62d32001-533d-4105-88af-d23aedb585ed + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:52:44 GMT + Pragma: + - no-cache + RequestId: + - 4db8e7f1-18fb-445c-8130-79f0a084f811 + 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 09:52:50 GMT + Pragma: + - no-cache + RequestId: + - 41f0027d-2317-4f5d-916f-119179915c35 + 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": "f7c73ae5-dd53-49a9-85db-2d50a61fa170", "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 09:52:58 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/f7c73ae5-dd53-49a9-85db-2d50a61fa170 + Pragma: + - no-cache + RequestId: + - ac5b7199-1dc8-45ba-bcb9-9188cf1bd9ff + 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/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "f7c73ae5-dd53-49a9-85db-2d50a61fa170", "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: + - '2342' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:53:00 GMT + Pragma: + - no-cache + RequestId: + - d36f5d83-6e54-405f-8bb3-80fa2b86d735 + 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/f7c73ae5-dd53-49a9-85db-2d50a61fa170/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 09:53:01 GMT + Pragma: + - no-cache + RequestId: + - 0731d9c8-0462-4b65-bad7-ddd9a38238d3 + 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/f7c73ae5-dd53-49a9-85db-2d50a61fa170/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 09:53:01 GMT + Pragma: + - no-cache + RequestId: + - 3ea7f294-7d02-4e90-b8ef-59b7b30129df + 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": "5bf49d41-ccf2-4662-872c-a1d794eb7eba", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}, + {"id": "f7c73ae5-dd53-49a9-85db-2d50a61fa170", "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: + - '2342' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 09:53:02 GMT + Pragma: + - no-cache + RequestId: + - 0270b59d-ecb5-46bc-b4cc-81f9b11a1366 + 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/f7c73ae5-dd53-49a9-85db-2d50a61fa170/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 09:53:03 GMT + Pragma: + - no-cache + RequestId: + - 0d393b9b-115e-4968-b5ae-55b4f78535c7 + 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/f7c73ae5-dd53-49a9-85db-2d50a61fa170 + 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 09:53:04 GMT + Pragma: + - no-cache + RequestId: + - 0ec1aabe-4c31-41e9-9ec9-2d9730551a36 + 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_rm.py b/tests/test_commands/test_rm.py index 8bfb48a0..aef6c99a 100644 --- a/tests/test_commands/test_rm.py +++ b/tests/test_commands/test_rm.py @@ -25,13 +25,17 @@ from tests.test_commands.data.static_test_data import StaticTestData from tests.test_commands.processors import generate_random_string from tests.test_commands.utils import cli_path_join +from tests.test_commands.conftest import custom_parametrize class TestRM: # region ITEM + + @custom_parametrize def test_rm_item_success( self, workspace, + item_type, cli_executor, mock_questionary_print, mock_print_warning, @@ -40,31 +44,33 @@ def test_rm_item_success( cassette_name, ): # Setup - notebook = set_entity_metadata( - vcr_instance, cassette_name, "Notebook", workspace.full_path + item = set_entity_metadata( + vcr_instance, cassette_name, item_type, workspace.full_path ) - mkdir(notebook.full_path) + mkdir(item.full_path) mock_print_done.reset_mock() # Execute command - cli_executor.exec_command(f"rm {notebook.full_path} --force") + cli_executor.exec_command(f"rm {item.full_path} --force") # Assert mock_print_warning.assert_called() mock_questionary_print.assert_called() mock_print_done.assert_called_once() _assert_strings_in_mock_calls( - [notebook.display_name], True, mock_questionary_print.mock_calls + [item.display_name], True, mock_questionary_print.mock_calls ) _assert_strings_in_mock_calls( - [notebook.display_name], True, mock_print_done.mock_calls + [item.display_name], True, mock_print_done.mock_calls ) - _assert_not_found(notebook.full_path) + _assert_not_found(item.full_path) + @custom_parametrize def test_rm_item_without_force_success( self, workspace, + item_type, cli_executor, mock_questionary_print, mock_print_done, @@ -72,10 +78,10 @@ def test_rm_item_without_force_success( cassette_name, ): # Setup - notebook = set_entity_metadata( - vcr_instance, cassette_name, "Notebook", workspace.full_path + item = set_entity_metadata( + vcr_instance, cassette_name, item_type, workspace.full_path ) - mkdir(notebook.full_path) + mkdir(item.full_path) # Reset mocks mock_print_done.reset_mock() mock_questionary_print.reset_mock() @@ -84,24 +90,36 @@ def test_rm_item_without_force_success( mock_confirm.return_value.ask.return_value = True # Execute command - cli_executor.exec_command(f"rm {notebook.full_path}") + cli_executor.exec_command(f"rm {item.full_path}") # Assert mock_confirm.assert_called_once() mock_questionary_print.assert_called_once() mock_print_done.assert_called_once() _assert_strings_in_mock_calls( - [notebook.display_name], True, mock_questionary_print.mock_calls + [item.display_name], True, mock_questionary_print.mock_calls ) _assert_strings_in_mock_calls( - [notebook.display_name], True, mock_print_done.mock_calls - ) - - _assert_not_found(notebook.full_path) - + [item.display_name], True, mock_print_done.mock_calls + ) + + _assert_not_found(item.full_path) + + @pytest.mark.parametrize("item_type", [ + ItemType.DATA_PIPELINE, + ItemType.ENVIRONMENT, ItemType.EVENTHOUSE, ItemType.EVENTSTREAM, + ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET, + ItemType.LAKEHOUSE, ItemType.ML_EXPERIMENT, ItemType.ML_MODEL, + ItemType.MIRRORED_DATABASE, ItemType.NOTEBOOK, + ItemType.REFLEX, ItemType.SQL_DATABASE, ItemType.SEMANTIC_MODEL, + ItemType.SPARK_JOB_DEFINITION, ItemType.WAREHOUSE, ItemType.COPYJOB, + ItemType.GRAPHQLAPI, ItemType.DATAFLOW, ItemType.COSMOS_DB_DATABASE, + ItemType.USER_DATA_FUNCTION, ItemType.GRAPH_QUERY_SET, ItemType.DIGITAL_TWIN_BUILDER + ]) def test_rm_item_without_force_cancel_operation_success( self, workspace, + item_type, cli_executor, mock_questionary_print, mock_print_done, @@ -110,10 +128,10 @@ def test_rm_item_without_force_cancel_operation_success( cassette_name, ): # Setup - notebook = set_entity_metadata( - vcr_instance, cassette_name, "Notebook", workspace.full_path + item = set_entity_metadata( + vcr_instance, cassette_name, item_type, workspace.full_path ) - mkdir(notebook.full_path) + mkdir(item.full_path) # Reset mocks mock_print_done.reset_mock() mock_questionary_print.reset_mock() @@ -122,7 +140,7 @@ def test_rm_item_without_force_cancel_operation_success( mock_confirm.return_value.ask.return_value = False # Execute command - cli_executor.exec_command(f"rm {notebook.full_path}") + cli_executor.exec_command(f"rm {item.full_path}") # Assert mock_print_warning.assert_called_once() @@ -130,6 +148,35 @@ def test_rm_item_without_force_cancel_operation_success( mock_questionary_print.assert_not_called() mock_print_done.assert_not_called() + @pytest.mark.parametrize("unsupported_item_type", [ + ItemType.DASHBOARD, + ItemType.DATAMART, + ItemType.MIRRORED_WAREHOUSE, + ItemType.PAGINATED_REPORT, + ItemType.SQL_ENDPOINT, + ]) + def test_rm_unsupported_item_failure( + self, + unsupported_item_type, + workspace_factory, + cli_executor, + assert_fabric_cli_error, + vcr_instance, + cassette_name, + ): + workspace = workspace_factory() + + # Create unsupported item metadata + item_display_name = generate_random_string(vcr_instance, cassette_name) + item_name = f"{item_display_name}.{unsupported_item_type}" + item_full_path = cli_path_join(workspace.full_path, item_name) + + # Execute command + cli_executor.exec_command(f"rm {item_full_path} --force") + + # Assert + assert_fabric_cli_error(constant.ERROR_NOT_FOUND) + # endregion # region WORKSPACE