diff --git a/tests/test_commands/conftest.py b/tests/test_commands/conftest.py index 392f9e5f..f7e9a817 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.DIGITAL_TWIN_BUILDER, ItemType.GRAPH_QUERY_SET, ]) 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_exists/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_exists/class_setup.yaml index 0f4b6692..3325f921 100644 --- a/tests/test_commands/recordings/test_commands/test_exists/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_exists/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' + - '2302' Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Sep 2025 19:29:50 GMT + - Tue, 03 Feb 2026 07:48:03 GMT Pragma: - no-cache RequestId: - - 22cecd0a-38d0-4219-906b-90698f26a3e4 + - a744405c-ca05-4f3a-8b40-7214c0253543 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' + - '2302' Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Sep 2025 19:29:50 GMT + - Tue, 03 Feb 2026 07:48:03 GMT Pragma: - no-cache RequestId: - - 842a3c53-1b0a-4ee2-bb50-d1e46106975a + - 5ba36471-7a60-4960-8661-651a75e97dba 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: - - Tue, 02 Sep 2025 19:29:54 GMT + - Tue, 03 Feb 2026 07:48:10 GMT Pragma: - no-cache RequestId: - - 8d406935-6752-4d68-a951-5d68a964d873 + - 4c85ce78-2a14-436a-918a-4587be6cfc4d 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": "bd75f405-5a3e-4bd1-9a29-debc398aac7b", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "b7945519-3184-48e4-8d42-8b7ee977816d", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' headers: Access-Control-Expose-Headers: @@ -177,17 +177,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '186' + - '187' Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Sep 2025 19:30:03 GMT + - Tue, 03 Feb 2026 07:48:19 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/bd75f405-5a3e-4bd1-9a29-debc398aac7b + - https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d Pragma: - no-cache RequestId: - - d0d878fb-5da7-4f20-8a4a-dfb7cac99eae + - d7dde270-6dc9-4bd5-b6e1-6a5497b311a7 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 (exists; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (exists; 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": "bd75f405-5a3e-4bd1-9a29-debc398aac7b", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "b7945519-3184-48e4-8d42-8b7ee977816d", "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: - - '359' + - '2336' Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Sep 2025 19:31:31 GMT + - Tue, 03 Feb 2026 08:04:23 GMT Pragma: - no-cache RequestId: - - 9cf53ad3-b47c-44bc-a335-b5c8762f00c1 + - 8df2bed4-312f-47f4-b0ae-f13fcadbd0fb 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,12 +264,38 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (exists; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (exists; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/bd75f405-5a3e-4bd1-9a29-debc398aac7b/items + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items response: body: - string: '{"value": []}' + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f1df5308-6465-4263-80c9-3e96364594f0", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "4a5b0f88-82ca-48d2-b4d2-db468fd70df9", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -278,15 +304,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '32' + - '586' Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Sep 2025 19:31:31 GMT + - Tue, 03 Feb 2026 08:04:23 GMT Pragma: - no-cache RequestId: - - c8f0fed1-89b4-4017-9f6f-b7fc0c5df959 + - 62c91cb8-123e-42f0-a40b-f5669eb708ec Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -294,7 +320,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -314,9 +340,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.0.0 (exists; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (exists; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/bd75f405-5a3e-4bd1-9a29-debc398aac7b + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d response: body: string: '' @@ -332,11 +358,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Tue, 02 Sep 2025 19:31:32 GMT + - Tue, 03 Feb 2026 08:04:25 GMT Pragma: - no-cache RequestId: - - dc6b91db-9143-43a1-b3c5-e9a390ecea5e + - 44fbabbc-6b24-4707-b7bd-17a7a8c49f56 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -344,7 +370,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_exists/test_exists_item_doesnt_exist_success[CopyJob].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[CopyJob].yaml new file mode 100644 index 00000000..2b0fe6a1 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[CopyJob].yaml @@ -0,0 +1,580 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:30 GMT + Pragma: + - no-cache + RequestId: + - 81071276-8ad9-4cdc-b1c1-31cf6858f16f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:30 GMT + Pragma: + - no-cache + RequestId: + - 0a476409-3461-499c-85ba-a6cb04987d16 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:31 GMT + Pragma: + - no-cache + RequestId: + - da7a4aa5-b1a9-4496-a31d-43b8ebc9cf3e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/copyJobs + response: + body: + string: '{"id": "8a5c7454-f574-4e2d-9393-1e07deb05335", "type": "CopyJob", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '163' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:36 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 0f0e7bc6-801e-4013-b40e-1abed9a314d5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:36 GMT + Pragma: + - no-cache + RequestId: + - 74b09bec-6224-409d-8cbe-c64b467cea75 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "8a5c7454-f574-4e2d-9393-1e07deb05335", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '490' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:38 GMT + Pragma: + - no-cache + RequestId: + - 3fe3c436-70e4-41aa-93a8-06fcda2a60d1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "8a5c7454-f574-4e2d-9393-1e07deb05335", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '490' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:37 GMT + Pragma: + - no-cache + RequestId: + - a41d1dda-4443-411e-bb5f-531ad09a3d03 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:38 GMT + Pragma: + - no-cache + RequestId: + - af01e92d-be97-4690-96e5-f4bbd8c7cbce + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "8a5c7454-f574-4e2d-9393-1e07deb05335", + "type": "CopyJob", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '490' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:40 GMT + Pragma: + - no-cache + RequestId: + - 2829694f-6659-4a17-9027-0dce4a724b16 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/8a5c7454-f574-4e2d-9393-1e07deb05335 + 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: + - Tue, 03 Feb 2026 08:02:40 GMT + Pragma: + - no-cache + RequestId: + - 8c91e834-0e0a-4de9-8895-9fcb1894c76f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[CosmosDBDatabase].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[CosmosDBDatabase].yaml new file mode 100644 index 00000000..925cd9b0 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[CosmosDBDatabase].yaml @@ -0,0 +1,715 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:00 GMT + Pragma: + - no-cache + RequestId: + - 956de34f-b964-4ee4-9b2b-6822f39ec3af + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '465' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:00 GMT + Pragma: + - no-cache + RequestId: + - da8055e1-4651-4d3d-8e82-7a10a111af51 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '465' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:00 GMT + Pragma: + - no-cache + RequestId: + - d14627f9-3bef-4c90-8d31-bd6c6530f5eb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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 08:03:02 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/62f0220e-348e-48c5-a5d7-b5275958f74f + Pragma: + - no-cache + RequestId: + - 36120938-919e-4141-bf39-224f65372c5e + 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: + - 62f0220e-348e-48c5-a5d7-b5275958f74f + 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/62f0220e-348e-48c5-a5d7-b5275958f74f + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T08:03:02.3182458", + "lastUpdatedTimeUtc": "2026-02-03T08:03:09.6892919", "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: + - Tue, 03 Feb 2026 08:03:24 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/62f0220e-348e-48c5-a5d7-b5275958f74f/result + Pragma: + - no-cache + RequestId: + - 7a4913b9-b574-4644-bf56-8f456e84a13d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 62f0220e-348e-48c5-a5d7-b5275958f74f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/62f0220e-348e-48c5-a5d7-b5275958f74f/result + response: + body: + string: '{"id": "a8bba80a-c900-4761-90ad-4374446c5e93", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 08:03:25 GMT + Pragma: + - no-cache + RequestId: + - 447628bb-58b1-47fc-8734-6656363cddbb + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:26 GMT + Pragma: + - no-cache + RequestId: + - 4380b719-b469-483b-837d-2c759be14ead + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b1d21cd4-176d-478e-851f-5198cdba80ca", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a8bba80a-c900-4761-90ad-4374446c5e93", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '612' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:27 GMT + Pragma: + - no-cache + RequestId: + - 38b23409-a605-4e7c-8172-a4f795f390aa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b1d21cd4-176d-478e-851f-5198cdba80ca", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a8bba80a-c900-4761-90ad-4374446c5e93", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '612' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:28 GMT + Pragma: + - no-cache + RequestId: + - c65a0c2a-02f3-4bcc-8742-3fa0a5f3bba8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:29 GMT + Pragma: + - no-cache + RequestId: + - 15b86a45-4db4-47ae-ae3c-21354c5339d2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b1d21cd4-176d-478e-851f-5198cdba80ca", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a8bba80a-c900-4761-90ad-4374446c5e93", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '612' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:29 GMT + Pragma: + - no-cache + RequestId: + - b12068ec-1884-46cd-ac7b-4d972f7f4510 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/a8bba80a-c900-4761-90ad-4374446c5e93 + 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: + - Tue, 03 Feb 2026 08:03:30 GMT + Pragma: + - no-cache + RequestId: + - f75af1ea-622e-4578-8e8e-11c8b03fc40e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[DataPipeline].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[DataPipeline].yaml new file mode 100644 index 00000000..3dbddd9b --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[DataPipeline].yaml @@ -0,0 +1,571 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:07 GMT + Pragma: + - no-cache + RequestId: + - 9c4e373d-035c-470c-87bd-af5282da8a12 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:07 GMT + Pragma: + - no-cache + RequestId: + - f499bd2f-1851-401d-b394-de6c1f755271 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:12 GMT + Pragma: + - no-cache + RequestId: + - 3c197bb5-be75-4a66-8bfe-3c8390026b4e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/dataPipelines + response: + body: + string: '{"id": "bae14edc-96fe-4a2e-8361-12522a74f7b1", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:56:18 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 65e5ae02-af01-412b-968c-00f7fcb36382 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:18 GMT + Pragma: + - no-cache + RequestId: + - 887e2837-f4b2-4f4b-8e42-4d880fe12b93 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "bae14edc-96fe-4a2e-8361-12522a74f7b1", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '456' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:20 GMT + Pragma: + - no-cache + RequestId: + - 0be2cefc-d2d6-4487-93df-784b68004d7f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "bae14edc-96fe-4a2e-8361-12522a74f7b1", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '456' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:21 GMT + Pragma: + - no-cache + RequestId: + - 0d343e9d-ce11-4a29-a470-d17caaa8c613 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:23 GMT + Pragma: + - no-cache + RequestId: + - fae7528a-cba9-4a09-8f87-ce364625aaa8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "bae14edc-96fe-4a2e-8361-12522a74f7b1", + "type": "DataPipeline", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '456' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:23 GMT + Pragma: + - no-cache + RequestId: + - 56b5b0ce-c5a3-4c86-a28f-7c0b0b5f1501 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/bae14edc-96fe-4a2e-8361-12522a74f7b1 + 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: + - Tue, 03 Feb 2026 07:56:24 GMT + Pragma: + - no-cache + RequestId: + - 69cdee04-ae3f-4271-be8e-aa51ee91c835 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[Dataflow].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Dataflow].yaml new file mode 100644 index 00000000..8877225f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Dataflow].yaml @@ -0,0 +1,583 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:50 GMT + Pragma: + - no-cache + RequestId: + - aba2ca80-ed9f-4afd-ba61-52b6f2cdf199 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:51 GMT + Pragma: + - no-cache + RequestId: + - fb16e457-33c7-4bfc-8e44-f52fcb88f90f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:52 GMT + Pragma: + - no-cache + RequestId: + - 1636abc5-c7be-41c2-9eeb-bdd63110c27b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/dataflows + response: + body: + string: '{"id": "30e91199-5a3a-438a-b610-c3e51fecc81a", "type": "Dataflow", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 08:02:54 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - eb2b21c0-4992-47e4-81e0-67f1aa77c34e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:55 GMT + Pragma: + - no-cache + RequestId: + - 1005408f-26f4-4693-b2ca-05e32e821b35 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "30e91199-5a3a-438a-b610-c3e51fecc81a", + "type": "Dataflow", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '485' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:55 GMT + Pragma: + - no-cache + RequestId: + - c087dd49-1b3d-456f-bdf7-e082c42b39bd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "30e91199-5a3a-438a-b610-c3e51fecc81a", + "type": "Dataflow", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '485' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:56 GMT + Pragma: + - no-cache + RequestId: + - 7ad0c8fb-ab92-43c0-b357-ec77d2fdd461 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:58 GMT + Pragma: + - no-cache + RequestId: + - db771291-8332-4e3d-a667-7788300e6259 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "30e91199-5a3a-438a-b610-c3e51fecc81a", + "type": "Dataflow", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '516' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:58 GMT + Pragma: + - no-cache + RequestId: + - 945da4f6-eef2-4e80-b332-deeee26c4903 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/30e91199-5a3a-438a-b610-c3e51fecc81a + 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: + - Tue, 03 Feb 2026 08:02:58 GMT + Pragma: + - no-cache + RequestId: + - c86922a9-b33e-44ef-bb19-edf6e347e152 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[DigitalTwinBuilder].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[DigitalTwinBuilder].yaml new file mode 100644 index 00000000..b045b31e --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[DigitalTwinBuilder].yaml @@ -0,0 +1,737 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:41 GMT + Pragma: + - no-cache + RequestId: + - e3286622-c0f4-4c02-b0ed-25a4c9c4b29e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '521' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:43 GMT + Pragma: + - no-cache + RequestId: + - 657b9810-e194-4bdf-bca7-8cf9d1edf489 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '521' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:43 GMT + Pragma: + - no-cache + RequestId: + - b1492050-313e-4bf0-b7dc-2c174d19eaca + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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 08:03:45 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c990f4ee-e1c1-4f0f-9ac6-e30a9d6626a5 + Pragma: + - no-cache + RequestId: + - 88c5b5e9-2dab-4d0e-aa4c-0c9e98bc89bd + 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: + - c990f4ee-e1c1-4f0f-9ac6-e30a9d6626a5 + 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/c990f4ee-e1c1-4f0f-9ac6-e30a9d6626a5 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T08:03:44.8374324", + "lastUpdatedTimeUtc": "2026-02-03T08:03:52.1503807", "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: + - Tue, 03 Feb 2026 08:04:08 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c990f4ee-e1c1-4f0f-9ac6-e30a9d6626a5/result + Pragma: + - no-cache + RequestId: + - a3daad84-b51f-4e4f-ba96-3dfbcc1b9ae2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - c990f4ee-e1c1-4f0f-9ac6-e30a9d6626a5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/c990f4ee-e1c1-4f0f-9ac6-e30a9d6626a5/result + response: + body: + string: '{"id": "4483bcf0-d868-4a72-80ba-3c42995d2ca7", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 08:04:08 GMT + Pragma: + - no-cache + RequestId: + - f8eb4fcb-c5c9-4c9d-b138-aa35979b7694 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:10 GMT + Pragma: + - no-cache + RequestId: + - 556c7307-11c9-49fd-8a7c-d103616b3332 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f1df5308-6465-4263-80c9-3e96364594f0", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "4483bcf0-d868-4a72-80ba-3c42995d2ca7", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "4a5b0f88-82ca-48d2-b4d2-db468fd70df9", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "49ff22a5-d24e-4932-8a71-0555afe6fe5f", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '686' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:10 GMT + Pragma: + - no-cache + RequestId: + - e8370f4c-b825-4901-81a4-b9f6df2af481 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f1df5308-6465-4263-80c9-3e96364594f0", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "4483bcf0-d868-4a72-80ba-3c42995d2ca7", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "4a5b0f88-82ca-48d2-b4d2-db468fd70df9", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "49ff22a5-d24e-4932-8a71-0555afe6fe5f", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '686' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:11 GMT + Pragma: + - no-cache + RequestId: + - c3b5f862-6fee-435b-b384-d8e30303f82d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:11 GMT + Pragma: + - no-cache + RequestId: + - 913b0ea4-5963-412c-8cd0-825980664ae7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f1df5308-6465-4263-80c9-3e96364594f0", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "4483bcf0-d868-4a72-80ba-3c42995d2ca7", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "4a5b0f88-82ca-48d2-b4d2-db468fd70df9", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "49ff22a5-d24e-4932-8a71-0555afe6fe5f", + "type": "DigitalTwinBuilderFlow", "displayName": "fabcli000001OnDemand", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '686' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:13 GMT + Pragma: + - no-cache + RequestId: + - 4a27cd53-5550-4975-b43e-bfb1cecf6306 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/4483bcf0-d868-4a72-80ba-3c42995d2ca7 + 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: + - Tue, 03 Feb 2026 08:04:13 GMT + Pragma: + - no-cache + RequestId: + - 0bf662da-aeaf-456a-a5a5-3958ed7c1e60 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[Environment].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Environment].yaml new file mode 100644 index 00000000..c8063f90 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Environment].yaml @@ -0,0 +1,571 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:24 GMT + Pragma: + - no-cache + RequestId: + - 463a6899-3103-4126-b7d9-e57b829e1d82 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:26 GMT + Pragma: + - no-cache + RequestId: + - 8a26e749-209e-4be0-a2df-4b4f55bc6647 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:26 GMT + Pragma: + - no-cache + RequestId: + - d3193daf-f4ca-4d26-b628-cf17b040fb1a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/environments + response: + body: + string: '{"id": "6c70f699-a33c-4354-ae15-80b6ad57d9c5", "type": "Environment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:56:30 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - e6e10491-7cce-4c8d-8482-1170d5e64961 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:30 GMT + Pragma: + - no-cache + RequestId: + - fec92f18-ae24-4f4a-b5f3-3240517659e2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "6c70f699-a33c-4354-ae15-80b6ad57d9c5", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '455' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:32 GMT + Pragma: + - no-cache + RequestId: + - 17e5ae0c-e7e5-4e0b-b3f3-e5ce1c0c8ed2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "6c70f699-a33c-4354-ae15-80b6ad57d9c5", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '455' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:33 GMT + Pragma: + - no-cache + RequestId: + - 82591735-99dc-42aa-9d0d-96254a2d3e21 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:33 GMT + Pragma: + - no-cache + RequestId: + - 9145410c-b9a7-48af-bafd-dcb813d53b15 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "6c70f699-a33c-4354-ae15-80b6ad57d9c5", + "type": "Environment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '455' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:34 GMT + Pragma: + - no-cache + RequestId: + - 9a4bbae0-c245-418e-9d7a-d43084bee37e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/6c70f699-a33c-4354-ae15-80b6ad57d9c5 + 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: + - Tue, 03 Feb 2026 07:56:35 GMT + Pragma: + - no-cache + RequestId: + - 13977294-7565-4e8a-a294-7a122f7f3c5e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[Eventhouse].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Eventhouse].yaml new file mode 100644 index 00000000..872bcd6a --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Eventhouse].yaml @@ -0,0 +1,577 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:35 GMT + Pragma: + - no-cache + RequestId: + - a112dafc-542c-4d09-a6bb-fafd8210c412 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:36 GMT + Pragma: + - no-cache + RequestId: + - 6d04cc54-a0ac-493b-a4f6-db720e766854 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:37 GMT + Pragma: + - no-cache + RequestId: + - dbda8e3a-c627-42cb-ad5d-b13f9ebbe87c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/eventhouses + response: + body: + string: '{"id": "b492f9db-9183-4fde-8f22-ab34a4dba185", "type": "Eventhouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:56:40 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 1ce1dc82-c107-494e-a661-cb5a9788c13b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:41 GMT + Pragma: + - no-cache + RequestId: + - c25de43d-718c-4ba2-b088-43d8b6f334b1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b492f9db-9183-4fde-8f22-ab34a4dba185", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "8825c761-2d90-481a-8d03-123b11b3fb8b", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '492' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:42 GMT + Pragma: + - no-cache + RequestId: + - d1e0c0af-dc18-4770-98e5-eaa024416221 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b492f9db-9183-4fde-8f22-ab34a4dba185", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "8825c761-2d90-481a-8d03-123b11b3fb8b", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '492' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:43 GMT + Pragma: + - no-cache + RequestId: + - 8aee9078-b4ee-42e3-9d9b-56e738ef6b3c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:44 GMT + Pragma: + - no-cache + RequestId: + - 679afdcc-c351-41a2-bc39-9e6d6bdc86a1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b492f9db-9183-4fde-8f22-ab34a4dba185", + "type": "Eventhouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "8825c761-2d90-481a-8d03-123b11b3fb8b", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '492' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:45 GMT + Pragma: + - no-cache + RequestId: + - 18ff2a3b-52c1-4e33-9463-f979d2c395e2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/b492f9db-9183-4fde-8f22-ab34a4dba185 + 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: + - Tue, 03 Feb 2026 07:56:46 GMT + Pragma: + - no-cache + RequestId: + - 73dadf0b-9f1c-4669-9cce-58743ff7dbc5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[Eventstream].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Eventstream].yaml new file mode 100644 index 00000000..36e211f3 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Eventstream].yaml @@ -0,0 +1,671 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:46 GMT + Pragma: + - no-cache + RequestId: + - 694e1d13-918f-46e9-a1b4-f746f986faf7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:47 GMT + Pragma: + - no-cache + RequestId: + - dad872fb-806e-4ac8-bd1a-d5b4ddea3e41 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:48 GMT + Pragma: + - no-cache + RequestId: + - dc90593e-5698-4787-981b-b2389f611137 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:56:49 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/82a16e19-309a-476b-8128-90f998d711fa + Pragma: + - no-cache + RequestId: + - 5ebbfa74-4690-45a8-862d-951fbcb5d1a7 + 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: + - 82a16e19-309a-476b-8128-90f998d711fa + 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/82a16e19-309a-476b-8128-90f998d711fa + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:56:50.0006658", + "lastUpdatedTimeUtc": "2026-02-03T07:56:54.1897375", "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: + - Tue, 03 Feb 2026 07:57:11 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/82a16e19-309a-476b-8128-90f998d711fa/result + Pragma: + - no-cache + RequestId: + - 130e7bc9-7317-41bb-9c6c-3f2845f63242 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 82a16e19-309a-476b-8128-90f998d711fa + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/82a16e19-309a-476b-8128-90f998d711fa/result + response: + body: + string: '{"id": "8d5aea22-7ee9-4b05-be72-5959f613eb3a", "type": "Eventstream", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:57:12 GMT + Pragma: + - no-cache + RequestId: + - cec8c464-8c57-4fc9-9e18-65db5542d851 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:14 GMT + Pragma: + - no-cache + RequestId: + - 983a7b7e-39dd-497e-bf93-e9e3eb54d004 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "8d5aea22-7ee9-4b05-be72-5959f613eb3a", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '459' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:14 GMT + Pragma: + - no-cache + RequestId: + - 891b9312-8518-4795-be55-b62237b1c9ce + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "8d5aea22-7ee9-4b05-be72-5959f613eb3a", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '459' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:15 GMT + Pragma: + - no-cache + RequestId: + - 4516aa59-aab9-466f-8c77-0888145f9ef4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:16 GMT + Pragma: + - no-cache + RequestId: + - f9253219-6b3a-4fbd-a799-219e019dcce1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "8d5aea22-7ee9-4b05-be72-5959f613eb3a", + "type": "Eventstream", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '459' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:17 GMT + Pragma: + - no-cache + RequestId: + - 697734cb-cf82-496d-a9b9-287ec79da88c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/8d5aea22-7ee9-4b05-be72-5959f613eb3a + 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: + - Tue, 03 Feb 2026 07:57:17 GMT + Pragma: + - no-cache + RequestId: + - 1d21377f-365f-4818-a671-0b80554b3f6f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[GraphQLApi].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[GraphQLApi].yaml new file mode 100644 index 00000000..8c70e55d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[GraphQLApi].yaml @@ -0,0 +1,581 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:40 GMT + Pragma: + - no-cache + RequestId: + - 112f5b27-59fe-4a78-8477-9c81c34da3c0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:42 GMT + Pragma: + - no-cache + RequestId: + - adc9eb19-8a24-4241-b2f2-f0a812000887 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:42 GMT + Pragma: + - no-cache + RequestId: + - a03de601-b919-4dcf-9642-44d0ece23214 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/graphqlapis + response: + body: + string: '{"id": "b1ac2e95-af48-4bec-92b8-c0b788227fb9", "type": "GraphQLApi", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 08:02:44 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 82595777-696c-4052-b1c5-a2e8ad3d2ebc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:44 GMT + Pragma: + - no-cache + RequestId: + - afff8ce5-5d2b-4a57-bb4a-f0e70fca0725 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b1ac2e95-af48-4bec-92b8-c0b788227fb9", + "type": "GraphQLApi", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '497' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:46 GMT + Pragma: + - no-cache + RequestId: + - 4e0ed440-6280-4221-830b-e30cd299dad5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b1ac2e95-af48-4bec-92b8-c0b788227fb9", + "type": "GraphQLApi", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '497' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:46 GMT + Pragma: + - no-cache + RequestId: + - 8d258ff1-2993-4856-bcdc-b962a36aa6d2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:48 GMT + Pragma: + - no-cache + RequestId: + - 11ede9d8-b961-4d53-93e1-25f356710586 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b1ac2e95-af48-4bec-92b8-c0b788227fb9", + "type": "GraphQLApi", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '497' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:48 GMT + Pragma: + - no-cache + RequestId: + - 13a307f4-1b77-4780-b88c-dc84b973325e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/b1ac2e95-af48-4bec-92b8-c0b788227fb9 + 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: + - Tue, 03 Feb 2026 08:02:49 GMT + Pragma: + - no-cache + RequestId: + - 4c9970be-656d-4d93-9edb-ccab94667cd8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[GraphQuerySet].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[GraphQuerySet].yaml new file mode 100644 index 00000000..b0b909b9 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[GraphQuerySet].yaml @@ -0,0 +1,636 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:15 GMT + Pragma: + - no-cache + RequestId: + - 383dff77-8fd7-4024-b02d-cc76f67bf006 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f1df5308-6465-4263-80c9-3e96364594f0", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "4a5b0f88-82ca-48d2-b4d2-db468fd70df9", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '586' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:15 GMT + Pragma: + - no-cache + RequestId: + - 533411e0-0b26-43b7-b9a1-1bb3d5a0c81b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f1df5308-6465-4263-80c9-3e96364594f0", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "4a5b0f88-82ca-48d2-b4d2-db468fd70df9", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '586' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:16 GMT + Pragma: + - no-cache + RequestId: + - 0153dd36-77c3-4e8d-ac4a-0b6fd1b366fa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/GraphQuerySets + response: + body: + string: '{"id": "1d11b6ab-8781-4b49-abad-43423648e7dc", "type": "GraphQuerySet", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 08:04:18 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 12f8bb6b-caa0-43c4-bd7d-77399c1be3f4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:18 GMT + Pragma: + - no-cache + RequestId: + - 13799d1c-b012-4898-be9b-d9fd375ab463 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f1df5308-6465-4263-80c9-3e96364594f0", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "4a5b0f88-82ca-48d2-b4d2-db468fd70df9", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "1d11b6ab-8781-4b49-abad-43423648e7dc", "type": "GraphQuerySet", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '645' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:19 GMT + Pragma: + - no-cache + RequestId: + - 1267af97-dbf7-4fc8-bd12-245f2a1e3cbc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f1df5308-6465-4263-80c9-3e96364594f0", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "4a5b0f88-82ca-48d2-b4d2-db468fd70df9", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "1d11b6ab-8781-4b49-abad-43423648e7dc", "type": "GraphQuerySet", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '645' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:19 GMT + Pragma: + - no-cache + RequestId: + - dc990dd0-9807-40ab-8a73-aba35f9cedc6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:21 GMT + Pragma: + - no-cache + RequestId: + - f159bcc3-126e-4078-b84d-bd064e707afd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f1df5308-6465-4263-80c9-3e96364594f0", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "4a5b0f88-82ca-48d2-b4d2-db468fd70df9", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "1d11b6ab-8781-4b49-abad-43423648e7dc", "type": "GraphQuerySet", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '645' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:04:22 GMT + Pragma: + - no-cache + RequestId: + - d2bc4c77-ec4d-446c-8dc6-15826cbdd8d6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/1d11b6ab-8781-4b49-abad-43423648e7dc + 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: + - Tue, 03 Feb 2026 08:04:22 GMT + Pragma: + - no-cache + RequestId: + - fa94bcb7-ce98-4b7e-92c2-d5a812ded403 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[KQLDashboard].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[KQLDashboard].yaml new file mode 100644 index 00000000..f6211ec4 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[KQLDashboard].yaml @@ -0,0 +1,571 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:18 GMT + Pragma: + - no-cache + RequestId: + - f9aedf2b-cb37-4718-a407-8307a429cea0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:57:19 GMT + Pragma: + - no-cache + RequestId: + - 803eb1bf-9915-49f8-b71e-8b9a93d6d9fe + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:57:20 GMT + Pragma: + - no-cache + RequestId: + - 21a22f75-619f-421b-9740-327bcd1bc00e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/kqlDashboards + response: + body: + string: '{"id": "d36545ac-a97b-4f41-a35f-7e8faca71c48", "type": "KQLDashboard", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:57:22 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 2ba8f0e0-3491-4b42-979e-0a92505be1f1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:23 GMT + Pragma: + - no-cache + RequestId: + - 9facc88e-179a-4bba-83d5-c2a1070f7f3f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d36545ac-a97b-4f41-a35f-7e8faca71c48", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '461' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:24 GMT + Pragma: + - no-cache + RequestId: + - 69fa26ba-f9f3-461a-b303-53f71a297375 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d36545ac-a97b-4f41-a35f-7e8faca71c48", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '461' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:25 GMT + Pragma: + - no-cache + RequestId: + - e78d66b0-8fe2-428b-8d8e-97d82b61166d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:25 GMT + Pragma: + - no-cache + RequestId: + - 7004e5f8-8b26-4419-ad20-f6987fcb8eba + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d36545ac-a97b-4f41-a35f-7e8faca71c48", + "type": "KQLDashboard", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '461' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:26 GMT + Pragma: + - no-cache + RequestId: + - c360653e-bf27-44e7-a488-153ae2c7f82f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/d36545ac-a97b-4f41-a35f-7e8faca71c48 + 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: + - Tue, 03 Feb 2026 07:57:27 GMT + Pragma: + - no-cache + RequestId: + - f17e3074-225d-457e-bfe7-75259476f36f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[KQLQueryset].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[KQLQueryset].yaml new file mode 100644 index 00000000..084a2bf2 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[KQLQueryset].yaml @@ -0,0 +1,571 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:27 GMT + Pragma: + - no-cache + RequestId: + - 05d2e95a-6b7f-4c94-8552-bfaa8798725c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:57:29 GMT + Pragma: + - no-cache + RequestId: + - 2b20c158-281a-492f-9c3a-6a305ea937d8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:57:30 GMT + Pragma: + - no-cache + RequestId: + - b8eecec9-f827-494f-b95a-74a5697355f2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/kqlQuerysets + response: + body: + string: '{"id": "810f8ff5-5b5a-4e22-a625-7a556c2193d6", "type": "KQLQueryset", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:57:31 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - f0d75d20-aeea-49f7-ab3a-38539febbf6b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:32 GMT + Pragma: + - no-cache + RequestId: + - cd0059b0-4ad7-40a9-8f10-671a024d374d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "810f8ff5-5b5a-4e22-a625-7a556c2193d6", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:33 GMT + Pragma: + - no-cache + RequestId: + - 86e6fcb0-0bb8-4ec7-b6a4-d2df8074a113 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "810f8ff5-5b5a-4e22-a625-7a556c2193d6", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:34 GMT + Pragma: + - no-cache + RequestId: + - 55d98e42-19aa-4d6e-9ca3-092c4a70e6af + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:35 GMT + Pragma: + - no-cache + RequestId: + - cc29a735-f3c2-49af-bd22-a36d91b0e99d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "810f8ff5-5b5a-4e22-a625-7a556c2193d6", + "type": "KQLQueryset", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:35 GMT + Pragma: + - no-cache + RequestId: + - 62259ec6-4974-4b4b-b636-7404b21a1709 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/810f8ff5-5b5a-4e22-a625-7a556c2193d6 + 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: + - Tue, 03 Feb 2026 07:57:36 GMT + Pragma: + - no-cache + RequestId: + - 1f5d3f56-dc74-4822-8bfb-95c1abb50827 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[Lakehouse].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Lakehouse].yaml new file mode 100644 index 00000000..f7558e12 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Lakehouse].yaml @@ -0,0 +1,571 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:37 GMT + Pragma: + - no-cache + RequestId: + - 79c53f0f-a9b6-4750-ac32-2bae378c5c94 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:57:39 GMT + Pragma: + - no-cache + RequestId: + - 3c7d80f3-6d8d-425c-9261-53a0b21ae4a1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:57:39 GMT + Pragma: + - no-cache + RequestId: + - f31503f0-7039-4780-8ab6-fb5fdda23b9b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/lakehouses + response: + body: + string: '{"id": "fc194904-d948-43d3-ac61-adea49e2d190", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:57:43 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - a4a9d051-49bd-4b07-b3d2-34263414041e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:44 GMT + Pragma: + - no-cache + RequestId: + - 21130015-82e7-4f8c-a64a-8108b1ddb676 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "fc194904-d948-43d3-ac61-adea49e2d190", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '450' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:44 GMT + Pragma: + - no-cache + RequestId: + - 76018e59-fbfb-4ecf-a57b-2e1cd514ef4c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "fc194904-d948-43d3-ac61-adea49e2d190", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '450' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:45 GMT + Pragma: + - no-cache + RequestId: + - 8c624203-b646-45f8-996d-42fe69b4586f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:46 GMT + Pragma: + - no-cache + RequestId: + - 4a5a71f4-361f-438b-81fe-4ed2ba612b7a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "fc194904-d948-43d3-ac61-adea49e2d190", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '450' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:46 GMT + Pragma: + - no-cache + RequestId: + - fb5585f9-56f3-4518-9707-e7d93b1dbb6c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/fc194904-d948-43d3-ac61-adea49e2d190 + 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: + - Tue, 03 Feb 2026 07:57:48 GMT + Pragma: + - no-cache + RequestId: + - f5268e23-87ff-4096-abc4-e40568d28b99 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[MLExperiment].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[MLExperiment].yaml new file mode 100644 index 00000000..5e96d997 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[MLExperiment].yaml @@ -0,0 +1,671 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:57:48 GMT + Pragma: + - no-cache + RequestId: + - 3899fc2c-532a-4101-815b-b42d5152280e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:57:50 GMT + Pragma: + - no-cache + RequestId: + - 4db562a2-7f44-4638-a6e1-dd7c56b1b139 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:57:51 GMT + Pragma: + - no-cache + RequestId: + - f6eb8237-0a0a-46db-bdfd-85a764276c0f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:57:52 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b8015879-f248-4221-8090-4fee5f4ac132 + Pragma: + - no-cache + RequestId: + - c03901bd-332f-4c66-bc4b-864052cd19c7 + 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: + - b8015879-f248-4221-8090-4fee5f4ac132 + 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/b8015879-f248-4221-8090-4fee5f4ac132 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:57:52.1542766", + "lastUpdatedTimeUtc": "2026-02-03T07:57:52.9987081", "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: + - Tue, 03 Feb 2026 07:58:14 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b8015879-f248-4221-8090-4fee5f4ac132/result + Pragma: + - no-cache + RequestId: + - e020d8eb-d447-4c99-979a-214b558292a7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - b8015879-f248-4221-8090-4fee5f4ac132 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/b8015879-f248-4221-8090-4fee5f4ac132/result + response: + body: + string: '{"id": "4be47af6-4d13-47ac-b9a4-265dec289aa1", "type": "MLExperiment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:58:15 GMT + Pragma: + - no-cache + RequestId: + - cd39cf5b-c10f-481c-abc6-4e3c92aefaea + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:15 GMT + Pragma: + - no-cache + RequestId: + - f362d1e2-09a3-4be5-967f-34c0b64cbcd2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "4be47af6-4d13-47ac-b9a4-265dec289aa1", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '459' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:17 GMT + Pragma: + - no-cache + RequestId: + - e43f0650-3a4e-4567-b886-cd92e14895fb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "4be47af6-4d13-47ac-b9a4-265dec289aa1", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '459' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:18 GMT + Pragma: + - no-cache + RequestId: + - 8a0a1cea-643f-475a-bafd-bb29f686cb8a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:18 GMT + Pragma: + - no-cache + RequestId: + - 5c293068-7f40-47f0-8612-fba257a3c903 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "4be47af6-4d13-47ac-b9a4-265dec289aa1", + "type": "MLExperiment", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '459' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:20 GMT + Pragma: + - no-cache + RequestId: + - 6ff5652d-62bc-4f72-9b78-3115205b46ee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/4be47af6-4d13-47ac-b9a4-265dec289aa1 + 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: + - Tue, 03 Feb 2026 07:58:20 GMT + Pragma: + - no-cache + RequestId: + - 796ef39b-28b8-43fd-a01e-63eab449ab08 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[MLModel].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[MLModel].yaml new file mode 100644 index 00000000..3c6d45bb --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[MLModel].yaml @@ -0,0 +1,670 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:21 GMT + Pragma: + - no-cache + RequestId: + - 03af5358-d785-4dbd-af1b-e5f1eb01fc25 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:58:21 GMT + Pragma: + - no-cache + RequestId: + - 7ab5db40-d5ca-47c5-9eda-12d6d4ff6ebe + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:58:22 GMT + Pragma: + - no-cache + RequestId: + - b337a70e-0d1f-4666-8df3-bf5523b96029 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:58:24 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/465c9f0b-d3ec-4c52-acf4-b7d82167b335 + Pragma: + - no-cache + RequestId: + - 782f8d7a-4b96-43c1-a9ab-b992a66d4ff0 + 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: + - 465c9f0b-d3ec-4c52-acf4-b7d82167b335 + 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/465c9f0b-d3ec-4c52-acf4-b7d82167b335 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:58:24.1521145", + "lastUpdatedTimeUtc": "2026-02-03T07:58:24.7468577", "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: + - Tue, 03 Feb 2026 07:58:46 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/465c9f0b-d3ec-4c52-acf4-b7d82167b335/result + Pragma: + - no-cache + RequestId: + - eee94da3-7d61-4c46-9332-41760ca8de8a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 465c9f0b-d3ec-4c52-acf4-b7d82167b335 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/465c9f0b-d3ec-4c52-acf4-b7d82167b335/result + response: + body: + string: '{"id": "9e7745bc-3dcc-4a97-8949-e2174c888b13", "type": "MLModel", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:58:47 GMT + Pragma: + - no-cache + RequestId: + - a7294c88-1883-4532-9c6c-95c0ef3f4e36 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:48 GMT + Pragma: + - no-cache + RequestId: + - 7e1e04d4-afad-4979-b442-79a002745f8c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "9e7745bc-3dcc-4a97-8949-e2174c888b13", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '454' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:49 GMT + Pragma: + - no-cache + RequestId: + - ef3deb06-ac11-4118-8f32-e62b5c3d8391 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "9e7745bc-3dcc-4a97-8949-e2174c888b13", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '454' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:50 GMT + Pragma: + - no-cache + RequestId: + - a90592bd-68ff-492a-a8cc-bf0f6864372c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:51 GMT + Pragma: + - no-cache + RequestId: + - f6e23d96-1789-4a28-953c-dfc7252424c1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "9e7745bc-3dcc-4a97-8949-e2174c888b13", + "type": "MLModel", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '454' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:51 GMT + Pragma: + - no-cache + RequestId: + - 151cda47-93f5-4bcc-8685-a6dd6baf6586 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/9e7745bc-3dcc-4a97-8949-e2174c888b13 + 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: + - Tue, 03 Feb 2026 07:58:52 GMT + Pragma: + - no-cache + RequestId: + - 340eafe5-a436-4dd7-9db1-e382521ff4a3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[MirroredDatabase].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[MirroredDatabase].yaml new file mode 100644 index 00000000..f5bb0001 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[MirroredDatabase].yaml @@ -0,0 +1,573 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:53 GMT + Pragma: + - no-cache + RequestId: + - 8afbc499-493c-4253-99f7-66e7aeb5eff8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:58:54 GMT + Pragma: + - no-cache + RequestId: + - 7d6a8db6-ac20-4896-b5d9-a7529d19c106 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:58:54 GMT + Pragma: + - no-cache + RequestId: + - aef9f65d-f4b2-4355-9793-3a05b3d8bf9b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/mirroredDatabases + response: + body: + string: '{"id": "d2755270-64ea-475f-b846-05e7425bc356", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:58:56 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 2a5b10b0-3edb-4551-a1ae-15bbeef3ae56 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:58 GMT + Pragma: + - no-cache + RequestId: + - 1b9bf3e4-74c1-443b-bb2f-4168b5dcc1ba + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d2755270-64ea-475f-b846-05e7425bc356", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:59 GMT + Pragma: + - no-cache + RequestId: + - d3722d14-8b95-4c33-8b07-39bd58fe3f45 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d2755270-64ea-475f-b846-05e7425bc356", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:58:59 GMT + Pragma: + - no-cache + RequestId: + - 85913618-6207-4085-abd0-5a3defb91266 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:00 GMT + Pragma: + - no-cache + RequestId: + - a07dd526-70cc-4909-90bd-0cc90830a825 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d2755270-64ea-475f-b846-05e7425bc356", + "type": "MirroredDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:01 GMT + Pragma: + - no-cache + RequestId: + - 70464542-ca66-48a5-9645-de9772424643 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/d2755270-64ea-475f-b846-05e7425bc356 + 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: + - Tue, 03 Feb 2026 07:59:02 GMT + Pragma: + - no-cache + RequestId: + - 8466e88c-a05f-469e-8a75-424de00020b8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[Notebook].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Notebook].yaml new file mode 100644 index 00000000..7db5fb20 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Notebook].yaml @@ -0,0 +1,673 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:03 GMT + Pragma: + - no-cache + RequestId: + - d8f0d6bf-d17c-45b8-a7d5-46bc09470aa6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:59:04 GMT + Pragma: + - no-cache + RequestId: + - b5b67148-646f-411f-903d-f85fb8bacb42 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:59:04 GMT + Pragma: + - no-cache + RequestId: + - bdec3ed4-de17-40f0-b9ae-cef41a64e08e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:59:06 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4315c0d8-deae-4129-91eb-c2197a6dfee5 + Pragma: + - no-cache + RequestId: + - 39d9d6f9-9ebf-407c-958c-d6dfad86f6c0 + 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: + - 4315c0d8-deae-4129-91eb-c2197a6dfee5 + 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/4315c0d8-deae-4129-91eb-c2197a6dfee5 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:59:06.2588088", + "lastUpdatedTimeUtc": "2026-02-03T07:59:10.0106541", "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: + - Tue, 03 Feb 2026 07:59:29 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4315c0d8-deae-4129-91eb-c2197a6dfee5/result + Pragma: + - no-cache + RequestId: + - 742ae9fa-94fe-4d90-be49-fa093470683c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 4315c0d8-deae-4129-91eb-c2197a6dfee5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/4315c0d8-deae-4129-91eb-c2197a6dfee5/result + response: + body: + string: '{"id": "962fd2bb-8846-4dc9-9fc3-d7605b64f9d1", "type": "Notebook", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:59:29 GMT + Pragma: + - no-cache + RequestId: + - 34ceb132-e75d-4d9e-9095-7db88e0891ab + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:30 GMT + Pragma: + - no-cache + RequestId: + - a14812c0-36f1-440f-943c-3c1602e0dc89 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "962fd2bb-8846-4dc9-9fc3-d7605b64f9d1", + "type": "Notebook", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:31 GMT + Pragma: + - no-cache + RequestId: + - 2c424576-b474-45a9-adf4-c3df0ca0aa4b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "962fd2bb-8846-4dc9-9fc3-d7605b64f9d1", + "type": "Notebook", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:32 GMT + Pragma: + - no-cache + RequestId: + - ae4ee2a6-c22f-4c68-8ad9-948fca868af2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:32 GMT + Pragma: + - no-cache + RequestId: + - 766de69f-438d-4b8a-a3bf-9387d8f3f186 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "962fd2bb-8846-4dc9-9fc3-d7605b64f9d1", + "type": "Notebook", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '457' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:33 GMT + Pragma: + - no-cache + RequestId: + - 3ef02a23-bc9e-4e96-b863-9c7d3d87e30a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/962fd2bb-8846-4dc9-9fc3-d7605b64f9d1 + 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: + - Tue, 03 Feb 2026 07:59:34 GMT + Pragma: + - no-cache + RequestId: + - 5b1605f0-d5d3-4af9-a89c-7a640dfa74a4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[Reflex].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Reflex].yaml new file mode 100644 index 00000000..4e1b08a0 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Reflex].yaml @@ -0,0 +1,570 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:35 GMT + Pragma: + - no-cache + RequestId: + - dafdb45f-42d8-40d2-be43-537ba8ba264b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:59:36 GMT + Pragma: + - no-cache + RequestId: + - 34a3d727-513d-4b47-9a55-13ddae309374 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:59:37 GMT + Pragma: + - no-cache + RequestId: + - b9c30fb1-be3d-4217-8ca8-6c0ad6eeed10 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/reflexes + response: + body: + string: '{"id": "a897ca34-b433-4be3-a709-829fcb1add6a", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:59:39 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 34dcba78-dd55-40f6-be23-443064831cf8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:41 GMT + Pragma: + - no-cache + RequestId: + - 4f5823a9-999f-4c91-8457-fc084b021ad1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "a897ca34-b433-4be3-a709-829fcb1add6a", + "type": "Reflex", "displayName": "fabcli000001", "description": "Created by + fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '452' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:41 GMT + Pragma: + - no-cache + RequestId: + - f724f95b-aaea-4cc2-b788-27dcd1bfd0de + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "a897ca34-b433-4be3-a709-829fcb1add6a", + "type": "Reflex", "displayName": "fabcli000001", "description": "Created by + fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '452' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:42 GMT + Pragma: + - no-cache + RequestId: + - 6feb9557-e0df-42ec-aeec-fe44a1eccfdf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:43 GMT + Pragma: + - no-cache + RequestId: + - 96e5f3af-69d7-4a3b-85f4-8c092624c599 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "a897ca34-b433-4be3-a709-829fcb1add6a", + "type": "Reflex", "displayName": "fabcli000001", "description": "Created by + fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '452' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:44 GMT + Pragma: + - no-cache + RequestId: + - 00a37432-4f12-4d3a-b472-ef6c9862521b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/a897ca34-b433-4be3-a709-829fcb1add6a + 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: + - Tue, 03 Feb 2026 07:59:45 GMT + Pragma: + - no-cache + RequestId: + - 3bd1eaad-dd2d-424f-8480-c9b37873aa47 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[Report].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Report].yaml new file mode 100644 index 00000000..cf91c7d4 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Report].yaml @@ -0,0 +1,847 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:59:46 GMT + Pragma: + - no-cache + RequestId: + - b2458f5f-b104-464d-99f5-007a9caa8d33 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:59:46 GMT + Pragma: + - no-cache + RequestId: + - 101a4f3f-b4f2-4aa9-b3d7-a616977443d5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:59:47 GMT + Pragma: + - no-cache + RequestId: + - 2156d95a-7d6a-4123-87f5-dbc9a127c8f7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:59:48 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4196ea3b-a85b-4348-b432-40a28ecb59ca + Pragma: + - no-cache + RequestId: + - 0804e915-83a6-471b-ae4a-d78e469bc420 + 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: + - 4196ea3b-a85b-4348-b432-40a28ecb59ca + 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/4196ea3b-a85b-4348-b432-40a28ecb59ca + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:59:48.805167", + "lastUpdatedTimeUtc": "2026-02-03T07:59:59.665826", "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: + - Tue, 03 Feb 2026 08:00:11 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4196ea3b-a85b-4348-b432-40a28ecb59ca/result + Pragma: + - no-cache + RequestId: + - 85788326-0ae7-4528-acd7-e5a54db71f41 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 4196ea3b-a85b-4348-b432-40a28ecb59ca + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/4196ea3b-a85b-4348-b432-40a28ecb59ca/result + response: + body: + string: '{"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 08:00:12 GMT + Pragma: + - no-cache + RequestId: + - f945a9eb-54ca-4746-b642-f3a362a5f4ed + 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": "eyJ2ZXJzaW9uIjogIjQuMCIsICJkYXRhc2V0UmVmZXJlbmNlIjogeyJieVBhdGgiOiBudWxsLCAiYnlDb25uZWN0aW9uIjogeyJjb25uZWN0aW9uU3RyaW5nIjogIkRhdGEgU291cmNlPXBvd2VyYmk6Ly9hcGkucG93ZXJiaS5jb20vdjEuMC9teW9yZy9ta2RpcjtJbml0aWFsIENhdGFsb2c9cjM7SW50ZWdyYXRlZCBTZWN1cml0eT1DbGFpbXNUb2tlbiIsICJwYmlTZXJ2aWNlTW9kZWxJZCI6IG51bGwsICJwYmlNb2RlbFZpcnR1YWxTZXJ2ZXJOYW1lIjogInNvYmVfd293dmlydHVhbHNlcnZlciIsICJwYmlNb2RlbERhdGFiYXNlTmFtZSI6ICJmNzNmZGNhNy01NmNiLTRhYjYtOTQ3Ni1hZjJhNzc4MDNlNzgiLCAibmFtZSI6ICJFbnRpdHlEYXRhU291cmNlIiwgImNvbm5lY3Rpb25UeXBlIjogInBiaVNlcnZpY2VYbWxhU3R5bGVMaXZlIn19fQ==", + "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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 08:00:15 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a9c46e41-a1ad-47b1-a954-80c857e6e1bd + Pragma: + - no-cache + RequestId: + - e4bb47e5-b9de-4670-a010-d46f38260c86 + 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: + - a9c46e41-a1ad-47b1-a954-80c857e6e1bd + 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/a9c46e41-a1ad-47b1-a954-80c857e6e1bd + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T08:00:15.4320797", + "lastUpdatedTimeUtc": "2026-02-03T08:00:15.7758313", "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: + - Tue, 03 Feb 2026 08:00:38 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a9c46e41-a1ad-47b1-a954-80c857e6e1bd/result + Pragma: + - no-cache + RequestId: + - 7c2f319d-9ff4-4b09-8205-318be12870d1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a9c46e41-a1ad-47b1-a954-80c857e6e1bd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/a9c46e41-a1ad-47b1-a954-80c857e6e1bd/result + response: + body: + string: '{"id": "62b2fa54-b385-4837-bf42-1ff676ac4692", "type": "Report", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 08:00:39 GMT + Pragma: + - no-cache + RequestId: + - 4c845db1-06a0-4ad2-8f47-408d950ccf87 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:00:40 GMT + Pragma: + - no-cache + RequestId: + - 75217fc4-5f69-4ee7-903c-2e330f3545ea + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "62b2fa54-b385-4837-bf42-1ff676ac4692", "type": "Report", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "9797d176-4e05-4505-b702-92eb11623ef8", + "type": "SQLEndpoint", "displayName": "StagingLakehouseForDataflows_20260203075441", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", "type": "Warehouse", "displayName": + "StagingWarehouseForDataflows_20260203075454", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", + "type": "SQLEndpoint", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203075441", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '487' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:00:40 GMT + Pragma: + - no-cache + RequestId: + - ccf0a546-b03d-42fc-a2d8-576f9c28125b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "62b2fa54-b385-4837-bf42-1ff676ac4692", "type": "Report", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "9797d176-4e05-4505-b702-92eb11623ef8", + "type": "SQLEndpoint", "displayName": "StagingLakehouseForDataflows_20260203075441", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", "type": "Warehouse", "displayName": + "StagingWarehouseForDataflows_20260203075454", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", + "type": "SQLEndpoint", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203075441", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '487' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:00:42 GMT + Pragma: + - no-cache + RequestId: + - 152f4a2b-aa61-4152-9255-383bde23a83c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:00:42 GMT + Pragma: + - no-cache + RequestId: + - abf4bd49-cf95-4335-87a7-781e0201550e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "62b2fa54-b385-4837-bf42-1ff676ac4692", "type": "Report", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "9797d176-4e05-4505-b702-92eb11623ef8", + "type": "SQLEndpoint", "displayName": "StagingLakehouseForDataflows_20260203075441", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", "type": "Warehouse", "displayName": + "StagingWarehouseForDataflows_20260203075454", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", + "type": "SQLEndpoint", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203075441", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '487' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:00:43 GMT + Pragma: + - no-cache + RequestId: + - 30621847-34ca-4e51-9f00-6a88b7a921d4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/62b2fa54-b385-4837-bf42-1ff676ac4692 + 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: + - Tue, 03 Feb 2026 08:00:44 GMT + Pragma: + - no-cache + RequestId: + - fcbf37b2-984a-4a2f-a07f-fe3a95f7f3b4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[SQLDatabase].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[SQLDatabase].yaml new file mode 100644 index 00000000..92531994 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[SQLDatabase].yaml @@ -0,0 +1,687 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:00:44 GMT + Pragma: + - no-cache + RequestId: + - 804b9a21-41e4-45f0-a107-272d02b73f17 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:00:45 GMT + Pragma: + - no-cache + RequestId: + - 4f26fe0f-a314-4d21-b9e8-49a115ab915c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:00:47 GMT + Pragma: + - no-cache + RequestId: + - b8d37ad5-5777-4105-b9e9-afc45b3f5761 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 08:00:48 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/417fde9e-4ae1-4a88-9565-47f700e5fca3 + Pragma: + - no-cache + RequestId: + - d3d2170d-c255-45d8-a9c8-135d2974b38f + 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: + - 417fde9e-4ae1-4a88-9565-47f700e5fca3 + 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/417fde9e-4ae1-4a88-9565-47f700e5fca3 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T08:00:48.3149173", + "lastUpdatedTimeUtc": "2026-02-03T08:01:02.6504315", "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: + - Tue, 03 Feb 2026 08:01:11 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/417fde9e-4ae1-4a88-9565-47f700e5fca3/result + Pragma: + - no-cache + RequestId: + - 62ec7d4e-892c-41a4-b242-001293f0326d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 417fde9e-4ae1-4a88-9565-47f700e5fca3 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/417fde9e-4ae1-4a88-9565-47f700e5fca3/result + response: + body: + string: '{"id": "6ece6f8f-aad2-449f-8f19-a3cbd20d97ff", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 08:01:12 GMT + Pragma: + - no-cache + RequestId: + - 4b43de45-f327-446b-b98a-dbd45ae0e9db + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:13 GMT + Pragma: + - no-cache + RequestId: + - 9c6ded04-3129-4b3b-b014-a051d41299dd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a4b86bf8-e0c2-4335-ae7d-06181516a098", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "6ece6f8f-aad2-449f-8f19-a3cbd20d97ff", + "type": "SQLDatabase", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '517' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:13 GMT + Pragma: + - no-cache + RequestId: + - c9cab0be-b26d-4313-a8d7-be35f836a485 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a4b86bf8-e0c2-4335-ae7d-06181516a098", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "6ece6f8f-aad2-449f-8f19-a3cbd20d97ff", + "type": "SQLDatabase", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '517' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:14 GMT + Pragma: + - no-cache + RequestId: + - c04b6ccd-18c7-4519-9c11-82111c198718 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:15 GMT + Pragma: + - no-cache + RequestId: + - 91380531-9156-4db0-812a-2d0e8319792c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a4b86bf8-e0c2-4335-ae7d-06181516a098", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "6ece6f8f-aad2-449f-8f19-a3cbd20d97ff", + "type": "SQLDatabase", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '517' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:16 GMT + Pragma: + - no-cache + RequestId: + - d64d4c4e-ac5b-4817-9037-ba5279b4be23 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/6ece6f8f-aad2-449f-8f19-a3cbd20d97ff + 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: + - Tue, 03 Feb 2026 08:01:17 GMT + Pragma: + - no-cache + RequestId: + - 200d1dd0-a535-4af7-ba05-14a322cf9c8d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[SemanticModel].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[SemanticModel].yaml new file mode 100644 index 00000000..b870f21f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[SemanticModel].yaml @@ -0,0 +1,686 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:18 GMT + Pragma: + - no-cache + RequestId: + - 6f2d28e2-1cf7-4f67-b869-31c11c46cc00 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:18 GMT + Pragma: + - no-cache + RequestId: + - b36ec21c-a732-4f48-9427-1888eb5a3a45 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:19 GMT + Pragma: + - no-cache + RequestId: + - 46100252-fc2b-4c25-b0f9-cf1ce7f41ed7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 08:01:20 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/abde587b-4246-4ccd-9005-e8e5f7ddf251 + Pragma: + - no-cache + RequestId: + - 9d4f590d-a524-4e03-8503-40bc5e4abe6c + 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: + - abde587b-4246-4ccd-9005-e8e5f7ddf251 + 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/abde587b-4246-4ccd-9005-e8e5f7ddf251 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T08:01:20.4391626", + "lastUpdatedTimeUtc": "2026-02-03T08:01:31.393485", "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: + - Tue, 03 Feb 2026 08:01:42 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/abde587b-4246-4ccd-9005-e8e5f7ddf251/result + Pragma: + - no-cache + RequestId: + - 050507f6-9c78-4216-86d9-72ac990b7345 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - abde587b-4246-4ccd-9005-e8e5f7ddf251 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/abde587b-4246-4ccd-9005-e8e5f7ddf251/result + response: + body: + string: '{"id": "337845a8-9520-46a0-be9d-b3aa47a6d6eb", "type": "SemanticModel", + "displayName": "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 08:01:42 GMT + Pragma: + - no-cache + RequestId: + - e6b144c1-4e3a-4986-a00e-22032dcd7fcc + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:43 GMT + Pragma: + - no-cache + RequestId: + - 4393637f-56a7-424e-922e-fa440832cf43 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "337845a8-9520-46a0-be9d-b3aa47a6d6eb", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '468' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:44 GMT + Pragma: + - no-cache + RequestId: + - 05f9bd66-c195-4625-bda9-7cbdbbf65993 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "337845a8-9520-46a0-be9d-b3aa47a6d6eb", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '468' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:45 GMT + Pragma: + - no-cache + RequestId: + - 79dcfd1a-5bae-4838-8b58-f47ee671dd01 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:46 GMT + Pragma: + - no-cache + RequestId: + - 41c9c22c-24a0-4067-91d9-1e2ad26735f1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "337845a8-9520-46a0-be9d-b3aa47a6d6eb", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '468' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:47 GMT + Pragma: + - no-cache + RequestId: + - f500ffd6-cc14-4160-b03c-bf514920eda8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/337845a8-9520-46a0-be9d-b3aa47a6d6eb + 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: + - Tue, 03 Feb 2026 08:01:49 GMT + Pragma: + - no-cache + RequestId: + - f8267b7d-e853-4b38-8e23-66f95b2d5d8f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[SparkJobDefinition].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[SparkJobDefinition].yaml new file mode 100644 index 00000000..c8d6f50a --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[SparkJobDefinition].yaml @@ -0,0 +1,581 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:50 GMT + Pragma: + - no-cache + RequestId: + - bac2935f-ab86-4349-ac1b-c38b217b71f7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:50 GMT + Pragma: + - no-cache + RequestId: + - 93732154-bf69-4562-9324-bc9ee1c12122 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:51 GMT + Pragma: + - no-cache + RequestId: + - 3478c849-f41f-40e5-bc29-71d494da33d0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/sparkJobDefinitions + response: + body: + string: '{"id": "5c8af605-d260-461a-9772-5150dd657ad2", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 08:01:53 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - d9b743ec-1487-4a6e-9e2b-ba8719d9f559 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:53 GMT + Pragma: + - no-cache + RequestId: + - 1fe967b0-3490-4fce-be3e-fc3186c72a12 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "5c8af605-d260-461a-9772-5150dd657ad2", + "type": "SparkJobDefinition", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '498' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:54 GMT + Pragma: + - no-cache + RequestId: + - 23095aed-2401-487b-8dc6-7cc026239e99 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "5c8af605-d260-461a-9772-5150dd657ad2", + "type": "SparkJobDefinition", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '498' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:55 GMT + Pragma: + - no-cache + RequestId: + - d7edc985-b2c4-473c-9a4c-f03495d8ba5d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:55 GMT + Pragma: + - no-cache + RequestId: + - c2f16a4d-c486-478f-a56e-a3cd3ad024f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "5c8af605-d260-461a-9772-5150dd657ad2", + "type": "SparkJobDefinition", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '498' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:57 GMT + Pragma: + - no-cache + RequestId: + - 0feb4d6d-7513-48bc-b2cd-feff4a3a37f8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/5c8af605-d260-461a-9772-5150dd657ad2 + 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: + - Tue, 03 Feb 2026 08:01:57 GMT + Pragma: + - no-cache + RequestId: + - 211f3477-abae-4152-b5b3-8a8afd6818d5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[UserDataFunction].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[UserDataFunction].yaml new file mode 100644 index 00000000..cad040f2 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[UserDataFunction].yaml @@ -0,0 +1,619 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:31 GMT + Pragma: + - no-cache + RequestId: + - d868f0da-ff0d-4e99-8b12-c1af7e5923b9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '521' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:32 GMT + Pragma: + - no-cache + RequestId: + - aad1a0df-4226-4bd1-a4af-7a9d3b6ec1d9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '521' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:33 GMT + Pragma: + - no-cache + RequestId: + - 4e7e56ae-a500-43ca-ae65-368cd491e153 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/userdatafunctions + response: + body: + string: '{"id": "7cd9ae52-0315-40c9-b776-73487d4f03ba", "type": "UserDataFunction", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 08:03:36 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 4ce87f2b-4754-4f7d-93c0-349c9a22cd80 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:36 GMT + Pragma: + - no-cache + RequestId: + - ed51d96f-c8e5-4d4c-ac4a-74fa3f22a51c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "7cd9ae52-0315-40c9-b776-73487d4f03ba", "type": "UserDataFunction", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '585' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:37 GMT + Pragma: + - no-cache + RequestId: + - b3e4cc90-ef61-4350-a22c-e534c94cd943 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "7cd9ae52-0315-40c9-b776-73487d4f03ba", "type": "UserDataFunction", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '585' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:38 GMT + Pragma: + - no-cache + RequestId: + - 826d7838-edce-42cd-be1d-8ebbd23cd6a7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:39 GMT + Pragma: + - no-cache + RequestId: + - 400424fe-88df-4566-92f4-192b32aff518 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b18a5ed1-ad0b-458e-b5f2-c97ee525730e", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203080254", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4de79e8-127a-403a-b786-42495ababff4", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203080308", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d5cebdeb-f1d9-4a99-9e06-ba678b8f8747", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260203080254", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "7cd9ae52-0315-40c9-b776-73487d4f03ba", "type": "UserDataFunction", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '585' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:03:40 GMT + Pragma: + - no-cache + RequestId: + - f759f31f-682c-4495-b4a4-ab02c929c9d1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/7cd9ae52-0315-40c9-b776-73487d4f03ba + 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: + - Tue, 03 Feb 2026 08:03:41 GMT + Pragma: + - no-cache + RequestId: + - ecc657ba-0746-4574-b4f4-e4b87a1229b7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_doesnt_exist_success[Warehouse].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Warehouse].yaml new file mode 100644 index 00000000..b5d91cb5 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_doesnt_exist_success[Warehouse].yaml @@ -0,0 +1,681 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:58 GMT + Pragma: + - no-cache + RequestId: + - b87810b1-aa7e-4814-a4f0-a34f571bdc0a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:58 GMT + Pragma: + - no-cache + RequestId: + - f8c10ce7-bf00-4143-b9b6-01cdf780fa63 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '435' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:01:59 GMT + Pragma: + - no-cache + RequestId: + - 8408e90e-e6ed-43b0-9674-ce0e36ec8476 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 08:02:00 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1258d7dc-c287-41b6-b75f-d247fe188037 + Pragma: + - no-cache + RequestId: + - 99c4a1eb-5413-458f-ae38-56cd8fdf1814 + 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: + - 1258d7dc-c287-41b6-b75f-d247fe188037 + 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/1258d7dc-c287-41b6-b75f-d247fe188037 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T08:02:00.6486388", + "lastUpdatedTimeUtc": "2026-02-03T08:02:07.2766471", "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: + - Tue, 03 Feb 2026 08:02:22 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1258d7dc-c287-41b6-b75f-d247fe188037/result + Pragma: + - no-cache + RequestId: + - 7bae7baf-b715-410e-b694-b607c7603eb3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 1258d7dc-c287-41b6-b75f-d247fe188037 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/1258d7dc-c287-41b6-b75f-d247fe188037/result + response: + body: + string: '{"id": "83ad2ce8-86cb-455f-b1de-3353d91597d7", "type": "Warehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 08:02:23 GMT + Pragma: + - no-cache + RequestId: + - ac5bd569-e413-44c8-aaa0-cd98bcaebb71 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:24 GMT + Pragma: + - no-cache + RequestId: + - 42e6cb1e-70fe-4319-a147-ad11b57cfb89 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "83ad2ce8-86cb-455f-b1de-3353d91597d7", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '484' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:24 GMT + Pragma: + - no-cache + RequestId: + - 55d428ec-bb78-40d2-9895-79c2194f84c2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "83ad2ce8-86cb-455f-b1de-3353d91597d7", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '484' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:25 GMT + Pragma: + - no-cache + RequestId: + - 9a2ccf28-c737-4c01-9b99-e86b94fc3007 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:27 GMT + Pragma: + - no-cache + RequestId: + - b9e32398-5619-4923-9fba-38af15bd3e22 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f73fdca7-56cb-4ab6-9476-af2a77803e78", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "83ad2ce8-86cb-455f-b1de-3353d91597d7", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '484' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 08:02:27 GMT + Pragma: + - no-cache + RequestId: + - f17f5a8b-7732-4fa1-b9ee-e4228ce5a735 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/83ad2ce8-86cb-455f-b1de-3353d91597d7 + 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: + - Tue, 03 Feb 2026 08:02:29 GMT + Pragma: + - no-cache + RequestId: + - a6c96910-0dcd-42a6-9b4a-13290559de62 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[CopyJob].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[CopyJob].yaml new file mode 100644 index 00000000..add85b3d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[CopyJob].yaml @@ -0,0 +1,459 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:17 GMT + Pragma: + - no-cache + RequestId: + - a5bdb841-a125-4887-90ed-2afdc7ee4ad9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:18 GMT + Pragma: + - no-cache + RequestId: + - 4a5a4b1d-9389-4487-a911-2180d709954d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:19 GMT + Pragma: + - no-cache + RequestId: + - e7c67915-a5c3-4981-9d90-3985bcd23a78 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/copyJobs + response: + body: + string: '{"id": "e58d2e39-f67d-4eb0-84cb-6f1827619fd3", "type": "CopyJob", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:54:23 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 818c91a5-724c-43b5-8d3f-56da61230c69 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:23 GMT + Pragma: + - no-cache + RequestId: + - 06554558-b2a4-4bd6-b425-1e738d20b0b0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "e58d2e39-f67d-4eb0-84cb-6f1827619fd3", "type": "CopyJob", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:54:25 GMT + Pragma: + - no-cache + RequestId: + - 0c626fbb-2a55-4fd2-8347-45bdce204d6a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:25 GMT + Pragma: + - no-cache + RequestId: + - 4e2a923c-2bb4-4ef1-b1c0-6071f8a16d50 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "e58d2e39-f67d-4eb0-84cb-6f1827619fd3", "type": "CopyJob", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:54:26 GMT + Pragma: + - no-cache + RequestId: + - 1c522810-1930-487e-9709-783937a62bb3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/e58d2e39-f67d-4eb0-84cb-6f1827619fd3 + 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: + - Tue, 03 Feb 2026 07:54:27 GMT + Pragma: + - no-cache + RequestId: + - 2d7d6c98-ca1f-4bf7-acdb-c63a2b39d1c1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[CosmosDBDatabase].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[CosmosDBDatabase].yaml new file mode 100644 index 00000000..de5e8b93 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[CosmosDBDatabase].yaml @@ -0,0 +1,582 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:46 GMT + Pragma: + - no-cache + RequestId: + - 00ca48bc-ecb4-4c97-92e6-e8824044c658 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:54:46 GMT + Pragma: + - no-cache + RequestId: + - 209ededf-540d-42db-b408-88be2e567f01 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:54:47 GMT + Pragma: + - no-cache + RequestId: + - 05b313b1-501c-4bf5-9317-3697a104e49c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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 07:54:49 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/eefa1d06-3b8b-440c-862f-449ac7e7bcd7 + Pragma: + - no-cache + RequestId: + - 33b64336-d9bd-47a9-9284-9f45b14132c4 + 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: + - eefa1d06-3b8b-440c-862f-449ac7e7bcd7 + 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/eefa1d06-3b8b-440c-862f-449ac7e7bcd7 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:54:49.3318157", + "lastUpdatedTimeUtc": "2026-02-03T07:54:58.1767509", "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 07:55:11 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/eefa1d06-3b8b-440c-862f-449ac7e7bcd7/result + Pragma: + - no-cache + RequestId: + - 0ef8e9fc-96ad-4fb3-85f2-c5d1b0083c93 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - eefa1d06-3b8b-440c-862f-449ac7e7bcd7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/eefa1d06-3b8b-440c-862f-449ac7e7bcd7/result + response: + body: + string: '{"id": "839d796a-c98e-4dc1-868b-50e6d8fab06b", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:55:12 GMT + Pragma: + - no-cache + RequestId: + - 8ea8b917-52aa-46c5-8657-a26627d1ec07 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:13 GMT + Pragma: + - no-cache + RequestId: + - 45068aea-3cc7-4cb5-9799-2062622f21e3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "839d796a-c98e-4dc1-868b-50e6d8fab06b", + "type": "CosmosDBDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '395' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:14 GMT + Pragma: + - no-cache + RequestId: + - a8c742a4-bf89-40b3-a879-c24456657481 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:15 GMT + Pragma: + - no-cache + RequestId: + - 545e82cf-acf5-4627-be48-570399f42bcc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "839d796a-c98e-4dc1-868b-50e6d8fab06b", + "type": "CosmosDBDatabase", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '395' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:15 GMT + Pragma: + - no-cache + RequestId: + - 25d7f1f8-b8f0-4bd5-98a3-ca845c7ecd34 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/839d796a-c98e-4dc1-868b-50e6d8fab06b + 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: + - Tue, 03 Feb 2026 07:55:16 GMT + Pragma: + - no-cache + RequestId: + - 11f3179f-0c95-45eb-9a00-e8de8f988e73 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[DataPipeline].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[DataPipeline].yaml new file mode 100644 index 00000000..56ce58c9 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[DataPipeline].yaml @@ -0,0 +1,456 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:20 GMT + Pragma: + - no-cache + RequestId: + - bef8d4e9-4b08-4c0b-ae82-809058267a1b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:48:21 GMT + Pragma: + - no-cache + RequestId: + - b0f4df6c-8d59-401b-8959-c5c6ff5070c6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:48:22 GMT + Pragma: + - no-cache + RequestId: + - ef50f7b4-bb57-49ef-96a7-1e35304a24cb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/dataPipelines + response: + body: + string: '{"id": "7b15dce5-0314-4def-9a46-63ae9ac73136", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:48:29 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 1bc1fceb-9db8-4c4d-a8e8-b994edfabef2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:30 GMT + Pragma: + - no-cache + RequestId: + - a2492349-58af-4b52-82ab-38e0715acfcf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "7b15dce5-0314-4def-9a46-63ae9ac73136", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:48:30 GMT + Pragma: + - no-cache + RequestId: + - 24e348cc-9ff2-4ec1-94fb-dad2ed3e105b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:32 GMT + Pragma: + - no-cache + RequestId: + - 62db9b81-fcdd-44d1-9488-b259c8242a54 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "7b15dce5-0314-4def-9a46-63ae9ac73136", "type": "DataPipeline", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:48:32 GMT + Pragma: + - no-cache + RequestId: + - cbae5255-ba8b-4ae0-8a32-12114167455f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/7b15dce5-0314-4def-9a46-63ae9ac73136 + 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: + - Tue, 03 Feb 2026 07:48:33 GMT + Pragma: + - no-cache + RequestId: + - bda11203-9067-4f9c-be01-6ac89b22a757 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[Dataflow].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Dataflow].yaml new file mode 100644 index 00000000..3c729a91 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Dataflow].yaml @@ -0,0 +1,463 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:37 GMT + Pragma: + - no-cache + RequestId: + - c3c2a2cb-3a4e-4418-ab41-fb9e7a340e71 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:37 GMT + Pragma: + - no-cache + RequestId: + - 08802852-fee5-4bb3-b87c-ef296cf593cc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:38 GMT + Pragma: + - no-cache + RequestId: + - 136c7386-092f-442b-b969-51c279476ff0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/dataflows + response: + body: + string: '{"id": "b516ea4d-df90-41b9-b223-3744b36b4b8a", "type": "Dataflow", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:54:41 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - f8f16486-1c21-4779-acc5-c7b701b94e99 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:41 GMT + Pragma: + - no-cache + RequestId: + - 4e2240d2-b890-42b6-80fa-eba413a55748 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b516ea4d-df90-41b9-b223-3744b36b4b8a", "type": "Dataflow", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:54:42 GMT + Pragma: + - no-cache + RequestId: + - da909ab2-52a8-470e-ae91-da10028b06d7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:43 GMT + Pragma: + - no-cache + RequestId: + - eabfb25d-72f1-427d-9940-d640bb784754 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "b516ea4d-df90-41b9-b223-3744b36b4b8a", "type": "Dataflow", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '300' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:44 GMT + Pragma: + - no-cache + RequestId: + - 3dc212d2-4c32-40f0-a328-cc206b1ba489 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/b516ea4d-df90-41b9-b223-3744b36b4b8a + 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: + - Tue, 03 Feb 2026 07:54:44 GMT + Pragma: + - no-cache + RequestId: + - a34f4c2b-9c29-4104-b920-5fa2fd39bc2f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[DigitalTwinBuilder].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[DigitalTwinBuilder].yaml new file mode 100644 index 00000000..d39730ee --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[DigitalTwinBuilder].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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:25 GMT + Pragma: + - no-cache + RequestId: + - 9a3d6c5c-ba73-45c4-ab37-751a1169250e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '330' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:26 GMT + Pragma: + - no-cache + RequestId: + - ee7db514-9d7a-4815-9b3c-5ec770fb85ed + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '330' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:27 GMT + Pragma: + - no-cache + RequestId: + - 75f6b30c-46f0-4cab-899d-30bbf55ba83b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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 07:55:30 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/0cd7f2e0-630e-403c-92ef-13197f90ae57 + Pragma: + - no-cache + RequestId: + - 1201b24b-ef7e-43f6-949e-36c62625c8a9 + 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: + - 0cd7f2e0-630e-403c-92ef-13197f90ae57 + 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/0cd7f2e0-630e-403c-92ef-13197f90ae57 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:55:29.0122265", + "lastUpdatedTimeUtc": "2026-02-03T07:55:37.717943", "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: + - Tue, 03 Feb 2026 07:55:52 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/0cd7f2e0-630e-403c-92ef-13197f90ae57/result + Pragma: + - no-cache + RequestId: + - f1a8b397-2449-4a96-a972-c6870ed39b43 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 0cd7f2e0-630e-403c-92ef-13197f90ae57 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/0cd7f2e0-630e-403c-92ef-13197f90ae57/result + response: + body: + string: '{"id": "7530d6f9-3ad6-4811-833f-95444f16e551", "type": "DigitalTwinBuilder", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:55:53 GMT + Pragma: + - no-cache + RequestId: + - 66578b11-a219-444f-ba8c-d83807bb3f0c + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:54 GMT + Pragma: + - no-cache + RequestId: + - 7a626a10-d28d-4731-914f-f1b6dd2c0730 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "7530d6f9-3ad6-4811-833f-95444f16e551", + "type": "DigitalTwinBuilder", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "d738d906-9c5b-4849-b5dc-0e60dc06277b", "type": "DigitalTwinBuilderFlow", + "displayName": "fabcli000001OnDemand", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:55 GMT + Pragma: + - no-cache + RequestId: + - a4bc2cf5-1b74-43b2-b017-6756b9c1bd1c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:56 GMT + Pragma: + - no-cache + RequestId: + - 0d6f474c-8bcf-4e75-b599-5b24e115696c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "7530d6f9-3ad6-4811-833f-95444f16e551", + "type": "DigitalTwinBuilder", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", "type": "Lakehouse", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "d738d906-9c5b-4849-b5dc-0e60dc06277b", "type": "DigitalTwinBuilderFlow", + "displayName": "fabcli000001OnDemand", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:57 GMT + Pragma: + - no-cache + RequestId: + - ae9506ff-2e4a-4c80-8c97-4bf606d14697 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/7530d6f9-3ad6-4811-833f-95444f16e551 + 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: + - Tue, 03 Feb 2026 07:55:58 GMT + Pragma: + - no-cache + RequestId: + - 7eeb71f4-2a89-49a2-910e-574ba6e463c0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[Environment].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Environment].yaml new file mode 100644 index 00000000..38919fc6 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Environment].yaml @@ -0,0 +1,456 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:33 GMT + Pragma: + - no-cache + RequestId: + - b661d367-9b8c-400f-9052-748faf2cbf00 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:48:35 GMT + Pragma: + - no-cache + RequestId: + - 6d7dcbaa-236a-4257-90ba-3f94015c4711 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:48:36 GMT + Pragma: + - no-cache + RequestId: + - 997f7230-095b-412b-b271-b0145481fee3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/environments + response: + body: + string: '{"id": "c68aec1d-26f5-4182-b4cb-cda5eef954fd", "type": "Environment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:48:37 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - d0920ebc-f988-4131-b620-ef67f2d440a0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:38 GMT + Pragma: + - no-cache + RequestId: + - 709321ad-3e4b-40df-aeef-cc9a1d6ec42e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "c68aec1d-26f5-4182-b4cb-cda5eef954fd", "type": "Environment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:48:39 GMT + Pragma: + - no-cache + RequestId: + - bd93061b-07bf-418a-b0e0-b06426f31946 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:39 GMT + Pragma: + - no-cache + RequestId: + - 4401ec87-9abe-4bb0-8d14-7de9dcbbdf6d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "c68aec1d-26f5-4182-b4cb-cda5eef954fd", "type": "Environment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:48:41 GMT + Pragma: + - no-cache + RequestId: + - 0982d713-c9dd-44ca-881e-72d1be269b4d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/c68aec1d-26f5-4182-b4cb-cda5eef954fd + 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: + - Tue, 03 Feb 2026 07:48:42 GMT + Pragma: + - no-cache + RequestId: + - bcfc66d1-f005-4886-be0f-de8c5d54f994 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[Eventhouse].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Eventhouse].yaml new file mode 100644 index 00000000..ea9291aa --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Eventhouse].yaml @@ -0,0 +1,460 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:43 GMT + Pragma: + - no-cache + RequestId: + - acd8d7b9-117e-4321-bd26-3ba4eb78e633 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:48:43 GMT + Pragma: + - no-cache + RequestId: + - e9da6426-dc1f-4d50-87d9-55d0934fc468 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:48:44 GMT + Pragma: + - no-cache + RequestId: + - ea69a3e0-9479-43f1-a692-806ad7db7ce9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/eventhouses + response: + body: + string: '{"id": "b7b160e8-9af3-4b82-80db-54f230d0663d", "type": "Eventhouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:48:47 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 0a121884-8d01-4591-bee3-c5b3391b8319 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:49 GMT + Pragma: + - no-cache + RequestId: + - b5238a68-a6da-4081-bc7e-feb1dcc322fa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b7b160e8-9af3-4b82-80db-54f230d0663d", "type": "Eventhouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "0c10a998-d428-4f91-8b11-1d4500c0fd1f", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '228' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:49 GMT + Pragma: + - no-cache + RequestId: + - 081093e7-eb41-45a1-a316-764e398fbda8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:50 GMT + Pragma: + - no-cache + RequestId: + - 3aee1fc5-444f-4572-aa94-bc1591a8175a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b7b160e8-9af3-4b82-80db-54f230d0663d", "type": "Eventhouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "0c10a998-d428-4f91-8b11-1d4500c0fd1f", + "type": "KQLDatabase", "displayName": "fabcli000001", "description": "fabcli000001", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '228' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:51 GMT + Pragma: + - no-cache + RequestId: + - 0622443c-df9c-4754-a842-d3633a0a3a86 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/b7b160e8-9af3-4b82-80db-54f230d0663d + 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: + - Tue, 03 Feb 2026 07:48:51 GMT + Pragma: + - no-cache + RequestId: + - 2f858c6f-8bbd-4669-b66f-43ccdbb4c69f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[Eventstream].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Eventstream].yaml new file mode 100644 index 00000000..9e5233a2 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Eventstream].yaml @@ -0,0 +1,556 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:48:52 GMT + Pragma: + - no-cache + RequestId: + - cd8fcd96-7e7a-4063-a97b-bd5ea450c660 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:48:53 GMT + Pragma: + - no-cache + RequestId: + - 97722316-ebe2-4083-b9e5-de89b7759367 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:48:54 GMT + Pragma: + - no-cache + RequestId: + - 10550f5a-2d4a-4ba0-a0e0-11b4c2cfc398 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:48:55 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/0f979093-45fd-4d46-9700-19222f51b598 + Pragma: + - no-cache + RequestId: + - 2380427d-b3e1-45fb-90be-c9d08f567549 + 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: + - 0f979093-45fd-4d46-9700-19222f51b598 + 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/0f979093-45fd-4d46-9700-19222f51b598 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:48:55.6835945", + "lastUpdatedTimeUtc": "2026-02-03T07:49:00.1380006", "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 07:49:17 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/0f979093-45fd-4d46-9700-19222f51b598/result + Pragma: + - no-cache + RequestId: + - e5be16ec-c000-48ce-8ed1-ca9926c3e0c8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 0f979093-45fd-4d46-9700-19222f51b598 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/0f979093-45fd-4d46-9700-19222f51b598/result + response: + body: + string: '{"id": "c26ff661-26a5-4632-9072-35357e25c25b", "type": "Eventstream", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:49:18 GMT + Pragma: + - no-cache + RequestId: + - 54bbbc71-401a-4a15-b8e7-58e8a2ff6476 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:19 GMT + Pragma: + - no-cache + RequestId: + - 03023ad2-8c9c-41b5-a4f0-da321e391336 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "c26ff661-26a5-4632-9072-35357e25c25b", "type": "Eventstream", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:49:19 GMT + Pragma: + - no-cache + RequestId: + - 681e7183-103e-425a-91d3-418a8f2a4474 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:20 GMT + Pragma: + - no-cache + RequestId: + - eda04c06-6514-4221-96c9-5de914de85cc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "c26ff661-26a5-4632-9072-35357e25c25b", "type": "Eventstream", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:49:21 GMT + Pragma: + - no-cache + RequestId: + - c5f91254-b728-4840-88a3-3b82449f118a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/c26ff661-26a5-4632-9072-35357e25c25b + 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: + - Tue, 03 Feb 2026 07:49:21 GMT + Pragma: + - no-cache + RequestId: + - 8bb6cd6f-f92d-49a6-8f40-ff1740cc2aac + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[GraphQLApi].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[GraphQLApi].yaml new file mode 100644 index 00000000..907cb41d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[GraphQLApi].yaml @@ -0,0 +1,460 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:28 GMT + Pragma: + - no-cache + RequestId: + - aa399002-0c1a-4687-80b2-a126bdeec513 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:28 GMT + Pragma: + - no-cache + RequestId: + - e1285de3-8975-485f-be96-13f3ba727dd6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:29 GMT + Pragma: + - no-cache + RequestId: + - 0f56765f-b17b-4b36-9e0a-128743d4186b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/graphqlapis + response: + body: + string: '{"id": "a4f4eced-1087-4978-ab31-02bf21af5654", "type": "GraphQLApi", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:54:31 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 54498515-799b-41e4-93ba-ad3bd73f767e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:32 GMT + Pragma: + - no-cache + RequestId: + - 8cf19e29-ef00-4823-af56-add13db90871 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a4f4eced-1087-4978-ab31-02bf21af5654", "type": "GraphQLApi", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:54:33 GMT + Pragma: + - no-cache + RequestId: + - df934b73-9f1e-45e7-b4e5-8578df45775d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:34 GMT + Pragma: + - no-cache + RequestId: + - 93e70b0f-c5c1-4b00-9dc5-d400aa219ddc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a4f4eced-1087-4978-ab31-02bf21af5654", "type": "GraphQLApi", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:54:34 GMT + Pragma: + - no-cache + RequestId: + - ff5a22e9-c9f6-4aaa-9ca0-2da94d2846eb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/a4f4eced-1087-4978-ab31-02bf21af5654 + 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: + - Tue, 03 Feb 2026 07:54:36 GMT + Pragma: + - no-cache + RequestId: + - b3b83e27-5d1a-4131-b10b-8a50aadb815d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[GraphQuerySet].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[GraphQuerySet].yaml new file mode 100644 index 00000000..b25ce3b9 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[GraphQuerySet].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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:58 GMT + Pragma: + - no-cache + RequestId: + - 8d4a8141-c70d-4616-99b5-c616a71cb140 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:00 GMT + Pragma: + - no-cache + RequestId: + - 025e7e84-9bfd-4080-8a05-2017c4ba8fc2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:56:00 GMT + Pragma: + - no-cache + RequestId: + - 8a73459b-a8ee-48fc-baad-516527900605 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/GraphQuerySets + response: + body: + string: '{"id": "dfed119e-56f1-45d4-8393-da5a3cf5853e", "type": "GraphQuerySet", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:56:02 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - d679254d-992d-416e-b0e7-d30f81d00401 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:02 GMT + Pragma: + - no-cache + RequestId: + - 4b79541f-3d2b-4ccd-9bef-be43a17e4ff1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "dfed119e-56f1-45d4-8393-da5a3cf5853e", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '459' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:03 GMT + Pragma: + - no-cache + RequestId: + - 517caa08-fffc-4c7f-9e6b-8bacd0242c79 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:04 GMT + Pragma: + - no-cache + RequestId: + - 976d98a5-4fd5-4ff4-b734-9f0ec64f3238 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "39c996ce-6e23-4bb5-b6af-1b7db4e86822", "type": "SQLEndpoint", "displayName": + "fabcli000001dtdm", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "48e61c44-b669-4e71-82f1-76be4fe2cdbd", + "type": "Lakehouse", "displayName": "fabcli000001dtdm", "description": "", + "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "dfed119e-56f1-45d4-8393-da5a3cf5853e", + "type": "GraphQuerySet", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '459' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:56:05 GMT + Pragma: + - no-cache + RequestId: + - 896e8073-b8d4-42db-aaae-d4225e0e26af + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/dfed119e-56f1-45d4-8393-da5a3cf5853e + 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: + - Tue, 03 Feb 2026 07:56:06 GMT + Pragma: + - no-cache + RequestId: + - 85ec4354-0669-47cd-ad83-f3a24be2cbc8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[KQLDashboard].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[KQLDashboard].yaml new file mode 100644 index 00000000..d7738792 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[KQLDashboard].yaml @@ -0,0 +1,456 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:22 GMT + Pragma: + - no-cache + RequestId: + - f1dae235-6fb9-42fa-a744-e0c6238b9dd2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:49:22 GMT + Pragma: + - no-cache + RequestId: + - 6cf02b23-6eae-46d1-ae3d-e5a9a6da1060 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:49:23 GMT + Pragma: + - no-cache + RequestId: + - 7f6de05e-13dc-465f-9957-e85036e62358 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/kqlDashboards + response: + body: + string: '{"id": "55f64103-80cf-4417-9b07-015677052ce6", "type": "KQLDashboard", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:49:25 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 28b626e9-f841-4cc9-b88a-9e30a80cd0df + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:26 GMT + Pragma: + - no-cache + RequestId: + - 1cd3ebc8-f24f-4985-8241-ca1d90eaff94 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "55f64103-80cf-4417-9b07-015677052ce6", "type": "KQLDashboard", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:49:26 GMT + Pragma: + - no-cache + RequestId: + - 63be8120-27f6-4080-a227-0f6d650e4c38 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:27 GMT + Pragma: + - no-cache + RequestId: + - d2528284-e5fb-459e-94ab-89c6b5fb88cf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "55f64103-80cf-4417-9b07-015677052ce6", "type": "KQLDashboard", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:49:27 GMT + Pragma: + - no-cache + RequestId: + - eeb2bc5f-6714-46c2-905f-c557b207cfd0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/55f64103-80cf-4417-9b07-015677052ce6 + 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: + - Tue, 03 Feb 2026 07:49:27 GMT + Pragma: + - no-cache + RequestId: + - 3d78512f-a683-4b9f-885b-51fd109cc24c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[KQLQueryset].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[KQLQueryset].yaml new file mode 100644 index 00000000..8a214cf6 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[KQLQueryset].yaml @@ -0,0 +1,456 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:29 GMT + Pragma: + - no-cache + RequestId: + - 651cbdcd-f6bd-4142-bc7a-55db40d3b5da + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:49:29 GMT + Pragma: + - no-cache + RequestId: + - 42c6b99b-77b9-4025-8ec4-8fae7fe1cc4b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:49:30 GMT + Pragma: + - no-cache + RequestId: + - 9ea0f42d-d32c-49d2-a191-8de42c6f0352 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/kqlQuerysets + response: + body: + string: '{"id": "f1be0333-14ae-4ebe-8dde-b43c3a5158e5", "type": "KQLQueryset", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:49:32 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - f6952f14-61a0-4da6-af94-4c09d065eadc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:33 GMT + Pragma: + - no-cache + RequestId: + - 4988bd07-f177-4868-9c04-d02db5005d6d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "f1be0333-14ae-4ebe-8dde-b43c3a5158e5", "type": "KQLQueryset", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:49:33 GMT + Pragma: + - no-cache + RequestId: + - eb4d005b-73af-4cc0-92c9-d1eaa63c551f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:34 GMT + Pragma: + - no-cache + RequestId: + - b8e7eba8-1775-43f4-8f23-028b2f34d353 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "f1be0333-14ae-4ebe-8dde-b43c3a5158e5", "type": "KQLQueryset", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:49:35 GMT + Pragma: + - no-cache + RequestId: + - 2e3c7e68-c454-4021-b766-62da496dd38d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/f1be0333-14ae-4ebe-8dde-b43c3a5158e5 + 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: + - Tue, 03 Feb 2026 07:49:37 GMT + Pragma: + - no-cache + RequestId: + - 6eabfb59-b1d0-4090-a759-12bd9f481d26 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[Lakehouse].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Lakehouse].yaml new file mode 100644 index 00000000..e30f0054 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Lakehouse].yaml @@ -0,0 +1,456 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:37 GMT + Pragma: + - no-cache + RequestId: + - 4bbd8988-18f3-4ae8-a4b3-fa2329765782 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:49:38 GMT + Pragma: + - no-cache + RequestId: + - 5847f834-1cbb-42a0-8bb5-c0aa7bdb7a35 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:49:38 GMT + Pragma: + - no-cache + RequestId: + - df361199-f536-42d9-9f46-c44479f6831d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/lakehouses + response: + body: + string: '{"id": "b97c8213-9637-4821-a94b-9140c44ac6eb", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:49:42 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 026fbc68-ac72-4116-94d9-f3333be7b390 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:43 GMT + Pragma: + - no-cache + RequestId: + - 044dff07-4a97-4e0d-9aac-006cfa5943f6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b97c8213-9637-4821-a94b-9140c44ac6eb", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:49:43 GMT + Pragma: + - no-cache + RequestId: + - b9d18bdc-b9af-4474-885e-583fd1c9bdf1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:45 GMT + Pragma: + - no-cache + RequestId: + - c04aaf4b-2128-41b4-b21f-e15eb2c754fc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b97c8213-9637-4821-a94b-9140c44ac6eb", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:49:45 GMT + Pragma: + - no-cache + RequestId: + - d29470a0-a314-4d1e-97f9-3e7670d80a03 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/b97c8213-9637-4821-a94b-9140c44ac6eb + 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: + - Tue, 03 Feb 2026 07:49:46 GMT + Pragma: + - no-cache + RequestId: + - 6644df2c-9f33-4e97-a8fd-08295c7cb45e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[MLExperiment].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[MLExperiment].yaml new file mode 100644 index 00000000..1358daf2 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[MLExperiment].yaml @@ -0,0 +1,556 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:49:47 GMT + Pragma: + - no-cache + RequestId: + - 5201f177-fa1e-4425-9001-6b2f7cb111f0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:49:48 GMT + Pragma: + - no-cache + RequestId: + - dc475c3b-8271-4551-86b2-c8162a88fb77 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:49:49 GMT + Pragma: + - no-cache + RequestId: + - 5da865a9-77ca-43dc-adec-3ba0cc5ec1d5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:49:50 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b12a0bbc-1e5a-4b57-9125-d8e7b74b59ce + Pragma: + - no-cache + RequestId: + - 481ee22f-b613-484b-bced-6434f663dbc3 + 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: + - b12a0bbc-1e5a-4b57-9125-d8e7b74b59ce + 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/b12a0bbc-1e5a-4b57-9125-d8e7b74b59ce + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:49:50.3080847", + "lastUpdatedTimeUtc": "2026-02-03T07:49:51.1686255", "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: + - Tue, 03 Feb 2026 07:50:12 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b12a0bbc-1e5a-4b57-9125-d8e7b74b59ce/result + Pragma: + - no-cache + RequestId: + - 69687085-afce-4365-86f3-7b555972aa45 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - b12a0bbc-1e5a-4b57-9125-d8e7b74b59ce + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/b12a0bbc-1e5a-4b57-9125-d8e7b74b59ce/result + response: + body: + string: '{"id": "5f62cf0d-fa18-42b9-9968-e5b4df4d3efd", "type": "MLExperiment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:50:13 GMT + Pragma: + - no-cache + RequestId: + - 5c5f01b7-0279-48bd-8f09-f8ca10b1e4c4 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:50:14 GMT + Pragma: + - no-cache + RequestId: + - 15a72bd7-add4-4117-8981-016350114fc2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "5f62cf0d-fa18-42b9-9968-e5b4df4d3efd", "type": "MLExperiment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:50:14 GMT + Pragma: + - no-cache + RequestId: + - 2486401f-56c1-4625-a827-91c12b03bd7b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:50:15 GMT + Pragma: + - no-cache + RequestId: + - 05525f12-fd7d-4e1d-b1a9-f646dec63c13 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "5f62cf0d-fa18-42b9-9968-e5b4df4d3efd", "type": "MLExperiment", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:50:16 GMT + Pragma: + - no-cache + RequestId: + - 0bcb1ef8-6c7b-4e65-8fc3-9e8c62cd80c6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/5f62cf0d-fa18-42b9-9968-e5b4df4d3efd + 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: + - Tue, 03 Feb 2026 07:50:17 GMT + Pragma: + - no-cache + RequestId: + - 65520e86-4a2d-40de-b14c-643d6ced9831 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[MLModel].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[MLModel].yaml new file mode 100644 index 00000000..818cf1be --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[MLModel].yaml @@ -0,0 +1,555 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:50:18 GMT + Pragma: + - no-cache + RequestId: + - 30566cc1-f472-4955-aaba-d1a5a1400221 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:50:19 GMT + Pragma: + - no-cache + RequestId: + - a68b836d-67cd-4795-9515-3a489c0808b4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:50:19 GMT + Pragma: + - no-cache + RequestId: + - e6114659-c136-4170-998a-7ce10684944a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:50:21 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d1015597-909d-469c-b06c-7362c50dddd2 + Pragma: + - no-cache + RequestId: + - 57fc0e94-c2fa-45a4-893f-ff0fe8f51de4 + 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: + - d1015597-909d-469c-b06c-7362c50dddd2 + 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/d1015597-909d-469c-b06c-7362c50dddd2 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:50:21.3184627", + "lastUpdatedTimeUtc": "2026-02-03T07:50:21.8184485", "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: + - Tue, 03 Feb 2026 07:50:43 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d1015597-909d-469c-b06c-7362c50dddd2/result + Pragma: + - no-cache + RequestId: + - 8eb7755e-e5ee-41c5-a47d-78884e7aaac8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - d1015597-909d-469c-b06c-7362c50dddd2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/d1015597-909d-469c-b06c-7362c50dddd2/result + response: + body: + string: '{"id": "9c89180a-5d36-4efb-816a-4c4161205732", "type": "MLModel", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:50:44 GMT + Pragma: + - no-cache + RequestId: + - e471b7de-a03b-4e48-946e-ff59109d8ae6 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:50:45 GMT + Pragma: + - no-cache + RequestId: + - 52d434b6-1500-410b-bc7c-54bafc594701 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "9c89180a-5d36-4efb-816a-4c4161205732", "type": "MLModel", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:50:46 GMT + Pragma: + - no-cache + RequestId: + - 7943fdb2-8613-4f65-a524-a2a6a6d7ddc1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:50:47 GMT + Pragma: + - no-cache + RequestId: + - f604e460-970e-4f04-aee1-dc0e86ea641b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "9c89180a-5d36-4efb-816a-4c4161205732", "type": "MLModel", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:50:47 GMT + Pragma: + - no-cache + RequestId: + - c1bff69f-42f0-4262-b4e3-9f0770e581d8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/9c89180a-5d36-4efb-816a-4c4161205732 + 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: + - Tue, 03 Feb 2026 07:50:49 GMT + Pragma: + - no-cache + RequestId: + - cd9dc233-23d2-46b3-9815-3a9e9dda46cc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[MirroredDatabase].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[MirroredDatabase].yaml new file mode 100644 index 00000000..7e54c5e2 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[MirroredDatabase].yaml @@ -0,0 +1,458 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:50:49 GMT + Pragma: + - no-cache + RequestId: + - 45323343-1045-4f85-807d-4008803cfd1d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:50:50 GMT + Pragma: + - no-cache + RequestId: + - 9c34cff8-43d8-4a2a-913a-3a1d087f4e3f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:50:50 GMT + Pragma: + - no-cache + RequestId: + - e9d85cc6-d58e-45e8-842c-c00cbbc2567c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/mirroredDatabases + response: + body: + string: '{"id": "8dcf7c4e-84ce-4e5a-8fdc-e3f37abd1ead", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:50:53 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 351471df-1a5b-4348-bc5d-9561454ae9e8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:50:54 GMT + Pragma: + - no-cache + RequestId: + - 8c56f790-261a-4724-a1d2-660789e72d79 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "8dcf7c4e-84ce-4e5a-8fdc-e3f37abd1ead", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:50:55 GMT + Pragma: + - no-cache + RequestId: + - bd973812-900d-40d7-aa11-91cacfe0ad62 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:50:56 GMT + Pragma: + - no-cache + RequestId: + - 20c9b20a-1925-4394-9c0e-6b71e240a41e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "8dcf7c4e-84ce-4e5a-8fdc-e3f37abd1ead", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:50:57 GMT + Pragma: + - no-cache + RequestId: + - 2d0270ba-bc3f-45ea-98f7-7bfd51e98340 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/8dcf7c4e-84ce-4e5a-8fdc-e3f37abd1ead + 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: + - Tue, 03 Feb 2026 07:50:57 GMT + Pragma: + - no-cache + RequestId: + - 819f920a-7c3c-4f40-b0a5-39a22a98ee32 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[Notebook].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Notebook].yaml new file mode 100644 index 00000000..6f18645a --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Notebook].yaml @@ -0,0 +1,558 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:50:59 GMT + Pragma: + - no-cache + RequestId: + - 2ad9e5ec-8a65-4543-8452-5e8047e0057b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:51:00 GMT + Pragma: + - no-cache + RequestId: + - 2bc8916f-f51d-415e-a537-9ddb0ef2a53c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:51:00 GMT + Pragma: + - no-cache + RequestId: + - e2994236-c697-4c5b-9b17-140f57577f06 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:51:01 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3decddda-d213-4fb3-bff3-1f42f0ec32f1 + Pragma: + - no-cache + RequestId: + - e0a2636b-7f4d-4843-904a-de006c249832 + 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: + - 3decddda-d213-4fb3-bff3-1f42f0ec32f1 + 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/3decddda-d213-4fb3-bff3-1f42f0ec32f1 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:51:01.8748752", + "lastUpdatedTimeUtc": "2026-02-03T07:51:03.234263", "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: + - Tue, 03 Feb 2026 07:51:24 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3decddda-d213-4fb3-bff3-1f42f0ec32f1/result + Pragma: + - no-cache + RequestId: + - 02763369-c096-4822-9760-cf8e65d44ea9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 3decddda-d213-4fb3-bff3-1f42f0ec32f1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/3decddda-d213-4fb3-bff3-1f42f0ec32f1/result + response: + body: + string: '{"id": "c89a77f4-c1f2-4f9b-83c8-e28744340d33", "type": "Notebook", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:51:25 GMT + Pragma: + - no-cache + RequestId: + - c5245d05-8c28-4dc1-b5ef-5050bda4175e + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:51:25 GMT + Pragma: + - no-cache + RequestId: + - 6e1db967-df12-4d0e-994d-320b2f4bc39a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "c89a77f4-c1f2-4f9b-83c8-e28744340d33", "type": "Notebook", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:51:26 GMT + Pragma: + - no-cache + RequestId: + - ef1579a2-3a54-4023-abba-e2aa694a2b7d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:51:27 GMT + Pragma: + - no-cache + RequestId: + - e5f1cc26-be07-407d-8c9f-2a8d7bde5bff + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "c89a77f4-c1f2-4f9b-83c8-e28744340d33", "type": "Notebook", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:51:28 GMT + Pragma: + - no-cache + RequestId: + - d95dd360-20e4-451e-ae5f-d8562b673d89 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/c89a77f4-c1f2-4f9b-83c8-e28744340d33 + 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: + - Tue, 03 Feb 2026 07:51:29 GMT + Pragma: + - no-cache + RequestId: + - 3a0ad69b-85c0-4704-acfa-f5277c3bd173 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[Reflex].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Reflex].yaml new file mode 100644 index 00000000..04ccf80a --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Reflex].yaml @@ -0,0 +1,455 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:51:30 GMT + Pragma: + - no-cache + RequestId: + - d02932a7-4327-46b4-a353-c1b193690d46 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:51:31 GMT + Pragma: + - no-cache + RequestId: + - 1f40a50a-20de-4aae-843b-fa6ddd960d43 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:51:32 GMT + Pragma: + - no-cache + RequestId: + - 04885f89-2f77-4b26-81c9-63843de89a66 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/reflexes + response: + body: + string: '{"id": "a210925f-617c-4bad-8f92-06189caead38", "type": "Reflex", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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: + - Tue, 03 Feb 2026 07:51:34 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 1595f1e6-6878-44ef-886e-6c5d320317b2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:51:35 GMT + Pragma: + - no-cache + RequestId: + - e0e6b272-2cd7-4f07-a590-7f20ef1dd8f2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "a210925f-617c-4bad-8f92-06189caead38", "type": "Reflex", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:51:36 GMT + Pragma: + - no-cache + RequestId: + - 204b7c25-48d3-478e-a664-1953b2a8ea40 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:51:36 GMT + Pragma: + - no-cache + RequestId: + - 00eb06d0-38a5-42d1-86cf-49f999c06378 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "a210925f-617c-4bad-8f92-06189caead38", "type": "Reflex", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:51:37 GMT + Pragma: + - no-cache + RequestId: + - fb49558d-bb8d-4809-8372-56a8cd012ea0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/a210925f-617c-4bad-8f92-06189caead38 + 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: + - Tue, 03 Feb 2026 07:51:37 GMT + Pragma: + - no-cache + RequestId: + - 74de3e1b-21aa-4a56-9f6f-4a8700c51709 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[Report].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Report].yaml new file mode 100644 index 00000000..03822b92 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Report].yaml @@ -0,0 +1,730 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:51:38 GMT + Pragma: + - no-cache + RequestId: + - 0ea84f74-e866-4d5a-96d2-5c6ac50706ae + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:51:38 GMT + Pragma: + - no-cache + RequestId: + - 296a700c-2a0f-420a-b95a-593b9d4df118 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:51:40 GMT + Pragma: + - no-cache + RequestId: + - 0b3b4dbd-f7ed-410e-9d20-9cac56bdba23 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:51:41 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2ff9b8da-299b-4b49-96c7-200bf9121493 + Pragma: + - no-cache + RequestId: + - b6f853d8-9429-4129-b0d5-7d7cfc250a15 + 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: + - 2ff9b8da-299b-4b49-96c7-200bf9121493 + 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/2ff9b8da-299b-4b49-96c7-200bf9121493 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:51:41.4602099", + "lastUpdatedTimeUtc": "2026-02-03T07:51:52.2905203", "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: + - Tue, 03 Feb 2026 07:52:03 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2ff9b8da-299b-4b49-96c7-200bf9121493/result + Pragma: + - no-cache + RequestId: + - 1dc21f65-9386-4103-a3f1-46256c9e7597 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 2ff9b8da-299b-4b49-96c7-200bf9121493 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/2ff9b8da-299b-4b49-96c7-200bf9121493/result + response: + body: + string: '{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:52:04 GMT + Pragma: + - no-cache + RequestId: + - a6b3b176-02a1-4d93-8c32-563e854592f3 + 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": "eyJ2ZXJzaW9uIjogIjQuMCIsICJkYXRhc2V0UmVmZXJlbmNlIjogeyJieVBhdGgiOiBudWxsLCAiYnlDb25uZWN0aW9uIjogeyJjb25uZWN0aW9uU3RyaW5nIjogIkRhdGEgU291cmNlPXBvd2VyYmk6Ly9hcGkucG93ZXJiaS5jb20vdjEuMC9teW9yZy9ta2RpcjtJbml0aWFsIENhdGFsb2c9cjM7SW50ZWdyYXRlZCBTZWN1cml0eT1DbGFpbXNUb2tlbiIsICJwYmlTZXJ2aWNlTW9kZWxJZCI6IG51bGwsICJwYmlNb2RlbFZpcnR1YWxTZXJ2ZXJOYW1lIjogInNvYmVfd293dmlydHVhbHNlcnZlciIsICJwYmlNb2RlbERhdGFiYXNlTmFtZSI6ICJiNGI0OGIxMy1jMTYzLTQ0ZjktYmE1Ny00YzFlM2M3MzM1OTAiLCAibmFtZSI6ICJFbnRpdHlEYXRhU291cmNlIiwgImNvbm5lY3Rpb25UeXBlIjogInBiaVNlcnZpY2VYbWxhU3R5bGVMaXZlIn19fQ==", + "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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:52:06 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/809e1e8f-b6d6-4a35-b0ef-b8827a6d8d1c + Pragma: + - no-cache + RequestId: + - f9ae42e5-b083-48da-83b8-60882525477c + 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: + - 809e1e8f-b6d6-4a35-b0ef-b8827a6d8d1c + 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/809e1e8f-b6d6-4a35-b0ef-b8827a6d8d1c + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:52:07.0961592", + "lastUpdatedTimeUtc": "2026-02-03T07:52:07.5644867", "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: + - Tue, 03 Feb 2026 07:52:29 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/809e1e8f-b6d6-4a35-b0ef-b8827a6d8d1c/result + Pragma: + - no-cache + RequestId: + - 30b7ed8c-eb78-4478-bc96-a5a22821f79a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 809e1e8f-b6d6-4a35-b0ef-b8827a6d8d1c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/809e1e8f-b6d6-4a35-b0ef-b8827a6d8d1c/result + response: + body: + string: '{"id": "bb3b2252-42b6-4796-866b-15b082e85005", "type": "Report", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:52:30 GMT + Pragma: + - no-cache + RequestId: + - 9e59a01c-ada7-4e92-a4cb-075b4564166e + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:52:31 GMT + Pragma: + - no-cache + RequestId: + - 80d6d97a-d07c-4c76-b552-b76b56c65366 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "bb3b2252-42b6-4796-866b-15b082e85005", "type": "Report", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:52:31 GMT + Pragma: + - no-cache + RequestId: + - ce975a5d-2260-4f0c-89bc-2f4508084ea9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:52:33 GMT + Pragma: + - no-cache + RequestId: + - 5b8e197b-527e-4c14-8b6f-0e0f220d63bd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "bb3b2252-42b6-4796-866b-15b082e85005", "type": "Report", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", + "type": "SemanticModel", "displayName": "fabcli000001_auto", "description": + "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:52:33 GMT + Pragma: + - no-cache + RequestId: + - 0810678c-f7d6-4901-abf9-68a098ca8001 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/bb3b2252-42b6-4796-866b-15b082e85005 + 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: + - Tue, 03 Feb 2026 07:52:35 GMT + Pragma: + - no-cache + RequestId: + - cba9d3e0-8ae0-4110-967f-bb84c3654da1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[SQLDatabase].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[SQLDatabase].yaml new file mode 100644 index 00000000..a49c9b75 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[SQLDatabase].yaml @@ -0,0 +1,564 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:52:35 GMT + Pragma: + - no-cache + RequestId: + - c8344a55-71e8-44bd-93d1-9ad950029e23 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:52:36 GMT + Pragma: + - no-cache + RequestId: + - 9331835b-e5a3-4219-80b2-3f56baeaf5c4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:52:37 GMT + Pragma: + - no-cache + RequestId: + - f1fd5785-9a5e-4577-a5ff-92b3776ff351 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:52:39 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c18b58e0-6119-4aed-8f25-72ac06bae636 + Pragma: + - no-cache + RequestId: + - 526a1f3a-b6be-4a3a-aacf-b013bfc8ea46 + 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: + - c18b58e0-6119-4aed-8f25-72ac06bae636 + 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/c18b58e0-6119-4aed-8f25-72ac06bae636 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:52:38.5716762", + "lastUpdatedTimeUtc": "2026-02-03T07:52:55.9041942", "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 07:53:01 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c18b58e0-6119-4aed-8f25-72ac06bae636/result + Pragma: + - no-cache + RequestId: + - 6d4ec1a0-94bf-4c4c-9dcb-0603c8ba3660 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - c18b58e0-6119-4aed-8f25-72ac06bae636 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/c18b58e0-6119-4aed-8f25-72ac06bae636/result + response: + body: + string: '{"id": "ab2adb62-c623-4a89-823a-d49c91a99425", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:53:02 GMT + Pragma: + - no-cache + RequestId: + - 0157d931-f2bf-45bc-99fe-1a89feafc2c0 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:03 GMT + Pragma: + - no-cache + RequestId: + - 8fd45f9b-70e7-4123-98c9-bd4828f87084 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "60299826-dc9d-4d9c-9f5c-486a5c1db5e7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "ab2adb62-c623-4a89-823a-d49c91a99425", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '277' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:04 GMT + Pragma: + - no-cache + RequestId: + - 3cdfeb43-1172-4099-9762-6aa03d49e4ee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:05 GMT + Pragma: + - no-cache + RequestId: + - 575aa349-00ce-4332-a086-25028e565f13 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "60299826-dc9d-4d9c-9f5c-486a5c1db5e7", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "ab2adb62-c623-4a89-823a-d49c91a99425", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '277' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:06 GMT + Pragma: + - no-cache + RequestId: + - 7f5529c8-1fa3-46d6-8a64-d93e4ac2c5b9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/ab2adb62-c623-4a89-823a-d49c91a99425 + 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: + - Tue, 03 Feb 2026 07:53:06 GMT + Pragma: + - no-cache + RequestId: + - edb6e38f-1143-4cdc-b0a8-60d36b1b68de + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[SemanticModel].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[SemanticModel].yaml new file mode 100644 index 00000000..9a702c99 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[SemanticModel].yaml @@ -0,0 +1,565 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:07 GMT + Pragma: + - no-cache + RequestId: + - 8e498bf5-3bf3-465b-b87d-a5966198d955 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:08 GMT + Pragma: + - no-cache + RequestId: + - 61bb2142-a39e-4c7b-97fc-55a72ceab8ed + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:09 GMT + Pragma: + - no-cache + RequestId: + - 0904415f-0802-4150-ab21-100f3b263c6c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:53:10 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a0324122-4baa-4c0d-9c57-70afc20ffbef + Pragma: + - no-cache + RequestId: + - 979c6a07-5bf1-4c49-a01c-9e86324564c5 + 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: + - a0324122-4baa-4c0d-9c57-70afc20ffbef + 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/a0324122-4baa-4c0d-9c57-70afc20ffbef + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:53:10.9834944", + "lastUpdatedTimeUtc": "2026-02-03T07:53:22.7826901", "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: + - Tue, 03 Feb 2026 07:53:33 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a0324122-4baa-4c0d-9c57-70afc20ffbef/result + Pragma: + - no-cache + RequestId: + - 5fc34ebe-9f89-4fb9-a36c-4d45d1548561 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a0324122-4baa-4c0d-9c57-70afc20ffbef + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/a0324122-4baa-4c0d-9c57-70afc20ffbef/result + response: + body: + string: '{"id": "ec9c3f49-e749-47eb-b6a4-32ee7aa0bd9e", "type": "SemanticModel", + "displayName": "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:53:34 GMT + Pragma: + - no-cache + RequestId: + - 653834b8-0646-46d5-bca1-618d71cf2b8a + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:34 GMT + Pragma: + - no-cache + RequestId: + - 39bec70b-e7a2-45aa-8b3b-3674bdc6375e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "ec9c3f49-e749-47eb-b6a4-32ee7aa0bd9e", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '219' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:35 GMT + Pragma: + - no-cache + RequestId: + - 2a241cce-ba50-48cd-9038-b595b62db1ad + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:37 GMT + Pragma: + - no-cache + RequestId: + - c3cf056f-05fa-4b36-bf5c-08a6567369f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "ec9c3f49-e749-47eb-b6a4-32ee7aa0bd9e", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '219' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:37 GMT + Pragma: + - no-cache + RequestId: + - 8bc3c4cb-c7be-4287-bc64-489c801b5e90 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/ec9c3f49-e749-47eb-b6a4-32ee7aa0bd9e + 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: + - Tue, 03 Feb 2026 07:53:39 GMT + Pragma: + - no-cache + RequestId: + - a6f78a1f-f687-4454-aa5b-b605ac192984 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[SparkJobDefinition].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[SparkJobDefinition].yaml new file mode 100644 index 00000000..6b11bbbd --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[SparkJobDefinition].yaml @@ -0,0 +1,462 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:39 GMT + Pragma: + - no-cache + RequestId: + - 056c8ac4-1bea-453e-b828-cf44e578e1e7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:40 GMT + Pragma: + - no-cache + RequestId: + - 76191ca0-c2dd-459c-9d8a-5df5d5cf3888 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:41 GMT + Pragma: + - no-cache + RequestId: + - ca44f5f7-2b94-4dab-95b2-c2752a5edaf6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/sparkJobDefinitions + response: + body: + string: '{"id": "d1e20945-41c7-4e57-812a-3ac2eef24eb6", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:53:43 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - dd7450a1-5aa3-44b9-a2e5-ed734125c4f9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:43 GMT + Pragma: + - no-cache + RequestId: + - d78d707f-b839-46a9-b184-56df2f99f51c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "d1e20945-41c7-4e57-812a-3ac2eef24eb6", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:53:44 GMT + Pragma: + - no-cache + RequestId: + - 577ec097-2309-4803-ad62-447a7de808ab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:45 GMT + Pragma: + - no-cache + RequestId: + - 0afb9b22-f81b-4e78-84f6-8e6c108617a0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "d1e20945-41c7-4e57-812a-3ac2eef24eb6", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:53:46 GMT + Pragma: + - no-cache + RequestId: + - e9134c72-f2e7-43a0-9c53-b459a9837fa3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/d1e20945-41c7-4e57-812a-3ac2eef24eb6 + 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: + - Tue, 03 Feb 2026 07:53:47 GMT + Pragma: + - no-cache + RequestId: + - 8c5268c6-2ac7-4573-8566-deae0c9f6574 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[UserDataFunction].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[UserDataFunction].yaml new file mode 100644 index 00000000..c15df207 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[UserDataFunction].yaml @@ -0,0 +1,492 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:18 GMT + Pragma: + - no-cache + RequestId: + - 5b5f3c10-88bb-4156-801a-a3e684739dd3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '330' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:18 GMT + Pragma: + - no-cache + RequestId: + - 27eed0c7-b4a9-42f1-bb4c-43e80c7ed746 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '330' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:19 GMT + Pragma: + - no-cache + RequestId: + - cc2c18ee-8389-41ac-8efc-112e1171203b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/userdatafunctions + response: + body: + string: '{"id": "f89c66e3-eac6-4855-9962-f0f82fd86564", "type": "UserDataFunction", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:55:21 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 243c5fc1-3feb-4128-b8d6-d7a9f2a13768 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:21 GMT + Pragma: + - no-cache + RequestId: + - 3a9094e0-a0cf-4193-908a-a6a9a839d37f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "f89c66e3-eac6-4855-9962-f0f82fd86564", + "type": "UserDataFunction", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '391' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:23 GMT + Pragma: + - no-cache + RequestId: + - aece0002-917c-43d7-8f6b-fc6605f1c2e1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:23 GMT + Pragma: + - no-cache + RequestId: + - f48a3793-2ce0-4531-a510-83d06e10ddc8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "9797d176-4e05-4505-b702-92eb11623ef8", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "d4b12cbc-7628-4748-9a01-e175de6f7f55", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260203075454", + "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "a56d2f37-110e-403e-8d54-74104ad96f65", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260203075441", "description": "", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}, {"id": "f89c66e3-eac6-4855-9962-f0f82fd86564", + "type": "UserDataFunction", "displayName": "fabcli000001", "description": + "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '391' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:55:24 GMT + Pragma: + - no-cache + RequestId: + - 626421ee-fccb-4036-98bf-5baa763ef286 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/f89c66e3-eac6-4855-9962-f0f82fd86564 + 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: + - Tue, 03 Feb 2026 07:55:24 GMT + Pragma: + - no-cache + RequestId: + - 790727da-5752-47db-8d69-e6903bca3520 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_item_exists_success[Warehouse].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Warehouse].yaml new file mode 100644 index 00000000..2c3b1170 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_item_exists_success[Warehouse].yaml @@ -0,0 +1,560 @@ +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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:48 GMT + Pragma: + - no-cache + RequestId: + - e1afc652-d627-4c6d-9f6d-af902aee4086 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:49 GMT + Pragma: + - no-cache + RequestId: + - 34e27837-b46f-4598-a8e9-7f739f1ca0a9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:53:50 GMT + Pragma: + - no-cache + RequestId: + - 04237dcf-9a7b-4ebb-a66e-72cc44043883 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b7945519-3184-48e4-8d42-8b7ee977816d/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: + - Tue, 03 Feb 2026 07:53:51 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/415930a4-489b-4b4e-bbba-543fb51076cf + Pragma: + - no-cache + RequestId: + - 68e0635d-4938-4caa-ac98-33fe61a2d831 + 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: + - 415930a4-489b-4b4e-bbba-543fb51076cf + 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/415930a4-489b-4b4e-bbba-543fb51076cf + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-03T07:53:51.4282747", + "lastUpdatedTimeUtc": "2026-02-03T07:54:03.6342417", "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: + - Tue, 03 Feb 2026 07:54:13 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/415930a4-489b-4b4e-bbba-543fb51076cf/result + Pragma: + - no-cache + RequestId: + - a1f2f88f-854b-4995-9760-76c081fde2a2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 415930a4-489b-4b4e-bbba-543fb51076cf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/415930a4-489b-4b4e-bbba-543fb51076cf/result + response: + body: + string: '{"id": "f5fd71c9-e360-4c05-a7a1-c5fa1c98b644", "type": "Warehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b7945519-3184-48e4-8d42-8b7ee977816d"}' + 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 07:54:13 GMT + Pragma: + - no-cache + RequestId: + - 15142871-aedc-422d-a213-737f5c013df2 + 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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:14 GMT + Pragma: + - no-cache + RequestId: + - 8dc345b0-41a3-470e-b6aa-9032646a85eb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f5fd71c9-e360-4c05-a7a1-c5fa1c98b644", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:54:15 GMT + Pragma: + - no-cache + RequestId: + - 0c991885-d404-4181-b437-3a68f6b6faee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b7945519-3184-48e4-8d42-8b7ee977816d", + "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: + - '2336' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 03 Feb 2026 07:54:16 GMT + Pragma: + - no-cache + RequestId: + - b975a95c-506f-4646-8c5f-f8316c014c74 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b7945519-3184-48e4-8d42-8b7ee977816d/items + response: + body: + string: '{"value": [{"id": "b4b48b13-c163-44f9-ba57-4c1e3c733590", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}, + {"id": "f5fd71c9-e360-4c05-a7a1-c5fa1c98b644", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b7945519-3184-48e4-8d42-8b7ee977816d"}]}' + 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: + - Tue, 03 Feb 2026 07:54:16 GMT + Pragma: + - no-cache + RequestId: + - ff8c9100-19c4-47a2-b4d7-ee4280e5c608 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b7945519-3184-48e4-8d42-8b7ee977816d/items/f5fd71c9-e360-4c05-a7a1-c5fa1c98b644 + 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: + - Tue, 03 Feb 2026 07:54:16 GMT + Pragma: + - no-cache + RequestId: + - 881fb07a-cc29-4c49-b5dd-69ece65aadde + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[KQLDatabase-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[KQLDatabase-Tables].yaml new file mode 100644 index 00000000..f5b7124f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[KQLDatabase-Tables].yaml @@ -0,0 +1,821 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:56 GMT + Pragma: + - no-cache + RequestId: + - 5980205b-e926-4305-8a70-8d4dc7a68eb3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:57 GMT + Pragma: + - no-cache + RequestId: + - 0c865ed3-d71e-48f5-b8da-686b8b13ce45 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:58 GMT + Pragma: + - no-cache + RequestId: + - 7f2ed3da-9368-4225-800b-53aa6a606ead + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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": + "Eventhouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '113' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/eventhouses + response: + body: + string: '{"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", + "displayName": "fabcli000001_auto", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + 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: + - Wed, 28 Jan 2026 12:16:02 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - f4771e38-5153-4b6f-95c8-49b51ed8c27d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "KQLDatabase", "folderId": null, "creationPayload": {"databaseType": "ReadWrite", + "parentEventhouseItemId": "d5691741-adcf-43af-8a8c-12a411e3366b"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '225' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/kqlDatabases + 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: + - Wed, 28 Jan 2026 12:16:03 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ecfb2047-185c-4ded-aa9c-bb47ad551b15 + Pragma: + - no-cache + RequestId: + - d0891c31-8f0f-4877-aad0-1eef35d4ac33 + 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: + - ecfb2047-185c-4ded-aa9c-bb47ad551b15 + 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/ecfb2047-185c-4ded-aa9c-bb47ad551b15 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:16:02.9964504", + "lastUpdatedTimeUtc": "2026-01-28T12:16:07.7634705", "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: + - Wed, 28 Jan 2026 12:16:25 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ecfb2047-185c-4ded-aa9c-bb47ad551b15/result + Pragma: + - no-cache + RequestId: + - 2a11d067-107e-4298-bf68-f5abef07c577 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - ecfb2047-185c-4ded-aa9c-bb47ad551b15 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/ecfb2047-185c-4ded-aa9c-bb47ad551b15/result + response: + body: + string: '{"id": "ffd43826-0023-4921-a4be-bb8deae8e318", "type": "KQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:16:26 GMT + Pragma: + - no-cache + RequestId: + - dd8b2eb9-d8ca-4258-9a80-ce7c05d8eb28 + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:16:27 GMT + Pragma: + - no-cache + RequestId: + - d343a110-5ed4-4d7b-9d76-0407b7664f3d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ffd43826-0023-4921-a4be-bb8deae8e318", "type": "KQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '577' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:16:27 GMT + Pragma: + - no-cache + RequestId: + - 686269a8-6581-4b59-961e-675d059b7c60 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/ffd43826-0023-4921-a4be-bb8deae8e318/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:16:30 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/ffd43826-0023-4921-a4be-bb8deae8e318/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:16:32 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=ffd43826-0023-4921-a4be-bb8deae8e318%2FTables%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:ad8b7933-c01f-0003-554f-900626000000\nTime:2026-01-28T12:16:34.6658009Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:16:34 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:16:35 GMT + Pragma: + - no-cache + RequestId: + - cdadd0bb-2bbd-449e-a1e7-22873ce21c9f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ffd43826-0023-4921-a4be-bb8deae8e318", "type": "KQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '577' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:16:35 GMT + Pragma: + - no-cache + RequestId: + - 2834ec3c-4372-49d1-a2ac-272a817a9d7c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/ffd43826-0023-4921-a4be-bb8deae8e318 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:16:37 GMT + Pragma: + - no-cache + RequestId: + - 1e309280-c044-4e98-b5eb-6c3c0d5e0b59 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[Lakehouse-Files].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[Lakehouse-Files].yaml new file mode 100644 index 00000000..615c4051 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[Lakehouse-Files].yaml @@ -0,0 +1,645 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:07 GMT + Pragma: + - no-cache + RequestId: + - dc8a1cff-0173-4130-b9d7-2bb316cddb34 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '398' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:08 GMT + Pragma: + - no-cache + RequestId: + - 05affe24-ea4e-4756-b89e-2ed59b1f9fb8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '398' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:09 GMT + Pragma: + - no-cache + RequestId: + - be338b07-bdd9-4b10-9105-5c373201f1d5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/lakehouses + response: + body: + string: '{"id": "a8b0649e-4809-4f8d-b3e8-956de1a78513", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:12 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 5ee8a018-70c0-40bd-8cef-1de99022d474 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:12 GMT + Pragma: + - no-cache + RequestId: + - 70e456f6-59cd-4534-900f-d9a895171635 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "3b040332-b777-497c-8b40-272bcccf3953", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128120637", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "a8b0649e-4809-4f8d-b3e8-956de1a78513", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + 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: + - Wed, 28 Jan 2026 12:13:13 GMT + Pragma: + - no-cache + RequestId: + - 3675aabc-d327-45a2-802a-71dc63a4b1fe + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/a8b0649e-4809-4f8d-b3e8-956de1a78513/Files/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:13:16 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/a8b0649e-4809-4f8d-b3e8-956de1a78513/Files/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:13:18 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=a8b0649e-4809-4f8d-b3e8-956de1a78513%2FFiles%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:5cf2a91b-b01f-0004-2a4f-9054f2000000\nTime:2026-01-28T12:13:21.8667355Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:13:21 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:22 GMT + Pragma: + - no-cache + RequestId: + - e0197ae1-eaab-47d3-9139-0751007bf6f9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "8b735e13-5489-43ff-b7fa-b0c4e8f2783b", + "type": "SQLEndpoint", "displayName": "fabcli000001", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "3b040332-b777-497c-8b40-272bcccf3953", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128120637", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "a8b0649e-4809-4f8d-b3e8-956de1a78513", + "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created + by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '504' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:22 GMT + Pragma: + - no-cache + RequestId: + - aaeb11a9-df5c-49d6-8009-1344fc605885 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/a8b0649e-4809-4f8d-b3e8-956de1a78513 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:13:23 GMT + Pragma: + - no-cache + RequestId: + - af65f741-08e5-4707-af5f-e0c2fc4f5282 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[Lakehouse-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[Lakehouse-Tables].yaml new file mode 100644 index 00000000..5e61a22f --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[Lakehouse-Tables].yaml @@ -0,0 +1,659 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:24 GMT + Pragma: + - no-cache + RequestId: + - 4c1138a4-f135-4075-bba7-1d04e3585dff + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:24 GMT + Pragma: + - no-cache + RequestId: + - 064735a6-3cdc-4178-8459-ec648dcb4ff8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:26 GMT + Pragma: + - no-cache + RequestId: + - 81ad2c2f-dbb4-447b-aad6-bad587e9564c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/lakehouses + response: + body: + string: '{"id": "ea7c9d84-c951-416e-8a12-739697556f9f", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + 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: + - Wed, 28 Jan 2026 12:13:29 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 76cf4ba7-d6c2-47ae-b922-bc4267bf0579 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:30 GMT + Pragma: + - no-cache + RequestId: + - d7f32492-79a3-4e3c-be13-8b4551d56020 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ea7c9d84-c951-416e-8a12-739697556f9f", "type": "Lakehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '505' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:30 GMT + Pragma: + - no-cache + RequestId: + - 98ca20b0-31f7-4cf0-bf0b-de3949eb65ab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/ea7c9d84-c951-416e-8a12-739697556f9f/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:13:32 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/ea7c9d84-c951-416e-8a12-739697556f9f/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:13:34 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=ea7c9d84-c951-416e-8a12-739697556f9f%2FTables%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:ecde78d1-001f-007e-2a4f-907705000000\nTime:2026-01-28T12:13:37.3752049Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:13:37 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:37 GMT + Pragma: + - no-cache + RequestId: + - 68891786-007f-4b51-bb2b-1c7ec76590d4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "cb1c6c3f-95ba-43ab-a44c-51fcfc9f5f14", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ea7c9d84-c951-416e-8a12-739697556f9f", "type": "Lakehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '533' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:38 GMT + Pragma: + - no-cache + RequestId: + - 7f7cabcc-0bc7-482c-aa0a-632fed6c43d7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/ea7c9d84-c951-416e-8a12-739697556f9f + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:13:39 GMT + Pragma: + - no-cache + RequestId: + - e1e581fe-f418-41ab-9ccb-dedab3d893a0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[MirroredDatabase-Files].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[MirroredDatabase-Files].yaml new file mode 100644 index 00000000..3422f5a3 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[MirroredDatabase-Files].yaml @@ -0,0 +1,679 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:08 GMT + Pragma: + - no-cache + RequestId: + - e3785640-8c6f-4464-9a43-0032ae94befe + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:09 GMT + Pragma: + - no-cache + RequestId: + - 48e07260-3577-45cf-b802-d35bafef0aef + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:10 GMT + Pragma: + - no-cache + RequestId: + - 09f4889e-216a-4a3c-a119-6dab4b1afb70 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/mirroredDatabases + response: + body: + string: '{"id": "2f5dadcf-ebd6-4d26-8558-bcac85a6eb3e", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:12 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - a00651e4-8f98-41fc-90e1-ab4f9f470d5e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:13 GMT + Pragma: + - no-cache + RequestId: + - e6157af8-04dc-4189-b018-bfc3c9039819 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2f5dadcf-ebd6-4d26-8558-bcac85a6eb3e", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '591' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:14 GMT + Pragma: + - no-cache + RequestId: + - bdddf853-82f7-4dbb-b07e-3f91e6fb880b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/2f5dadcf-ebd6-4d26-8558-bcac85a6eb3e/Files/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:18:16 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/2f5dadcf-ebd6-4d26-8558-bcac85a6eb3e/Files/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:18:17 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=2f5dadcf-ebd6-4d26-8558-bcac85a6eb3e%2FFiles%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:193e52bd-301f-00e8-7350-90cd79000000\nTime:2026-01-28T12:18:20.6468935Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:18:20 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:21 GMT + Pragma: + - no-cache + RequestId: + - 2474f75a-209e-4e40-bacd-877b180e7afb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d9177936-4fa6-4b75-a67c-eb1c85a74018", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2f5dadcf-ebd6-4d26-8558-bcac85a6eb3e", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '623' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:21 GMT + Pragma: + - no-cache + RequestId: + - dc280604-c86d-4b1f-8db5-375f8ae10737 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/2f5dadcf-ebd6-4d26-8558-bcac85a6eb3e + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:18:23 GMT + Pragma: + - no-cache + RequestId: + - ca3a57e3-d1d4-4a73-a8ae-bbd557f95179 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[MirroredDatabase-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[MirroredDatabase-Tables].yaml new file mode 100644 index 00000000..67d6ec71 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[MirroredDatabase-Tables].yaml @@ -0,0 +1,679 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:52 GMT + Pragma: + - no-cache + RequestId: + - 55790efa-8bc4-4382-b146-e0309f3ec95a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:53 GMT + Pragma: + - no-cache + RequestId: + - c854edd9-d1c3-443b-975f-4338cb9d350e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:54 GMT + Pragma: + - no-cache + RequestId: + - 53e17bbb-5922-4fe9-b177-a4fdd1910ada + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/mirroredDatabases + response: + body: + string: '{"id": "f8bb9242-6f40-4047-a48a-9626d30a6904", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '168' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:57 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 33079f4b-4ef6-4338-b057-2b1951a01e57 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:58 GMT + Pragma: + - no-cache + RequestId: + - 06f4dae6-2660-4127-b9ff-bdf3f08b93a6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "f8bb9242-6f40-4047-a48a-9626d30a6904", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '591' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:59 GMT + Pragma: + - no-cache + RequestId: + - b3f69fb4-88eb-4c20-aada-34745c36c63f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/f8bb9242-6f40-4047-a48a-9626d30a6904/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:18:01 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/f8bb9242-6f40-4047-a48a-9626d30a6904/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:18:02 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=f8bb9242-6f40-4047-a48a-9626d30a6904%2FTables%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:88941aed-801f-0067-1a50-907cbf000000\nTime:2026-01-28T12:18:05.3028777Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:18:04 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:06 GMT + Pragma: + - no-cache + RequestId: + - 2f460bd1-e0fb-418d-b0df-0d9f80569104 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "f0ad4594-8aa5-4508-a23c-4e0e23ac5708", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "f8bb9242-6f40-4047-a48a-9626d30a6904", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '623' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:07 GMT + Pragma: + - no-cache + RequestId: + - 8513bc8a-d3f8-4175-bef5-db29624f819a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/f8bb9242-6f40-4047-a48a-9626d30a6904 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:18:07 GMT + Pragma: + - no-cache + RequestId: + - 7803c73c-d647-4664-8ea0-f6afa27192a8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[SQLDatabase-Files].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SQLDatabase-Files].yaml new file mode 100644 index 00000000..1719a773 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SQLDatabase-Files].yaml @@ -0,0 +1,777 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:15 GMT + Pragma: + - no-cache + RequestId: + - 6cb8ea2e-a2a6-47c8-b8c1-9f5899e6e28b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:15 GMT + Pragma: + - no-cache + RequestId: + - 2000714d-b9bc-4a3d-b959-8a4b055d8867 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:16 GMT + Pragma: + - no-cache + RequestId: + - fb99cdf6-51b0-4e94-a5e1-d73db1d163af + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/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: + - Wed, 28 Jan 2026 12:17:18 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b66531cd-6672-4b73-ab31-2a47202c5525 + Pragma: + - no-cache + RequestId: + - 92a8efe2-e4f5-4723-83bd-65ddc46e7c55 + 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: + - b66531cd-6672-4b73-ab31-2a47202c5525 + 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/b66531cd-6672-4b73-ab31-2a47202c5525 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:17:17.9542679", + "lastUpdatedTimeUtc": "2026-01-28T12:17:31.2843254", "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: + - Wed, 28 Jan 2026 12:17:40 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b66531cd-6672-4b73-ab31-2a47202c5525/result + Pragma: + - no-cache + RequestId: + - 0e454e74-267b-4cdd-81b4-1329d273fc1a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - b66531cd-6672-4b73-ab31-2a47202c5525 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/b66531cd-6672-4b73-ab31-2a47202c5525/result + response: + body: + string: '{"id": "2f558699-ced8-4fed-a2d4-9a40e1724201", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:17:41 GMT + Pragma: + - no-cache + RequestId: + - b07a759b-a27f-430a-b0ea-a955a919731d + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:42 GMT + Pragma: + - no-cache + RequestId: + - 3625ecee-b475-4a8c-83c8-9eb88411105d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3addf5a3-5ed3-41cb-8d24-7a42c3cd1106", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2f558699-ced8-4fed-a2d4-9a40e1724201", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '619' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:42 GMT + Pragma: + - no-cache + RequestId: + - 4cd65c36-1db4-4d99-a55f-e942febdff4c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/2f558699-ced8-4fed-a2d4-9a40e1724201/Files/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:17:44 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/2f558699-ced8-4fed-a2d4-9a40e1724201/Files/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:17:46 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=2f558699-ced8-4fed-a2d4-9a40e1724201%2FFiles%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:9b15ec62-f01f-0030-3c50-9070d5000000\nTime:2026-01-28T12:17:49.3234239Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:17:48 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:50 GMT + Pragma: + - no-cache + RequestId: + - b91ef93a-a9ab-4406-8eb5-c37930ac1399 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3addf5a3-5ed3-41cb-8d24-7a42c3cd1106", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2f558699-ced8-4fed-a2d4-9a40e1724201", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '619' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:50 GMT + Pragma: + - no-cache + RequestId: + - 6d5580be-4ec0-4f55-b5ed-ff83bcac6cdc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/2f558699-ced8-4fed-a2d4-9a40e1724201 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:17:51 GMT + Pragma: + - no-cache + RequestId: + - c873fb22-f222-4ac2-82cd-02b4738b467a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[SQLDatabase-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SQLDatabase-Tables].yaml new file mode 100644 index 00000000..1546890d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SQLDatabase-Tables].yaml @@ -0,0 +1,777 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:16:37 GMT + Pragma: + - no-cache + RequestId: + - 71756e37-d1ea-441a-8d1e-6cb04b7e0526 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:16:39 GMT + Pragma: + - no-cache + RequestId: + - 732a60b3-8e4f-4b0a-95d2-5431154feda9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:16:40 GMT + Pragma: + - no-cache + RequestId: + - e9dbf156-b154-4d36-be76-fdafa696aa1d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/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: + - Wed, 28 Jan 2026 12:16:40 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b7caa35f-29b7-4740-89ae-3473977a81f0 + Pragma: + - no-cache + RequestId: + - 3be609ea-db21-42f6-b4fe-02efa982ac7a + 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: + - b7caa35f-29b7-4740-89ae-3473977a81f0 + 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/b7caa35f-29b7-4740-89ae-3473977a81f0 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:16:40.9890656", + "lastUpdatedTimeUtc": "2026-01-28T12:16:53.9456352", "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: + - Wed, 28 Jan 2026 12:17:03 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b7caa35f-29b7-4740-89ae-3473977a81f0/result + Pragma: + - no-cache + RequestId: + - 27e4ed89-42b3-4a67-b79a-b420410e21fb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - b7caa35f-29b7-4740-89ae-3473977a81f0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/b7caa35f-29b7-4740-89ae-3473977a81f0/result + response: + body: + string: '{"id": "155f8696-f899-47f3-b01a-da4a5fbac026", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:17:04 GMT + Pragma: + - no-cache + RequestId: + - a15a23af-1cb9-42f1-9c93-d1f5a2039201 + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:04 GMT + Pragma: + - no-cache + RequestId: + - 8ac5c7c7-e6ff-4e07-ac61-31b511004755 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ff78b6a9-a652-42a5-b707-5214f31fe571", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "155f8696-f899-47f3-b01a-da4a5fbac026", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '620' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:05 GMT + Pragma: + - no-cache + RequestId: + - d130c8ab-a229-471e-b2a0-5c522f71414c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/155f8696-f899-47f3-b01a-da4a5fbac026/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:17:08 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/155f8696-f899-47f3-b01a-da4a5fbac026/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:17:09 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=155f8696-f899-47f3-b01a-da4a5fbac026%2FTables%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:9d03b7a0-201f-0054-0b50-901678000000\nTime:2026-01-28T12:17:12.0733891Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:17:12 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:12 GMT + Pragma: + - no-cache + RequestId: + - c969d13a-5954-4579-b55c-5b736a011407 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ff78b6a9-a652-42a5-b707-5214f31fe571", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "155f8696-f899-47f3-b01a-da4a5fbac026", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '620' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:17:13 GMT + Pragma: + - no-cache + RequestId: + - 4180b7bb-eb7d-4a8f-bfa5-bad70ea286bb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/155f8696-f899-47f3-b01a-da4a5fbac026 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:17:14 GMT + Pragma: + - no-cache + RequestId: + - c6550878-12fd-44ee-abb3-bedee3f6d8e7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[SemanticModel-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SemanticModel-Tables].yaml new file mode 100644 index 00000000..3d5978c0 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SemanticModel-Tables].yaml @@ -0,0 +1,762 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:55 GMT + Pragma: + - no-cache + RequestId: + - e14179d4-5a9b-4ceb-a385-37fcb3969a34 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:56 GMT + Pragma: + - no-cache + RequestId: + - 795c59fd-e95c-4ee6-95ea-e2bc91a1b002 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:57 GMT + Pragma: + - no-cache + RequestId: + - 534a7c1d-2ea3-4abc-9fb7-1b2e03d14bdc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/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: + - Wed, 28 Jan 2026 12:14:58 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/e4ea4b14-ac6b-4951-899c-5b08cf38df04 + Pragma: + - no-cache + RequestId: + - 78a838cd-687c-4a83-a4a1-b745523739d0 + 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: + - e4ea4b14-ac6b-4951-899c-5b08cf38df04 + 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/e4ea4b14-ac6b-4951-899c-5b08cf38df04 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:14:58.7140047", + "lastUpdatedTimeUtc": "2026-01-28T12:15:10.2156306", "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: + - Wed, 28 Jan 2026 12:15:20 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/e4ea4b14-ac6b-4951-899c-5b08cf38df04/result + Pragma: + - no-cache + RequestId: + - 3b0b79bf-8b00-4e3c-a7af-c4d64578f973 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - e4ea4b14-ac6b-4951-899c-5b08cf38df04 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/e4ea4b14-ac6b-4951-899c-5b08cf38df04/result + response: + body: + string: '{"id": "91e77d5b-e7de-4f43-95b2-6170ac0dc5f8", "type": "SemanticModel", + "displayName": "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:15:21 GMT + Pragma: + - no-cache + RequestId: + - 3b0a2b24-1450-4463-ac44-772c0c92c5ca + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:21 GMT + Pragma: + - no-cache + RequestId: + - e94d3aed-5c26-4f34-ae94-05b2a9c92aee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "91e77d5b-e7de-4f43-95b2-6170ac0dc5f8", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '488' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:23 GMT + Pragma: + - no-cache + RequestId: + - f5e19758-abea-44ca-8101-882ce2c18b62 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/91e77d5b-e7de-4f43-95b2-6170ac0dc5f8/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '0' + Date: + - Wed, 28 Jan 2026 12:15:25 GMT + Server: + - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - ArtifactNotFound + status: + code: 404 + message: NotFound +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/91e77d5b-e7de-4f43-95b2-6170ac0dc5f8/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '0' + Date: + - Wed, 28 Jan 2026 12:15:27 GMT + Server: + - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - ArtifactNotFound + status: + code: 404 + message: NotFound +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=91e77d5b-e7de-4f43-95b2-6170ac0dc5f8%2FTables%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "ArtifactNotFound", "message": "Artifact ''91e77d5b-e7de-4f43-95b2-6170ac0dc5f8'' + is not found in workspace ''b285198e-e555-4618-9fb9-949cabcaafd4''."}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:15:29 GMT + Server: + - Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - ArtifactNotFound + status: + code: 404 + message: NotFound +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:30 GMT + Pragma: + - no-cache + RequestId: + - 44e30e11-c9f5-4a07-afd5-241331d6ffb3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "91e77d5b-e7de-4f43-95b2-6170ac0dc5f8", "type": "SemanticModel", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '488' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:30 GMT + Pragma: + - no-cache + RequestId: + - 555c5e0f-0d57-411b-a386-18ab67ab1249 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/91e77d5b-e7de-4f43-95b2-6170ac0dc5f8 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:15:32 GMT + Pragma: + - no-cache + RequestId: + - 208bd30d-1c12-423d-b221-ac4bc3180d9e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[SparkJobDefinition-Libs].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SparkJobDefinition-Libs].yaml new file mode 100644 index 00000000..20e843c1 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SparkJobDefinition-Libs].yaml @@ -0,0 +1,659 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:33 GMT + Pragma: + - no-cache + RequestId: + - 8ab07394-f479-4797-ab3e-0796a78f0d4a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:34 GMT + Pragma: + - no-cache + RequestId: + - 8bd99989-b4b3-4e1a-9894-70df59af0f0a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:35 GMT + Pragma: + - no-cache + RequestId: + - 346cadc2-05fd-4763-aba7-191e754ccb61 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/sparkJobDefinitions + response: + body: + string: '{"id": "46de9376-3611-4474-8f97-9e5c07bcf77f", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '175' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:36 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 54e2cada-5156-497f-b1df-47ec8b21f742 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:37 GMT + Pragma: + - no-cache + RequestId: + - 7d897609-fdc4-4beb-a3fa-08e0b5f33efd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "46de9376-3611-4474-8f97-9e5c07bcf77f", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '519' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:38 GMT + Pragma: + - no-cache + RequestId: + - e94750ef-3629-44c2-81ee-2ca95a0eb189 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/46de9376-3611-4474-8f97-9e5c07bcf77f/Libs/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:15:40 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/46de9376-3611-4474-8f97-9e5c07bcf77f/Libs/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:15:41 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=46de9376-3611-4474-8f97-9e5c07bcf77f%2FLibs%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:34c0ecaa-701f-0064-5f4f-9016da000000\nTime:2026-01-28T12:15:42.2544361Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:15:41 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:41 GMT + Pragma: + - no-cache + RequestId: + - d994d435-517d-4643-96d3-61a4acc0cce0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "46de9376-3611-4474-8f97-9e5c07bcf77f", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '519' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:43 GMT + Pragma: + - no-cache + RequestId: + - e0a23953-b467-4d89-a68f-65b4f579d5e0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/46de9376-3611-4474-8f97-9e5c07bcf77f + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:15:44 GMT + Pragma: + - no-cache + RequestId: + - d9e40fcf-a23f-441b-b95a-22e54a2134aa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[SparkJobDefinition-Main].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SparkJobDefinition-Main].yaml new file mode 100644 index 00000000..15927ab7 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[SparkJobDefinition-Main].yaml @@ -0,0 +1,659 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:44 GMT + Pragma: + - no-cache + RequestId: + - ce0b6908-ea31-4cff-ae94-98e0c587f7df + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:45 GMT + Pragma: + - no-cache + RequestId: + - 3fb197eb-1848-4c95-b769-4f5615cd7cc3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:46 GMT + Pragma: + - no-cache + RequestId: + - 36c53b06-ac31-45b9-aee9-b9dc59143d85 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/sparkJobDefinitions + response: + body: + string: '{"id": "0679c7eb-a7f7-4e33-afa1-a05f8183a334", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + 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: + - Wed, 28 Jan 2026 12:15:47 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 7c43e785-4883-4715-a905-0b145285eb9d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:48 GMT + Pragma: + - no-cache + RequestId: + - 04c6eca3-69df-492b-96f7-d0ff867d9b5e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "0679c7eb-a7f7-4e33-afa1-a05f8183a334", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '518' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:49 GMT + Pragma: + - no-cache + RequestId: + - b1953ab9-d1a0-44e3-bddf-b2434483a06f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/0679c7eb-a7f7-4e33-afa1-a05f8183a334/Main/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:15:49 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/0679c7eb-a7f7-4e33-afa1-a05f8183a334/Main/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:15:50 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=0679c7eb-a7f7-4e33-afa1-a05f8183a334%2FMain%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:f22f8ee8-801f-0002-314f-9059fa000000\nTime:2026-01-28T12:15:53.4088115Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:15:52 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:53 GMT + Pragma: + - no-cache + RequestId: + - 246a1452-c3d1-406f-9305-06806758376f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "0679c7eb-a7f7-4e33-afa1-a05f8183a334", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '518' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:15:55 GMT + Pragma: + - no-cache + RequestId: + - 93f7b925-7415-472d-9033-d0545b3b7df8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/0679c7eb-a7f7-4e33-afa1-a05f8183a334 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:15:56 GMT + Pragma: + - no-cache + RequestId: + - 01810733-174e-4afb-bd61-fa1e0d724b7b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[Warehouse-Files].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[Warehouse-Files].yaml new file mode 100644 index 00000000..17a68b70 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[Warehouse-Files].yaml @@ -0,0 +1,757 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:40 GMT + Pragma: + - no-cache + RequestId: + - d4ca0b99-a61f-45f9-8b3d-52ac66af5fa9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:41 GMT + Pragma: + - no-cache + RequestId: + - 21409b79-4fa9-4d96-82e0-39d5982e8146 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:13:41 GMT + Pragma: + - no-cache + RequestId: + - 11b3175e-e049-4981-adde-12ed8bbf5e46 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/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: + - Wed, 28 Jan 2026 12:13:43 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4098eef5-f055-4b15-97b6-cf1a3ec59e84 + Pragma: + - no-cache + RequestId: + - c26f3c84-b39f-497a-bc4d-963be6d61a7c + 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: + - 4098eef5-f055-4b15-97b6-cf1a3ec59e84 + 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/4098eef5-f055-4b15-97b6-cf1a3ec59e84 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:13:43.381778", + "lastUpdatedTimeUtc": "2026-01-28T12:13:50.0709869", "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: + - Wed, 28 Jan 2026 12:14:04 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4098eef5-f055-4b15-97b6-cf1a3ec59e84/result + Pragma: + - no-cache + RequestId: + - 005eed17-9f20-45e9-9c21-fbb25c608201 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 4098eef5-f055-4b15-97b6-cf1a3ec59e84 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/4098eef5-f055-4b15-97b6-cf1a3ec59e84/result + response: + body: + string: '{"id": "746d4e9a-5861-4777-a279-0fbbf411a8c5", "type": "Warehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:14:06 GMT + Pragma: + - no-cache + RequestId: + - 045e01c2-b63d-4297-800e-51b4f07daa4b + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:06 GMT + Pragma: + - no-cache + RequestId: + - c40aff6d-c03e-4513-a247-ffa01c0976d6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "746d4e9a-5861-4777-a279-0fbbf411a8c5", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '504' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:07 GMT + Pragma: + - no-cache + RequestId: + - 12110cbd-23b3-48cc-9e36-965cfb4a20a7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/746d4e9a-5861-4777-a279-0fbbf411a8c5/Files/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:14:09 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/746d4e9a-5861-4777-a279-0fbbf411a8c5/Files/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:14:11 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=746d4e9a-5861-4777-a279-0fbbf411a8c5%2FFiles%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:6ebe4848-a01f-0045-204f-900869000000\nTime:2026-01-28T12:14:14.4040926Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:14:14 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:14 GMT + Pragma: + - no-cache + RequestId: + - 658578b9-5f1d-46e7-a589-0ed61fa4d99e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "746d4e9a-5861-4777-a279-0fbbf411a8c5", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '504' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:15 GMT + Pragma: + - no-cache + RequestId: + - 09bcfe36-d578-4604-9b42-3f87acdd1379 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/746d4e9a-5861-4777-a279-0fbbf411a8c5 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:14:16 GMT + Pragma: + - no-cache + RequestId: + - 8f1e06c7-3ec7-4e92-a82a-62c29ae560e7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_doesnt_exist_success[Warehouse-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[Warehouse-Tables].yaml new file mode 100644 index 00000000..34ebef3d --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_doesnt_exist_success[Warehouse-Tables].yaml @@ -0,0 +1,757 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:17 GMT + Pragma: + - no-cache + RequestId: + - b2cc9dc0-d0b3-4544-b646-3a62341202fa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:18 GMT + Pragma: + - no-cache + RequestId: + - 3d117917-9194-4854-944a-5fd7b71db2d0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '453' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:19 GMT + Pragma: + - no-cache + RequestId: + - 4adacb4c-84b6-4286-828b-fa89783b2741 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/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: + - Wed, 28 Jan 2026 12:14:20 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8c18e1b-4cd2-4b96-86e9-50f8f14e27ef + Pragma: + - no-cache + RequestId: + - 8a983832-6e75-4d62-a3e5-47686e855bb3 + 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: + - a8c18e1b-4cd2-4b96-86e9-50f8f14e27ef + 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/a8c18e1b-4cd2-4b96-86e9-50f8f14e27ef + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:14:20.6592943", + "lastUpdatedTimeUtc": "2026-01-28T12:14:27.285516", "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: + - Wed, 28 Jan 2026 12:14:41 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8c18e1b-4cd2-4b96-86e9-50f8f14e27ef/result + Pragma: + - no-cache + RequestId: + - 73ece07a-b581-4e65-a8b6-5591cf25d026 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8c18e1b-4cd2-4b96-86e9-50f8f14e27ef + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/a8c18e1b-4cd2-4b96-86e9-50f8f14e27ef/result + response: + body: + string: '{"id": "0b297350-8aee-443e-bf48-869a8cfc8e3f", "type": "Warehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:14:43 GMT + Pragma: + - no-cache + RequestId: + - d666bb68-1420-44fa-a1a2-91613fa03788 + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:44 GMT + Pragma: + - no-cache + RequestId: + - 3de00f4e-096c-49cd-bbe1-7f87e3cea89e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "0b297350-8aee-443e-bf48-869a8cfc8e3f", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '503' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:45 GMT + Pragma: + - no-cache + RequestId: + - e6203f3b-56dc-4f30-9e14-632cbf340dd0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/0b297350-8aee-443e-bf48-869a8cfc8e3f/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:14:47 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: HEAD + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/0b297350-8aee-443e-bf48-869a8cfc8e3f/Tables/non_existent_file.txt + response: + body: + string: '' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Date: + - Wed, 28 Jan 2026 12:14:49 GMT + Server: + - Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - BlobNotFound + status: + code: 404 + message: The specified blob does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=0b297350-8aee-443e-bf48-869a8cfc8e3f%2FTables%2Fnon_existent_file.txt&getShortcutMetadata=true + response: + body: + string: '{"error": {"code": "PathNotFound", "message": "The specified path does + not exist.\nRequestId:7a0dd363-901f-004e-314f-90f77d000000\nTime:2026-01-28T12:14:51.8713525Z"}}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Length: + - '163' + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:14:51 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + x-ms-error-code: + - PathNotFound + status: + code: 404 + message: The specified path does not exist. +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:52 GMT + Pragma: + - no-cache + RequestId: + - 7cdeb3c2-fa7d-4a4e-92f3-9fa5b28bd202 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "0b297350-8aee-443e-bf48-869a8cfc8e3f", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '503' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:14:53 GMT + Pragma: + - no-cache + RequestId: + - 1839b25c-b59f-4111-8257-3b7518618856 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/0b297350-8aee-443e-bf48-869a8cfc8e3f + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:14:54 GMT + Pragma: + - no-cache + RequestId: + - ea51e8fc-3a55-48a4-9c35-1925b9280845 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[KQLDatabase-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[KQLDatabase-Tables].yaml new file mode 100644 index 00000000..60ad8437 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[KQLDatabase-Tables].yaml @@ -0,0 +1,750 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:37 GMT + Pragma: + - no-cache + RequestId: + - d3b31f62-901c-4923-8f40-742b7ee4097f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:37 GMT + Pragma: + - no-cache + RequestId: + - bff680ab-9529-4b6d-a2d6-e5089f4531bc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:39 GMT + Pragma: + - no-cache + RequestId: + - 400151c0-420e-4d07-b40f-54d678a62e0b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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": + "Eventhouse", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '113' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/eventhouses + response: + body: + string: '{"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", + "displayName": "fabcli000001_auto", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + 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: + - Wed, 28 Jan 2026 12:19:42 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 81d52e09-ffb6-4d23-aa31-092d1d104f61 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "KQLDatabase", "folderId": null, "creationPayload": {"databaseType": "ReadWrite", + "parentEventhouseItemId": "ae0903bd-0cfc-4050-970c-2b7500d28260"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '225' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/kqlDatabases + 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: + - Wed, 28 Jan 2026 12:19:44 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/e117665d-8e7a-4439-b6ee-a98309a79537 + Pragma: + - no-cache + RequestId: + - 0752304b-7288-4e10-83ae-fd194b77b2b5 + 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: + - e117665d-8e7a-4439-b6ee-a98309a79537 + 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/e117665d-8e7a-4439-b6ee-a98309a79537 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:19:43.9580955", + "lastUpdatedTimeUtc": "2026-01-28T12:19:46.848922", "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: + - Wed, 28 Jan 2026 12:20:05 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/e117665d-8e7a-4439-b6ee-a98309a79537/result + Pragma: + - no-cache + RequestId: + - 7b5093e2-b801-4de2-866b-e67f4d51859a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - e117665d-8e7a-4439-b6ee-a98309a79537 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/e117665d-8e7a-4439-b6ee-a98309a79537/result + response: + body: + string: '{"id": "102ee608-225b-482e-9f84-dd4b6c2c4220", "type": "KQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:20:06 GMT + Pragma: + - no-cache + RequestId: + - 6d9e3b2e-51d9-49c6-9d00-a5af5cea360b + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:07 GMT + Pragma: + - no-cache + RequestId: + - 083e25c1-f1d8-4aff-9a47-5320efb95489 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "102ee608-225b-482e-9f84-dd4b6c2c4220", "type": "KQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '643' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:08 GMT + Pragma: + - no-cache + RequestId: + - 796303fe-7bf0-4eb7-ac42-5b50a60d8b19 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=102ee608-225b-482e-9f84-dd4b6c2c4220%2FTables&getShortcutMetadata=true + response: + body: + string: '{"paths": [], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:09 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:10 GMT + Pragma: + - no-cache + RequestId: + - 72350fb5-22e6-46a1-9d58-2184de226d3c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "102ee608-225b-482e-9f84-dd4b6c2c4220", "type": "KQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '643' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:11 GMT + Pragma: + - no-cache + RequestId: + - 8c3f867e-4e87-41ba-ac5c-c863c10b9bba + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/102ee608-225b-482e-9f84-dd4b6c2c4220 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:20:12 GMT + Pragma: + - no-cache + RequestId: + - c47c0eaf-411c-4f0f-989b-892873a583e5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[Lakehouse-Files].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[Lakehouse-Files].yaml new file mode 100644 index 00000000..346629f0 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[Lakehouse-Files].yaml @@ -0,0 +1,588 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:24 GMT + Pragma: + - no-cache + RequestId: + - 97f188a3-93b9-4bdb-b5b7-c0bc6d660606 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:24 GMT + Pragma: + - no-cache + RequestId: + - 9b5abd0f-782b-408b-af1b-67f79a1a26cf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:25 GMT + Pragma: + - no-cache + RequestId: + - 54b88e4c-32f0-4a6d-9f76-3d429888ccfb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/lakehouses + response: + body: + string: '{"id": "205cea7c-46c4-4208-8150-f24e90474b8c", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:28 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - da7efb33-396b-4b0f-9a57-950d84740105 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:30 GMT + Pragma: + - no-cache + RequestId: + - f053431e-34e1-4da0-ade8-db5c7a2167a0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "205cea7c-46c4-4208-8150-f24e90474b8c", "type": "Lakehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '588' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:30 GMT + Pragma: + - no-cache + RequestId: + - ce54d0b6-c691-4766-aaff-25d212f599c3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=205cea7c-46c4-4208-8150-f24e90474b8c%2FFiles&getShortcutMetadata=true + response: + body: + string: '{"paths": [], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:32 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:32 GMT + Pragma: + - no-cache + RequestId: + - 43070fda-cd03-4295-bda5-74e95d9b3dc7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "500a11cc-a7c1-44cd-8951-08b31627889d", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "205cea7c-46c4-4208-8150-f24e90474b8c", "type": "Lakehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '617' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:34 GMT + Pragma: + - no-cache + RequestId: + - 0a3d825a-83f4-4e65-90e2-976a15df1efb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/205cea7c-46c4-4208-8150-f24e90474b8c + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:18:34 GMT + Pragma: + - no-cache + RequestId: + - b2e800fc-2566-4835-8772-de2b35c6b5ac + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[Lakehouse-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[Lakehouse-Tables].yaml new file mode 100644 index 00000000..1a15ec87 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[Lakehouse-Tables].yaml @@ -0,0 +1,586 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:35 GMT + Pragma: + - no-cache + RequestId: + - f1916a1c-460f-4665-a51a-df3672ad959d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:36 GMT + Pragma: + - no-cache + RequestId: + - c5b48a0a-397a-47f7-a346-f3f165ea6aff + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:37 GMT + Pragma: + - no-cache + RequestId: + - 667371d4-4167-4dec-ac07-f00623a42e33 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/lakehouses + response: + body: + string: '{"id": "2775d52e-545d-451c-b927-4a754a29b3a0", "type": "Lakehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '167' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:40 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 6de60ed5-9ba7-478f-b9f9-244a51b9f7c4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:41 GMT + Pragma: + - no-cache + RequestId: + - 970c54fd-b881-4298-af85-ceaa026051b0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2775d52e-545d-451c-b927-4a754a29b3a0", "type": "Lakehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '586' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:41 GMT + Pragma: + - no-cache + RequestId: + - cd837bb2-ffa1-4217-9339-6414f9596f37 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=2775d52e-545d-451c-b927-4a754a29b3a0%2FTables&getShortcutMetadata=true + response: + body: + string: '{"paths": [], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:43 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:43 GMT + Pragma: + - no-cache + RequestId: + - a1c5a28d-ca09-4c71-bc58-99b56b013bf4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2775d52e-545d-451c-b927-4a754a29b3a0", "type": "Lakehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '586' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:44 GMT + Pragma: + - no-cache + RequestId: + - b6e1588d-f2ab-41c4-ba78-db7251b175f4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/2775d52e-545d-451c-b927-4a754a29b3a0 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:18:45 GMT + Pragma: + - no-cache + RequestId: + - 1416e190-e7f4-49e0-8b6c-b4d97b26ed14 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[MirroredDatabase-Files].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[MirroredDatabase-Files].yaml new file mode 100644 index 00000000..d9c0b396 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[MirroredDatabase-Files].yaml @@ -0,0 +1,606 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:32 GMT + Pragma: + - no-cache + RequestId: + - 2b47a0d1-0aac-4efb-bb0c-8f67a9e55438 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '617' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:33 GMT + Pragma: + - no-cache + RequestId: + - 3521876c-9a9c-44d7-8f69-d6da20b2fbf8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '617' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:34 GMT + Pragma: + - no-cache + RequestId: + - 824a6460-0176-417c-9ecd-b9e957916c85 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/mirroredDatabases + response: + body: + string: '{"id": "343cd441-5c96-4098-8693-da4d7f27f40b", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + 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: + - Wed, 28 Jan 2026 12:21:37 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 7f6b1308-ecfd-4ad5-be0d-cc0d454f436a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:37 GMT + Pragma: + - no-cache + RequestId: + - 9358a0af-2e4e-475a-8651-57cb7d71c0dc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "343cd441-5c96-4098-8693-da4d7f27f40b", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '660' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:38 GMT + Pragma: + - no-cache + RequestId: + - a39f48f2-3151-4210-bfa0-09f7b6530da3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=343cd441-5c96-4098-8693-da4d7f27f40b%2FFiles&getShortcutMetadata=true + response: + body: + string: '{"paths": [], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:39 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:40 GMT + Pragma: + - no-cache + RequestId: + - a57c8df7-8926-4f24-b483-a68ae07074d1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "343cd441-5c96-4098-8693-da4d7f27f40b", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '660' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:41 GMT + Pragma: + - no-cache + RequestId: + - 5f4107ac-421d-4b6a-8948-64cd9f80bc18 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/343cd441-5c96-4098-8693-da4d7f27f40b + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:21:42 GMT + Pragma: + - no-cache + RequestId: + - e63f98d6-bb58-485b-aee1-26cfcbefc45e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[MirroredDatabase-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[MirroredDatabase-Tables].yaml new file mode 100644 index 00000000..d8b14c34 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[MirroredDatabase-Tables].yaml @@ -0,0 +1,606 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:21 GMT + Pragma: + - no-cache + RequestId: + - 6389b5d1-4097-44e3-894b-72e94132bbe5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '617' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:22 GMT + Pragma: + - no-cache + RequestId: + - 26e720e5-c4fc-4325-a230-3c19f7da41ab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '617' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:23 GMT + Pragma: + - no-cache + RequestId: + - 13ad5807-8f92-4eae-ba87-8c42758894fa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/mirroredDatabases + response: + body: + string: '{"id": "ea296455-517f-423b-972c-7242496107d6", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + 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: + - Wed, 28 Jan 2026 12:21:25 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 7d2ed4c3-bc55-4bcf-8b36-7fd9caf7ddeb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:26 GMT + Pragma: + - no-cache + RequestId: + - 29d48971-3c00-43bb-b610-c65dc3d13132 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ea296455-517f-423b-972c-7242496107d6", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '659' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:27 GMT + Pragma: + - no-cache + RequestId: + - 9ada2d9a-2583-4448-bd92-4f0246d44274 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=ea296455-517f-423b-972c-7242496107d6%2FTables&getShortcutMetadata=true + response: + body: + string: '{"paths": [], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:29 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:29 GMT + Pragma: + - no-cache + RequestId: + - 904f3aa5-db68-44a6-a9a6-5c2648d4d6aa + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ea296455-517f-423b-972c-7242496107d6", "type": "MirroredDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '659' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:30 GMT + Pragma: + - no-cache + RequestId: + - a8149126-b0ee-484c-b142-9c7f409b43b5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/ea296455-517f-423b-972c-7242496107d6 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:21:31 GMT + Pragma: + - no-cache + RequestId: + - 7d378e12-1422-4568-809a-e02fbf1aa550 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[SQLDatabase-Files].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[SQLDatabase-Files].yaml new file mode 100644 index 00000000..52e6a5c5 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[SQLDatabase-Files].yaml @@ -0,0 +1,714 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:46 GMT + Pragma: + - no-cache + RequestId: + - 420e7171-391f-411b-8684-73cb35bacdc8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '617' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:47 GMT + Pragma: + - no-cache + RequestId: + - 66c7742d-e48f-4016-94ea-23a694b84c91 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '617' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:48 GMT + Pragma: + - no-cache + RequestId: + - 91495f70-1f50-4b53-b1e8-687e8460f41d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/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: + - Wed, 28 Jan 2026 12:20:51 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4e2d6c1b-c954-432b-bb5b-b95295c9f00a + Pragma: + - no-cache + RequestId: + - 44be65ae-14de-4e41-8806-737f95273a31 + 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: + - 4e2d6c1b-c954-432b-bb5b-b95295c9f00a + 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/4e2d6c1b-c954-432b-bb5b-b95295c9f00a + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:20:50.1740157", + "lastUpdatedTimeUtc": "2026-01-28T12:21:03.4597027", "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: + - Wed, 28 Jan 2026 12:21:13 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/4e2d6c1b-c954-432b-bb5b-b95295c9f00a/result + Pragma: + - no-cache + RequestId: + - 0ee7f085-409a-4a4d-905d-5f5593282dd6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 4e2d6c1b-c954-432b-bb5b-b95295c9f00a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/4e2d6c1b-c954-432b-bb5b-b95295c9f00a/result + response: + body: + string: '{"id": "5201548c-d4f9-4d58-9827-4b06eeb2c3fa", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:21:14 GMT + Pragma: + - no-cache + RequestId: + - aa1daeba-0f3b-4065-9ed6-0f0746528ca3 + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:14 GMT + Pragma: + - no-cache + RequestId: + - 5b4ba776-81d2-4586-947e-ab736d512276 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "551cfb0e-cfb3-4232-84ee-049f8629cccd", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "5201548c-d4f9-4d58-9827-4b06eeb2c3fa", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '687' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:15 GMT + Pragma: + - no-cache + RequestId: + - ea6df0c4-3eb1-4d37-88a5-b642e6e3b9ec + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=5201548c-d4f9-4d58-9827-4b06eeb2c3fa%2FFiles&getShortcutMetadata=true + response: + body: + string: '{"paths": [{"name": "5201548c-d4f9-4d58-9827-4b06eeb2c3fa/Files/LandingZone", + "isDirectory": "true", "creationTime": "134140764742982112", "lastModified": + "Wed, 28 Jan 2026 12:21:14 GMT", "etag": "0x8DE5E67BADE9B54", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "5201548c-d4f9-4d58-9827-4b06eeb2c3fa/Files/Monitoring", + "isDirectory": "true", "creationTime": "134140764645862548", "lastModified": + "Wed, 28 Jan 2026 12:21:04 GMT", "etag": "0x8DE5E67B514AE0C", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:18 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:19 GMT + Pragma: + - no-cache + RequestId: + - deff87a0-4a0c-4eef-bae4-660a4e627e1a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "551cfb0e-cfb3-4232-84ee-049f8629cccd", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "5201548c-d4f9-4d58-9827-4b06eeb2c3fa", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '687' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:21:19 GMT + Pragma: + - no-cache + RequestId: + - a6e9b722-d0cc-4c50-96f1-dcec1b81a2d2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/5201548c-d4f9-4d58-9827-4b06eeb2c3fa + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:21:20 GMT + Pragma: + - no-cache + RequestId: + - 3f95dabd-522b-4441-9216-0b575bdae01b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[SQLDatabase-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[SQLDatabase-Tables].yaml new file mode 100644 index 00000000..36ba110e --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[SQLDatabase-Tables].yaml @@ -0,0 +1,706 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:13 GMT + Pragma: + - no-cache + RequestId: + - 10f2f16c-99b4-447e-8f70-41716d34507e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '617' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:13 GMT + Pragma: + - no-cache + RequestId: + - ce379e8e-7ef4-4826-bf24-c91c774f8b6d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '617' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:14 GMT + Pragma: + - no-cache + RequestId: + - 1fd00f1b-1da9-4734-ab9e-60091f8d97f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/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: + - Wed, 28 Jan 2026 12:20:16 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d6a3da40-275e-4350-a908-aacec9adc02d + Pragma: + - no-cache + RequestId: + - 107bb27b-4fab-498d-bcd1-3bdea01afd55 + 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: + - d6a3da40-275e-4350-a908-aacec9adc02d + 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/d6a3da40-275e-4350-a908-aacec9adc02d + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:20:15.7757745", + "lastUpdatedTimeUtc": "2026-01-28T12:20:28.0127468", "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: + - Wed, 28 Jan 2026 12:20:37 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d6a3da40-275e-4350-a908-aacec9adc02d/result + Pragma: + - no-cache + RequestId: + - c0b38517-17a7-459e-8fb6-ca5e80cde355 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - d6a3da40-275e-4350-a908-aacec9adc02d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/d6a3da40-275e-4350-a908-aacec9adc02d/result + response: + body: + string: '{"id": "9664821a-c474-45a4-b9de-e382733c1662", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:20:38 GMT + Pragma: + - no-cache + RequestId: + - 1eb4a43b-975b-40ef-9e24-50113611b608 + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:39 GMT + Pragma: + - no-cache + RequestId: + - 36d622c1-7b92-435a-bde1-df2ea4fc3622 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "7f983362-3835-4d01-9e13-38080bb4a365", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "9664821a-c474-45a4-b9de-e382733c1662", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '686' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:40 GMT + Pragma: + - no-cache + RequestId: + - 071d7aa2-64fa-47d9-8be2-cc6dc4628181 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=9664821a-c474-45a4-b9de-e382733c1662%2FTables&getShortcutMetadata=true + response: + body: + string: '{"paths": [], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:42 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:43 GMT + Pragma: + - no-cache + RequestId: + - c58b8a3b-c2f1-4593-ab4f-becd4f0033bd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "7f983362-3835-4d01-9e13-38080bb4a365", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "ae0903bd-0cfc-4050-970c-2b7500d28260", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "74fa88e3-5d5f-4ea1-a350-14223948a706", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "9664821a-c474-45a4-b9de-e382733c1662", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '686' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:20:45 GMT + Pragma: + - no-cache + RequestId: + - f56199c4-8831-4aec-9564-8210a2f15fd6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/9664821a-c474-45a4-b9de-e382733c1662 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:20:46 GMT + Pragma: + - no-cache + RequestId: + - 51deab5d-07e1-4511-bcdb-8b4c3ddbd8ae + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[SparkJobDefinition-Libs].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[SparkJobDefinition-Libs].yaml new file mode 100644 index 00000000..92e353f6 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[SparkJobDefinition-Libs].yaml @@ -0,0 +1,588 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:18 GMT + Pragma: + - no-cache + RequestId: + - 1ed4b0d4-b1d2-4ce0-9f5e-644adad1f2b8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:19 GMT + Pragma: + - no-cache + RequestId: + - 5358bb12-32ff-4526-b481-6a43f5ad0c76 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:19 GMT + Pragma: + - no-cache + RequestId: + - e65f0556-b067-4fcb-8d52-682d13f9edc3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/sparkJobDefinitions + response: + body: + string: '{"id": "6106a331-73cf-4d48-ac62-6ee369105fe6", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + 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: + - Wed, 28 Jan 2026 12:19:21 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 940fbe7a-22c4-4e89-a4b2-8b8ff0f647c9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:22 GMT + Pragma: + - no-cache + RequestId: + - 1ef3caca-696a-4a02-8667-28bddb1e6c8d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "6106a331-73cf-4d48-ac62-6ee369105fe6", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '599' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:23 GMT + Pragma: + - no-cache + RequestId: + - 11e2e3b7-3791-4da4-8f85-856de5574eb0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=6106a331-73cf-4d48-ac62-6ee369105fe6%2FLibs&getShortcutMetadata=true + response: + body: + string: '{"paths": [], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:24 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:24 GMT + Pragma: + - no-cache + RequestId: + - 2d5b600d-b8c5-4cc0-8efc-fb1ee1c9772d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "6106a331-73cf-4d48-ac62-6ee369105fe6", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '599' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:25 GMT + Pragma: + - no-cache + RequestId: + - e16c2379-a41d-4b70-83b3-a1023d37303b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/6106a331-73cf-4d48-ac62-6ee369105fe6 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:19:27 GMT + Pragma: + - no-cache + RequestId: + - fb9d6586-8f96-4e32-b48d-67b81bc64267 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[SparkJobDefinition-Main].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[SparkJobDefinition-Main].yaml new file mode 100644 index 00000000..2d0be1cc --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[SparkJobDefinition-Main].yaml @@ -0,0 +1,588 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:28 GMT + Pragma: + - no-cache + RequestId: + - 17f33b5c-de31-4bb7-87ff-ad57a92aaea4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:28 GMT + Pragma: + - no-cache + RequestId: + - 85b8b4bf-317a-4684-bfc1-19d7936d5d17 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:29 GMT + Pragma: + - no-cache + RequestId: + - 9bcdfa43-d8bd-4283-84ac-b1a0b2be8ad4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/sparkJobDefinitions + response: + body: + string: '{"id": "1343e90b-9052-4284-87f7-9207061ea0b0", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + 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: + - Wed, 28 Jan 2026 12:19:30 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - f87b941a-d8cc-46b3-9127-18770ce7bdc7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:32 GMT + Pragma: + - no-cache + RequestId: + - fd47ff96-ba5c-4762-a218-a38bb1e71536 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "1343e90b-9052-4284-87f7-9207061ea0b0", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '597' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:32 GMT + Pragma: + - no-cache + RequestId: + - adbbfdcd-9b2c-429f-a5aa-0960c0bad68e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=1343e90b-9052-4284-87f7-9207061ea0b0%2FMain&getShortcutMetadata=true + response: + body: + string: '{"paths": [], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:33 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:35 GMT + Pragma: + - no-cache + RequestId: + - 5e756857-7300-422a-a524-71d32eb1b347 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "1343e90b-9052-4284-87f7-9207061ea0b0", "type": "SparkJobDefinition", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '597' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:36 GMT + Pragma: + - no-cache + RequestId: + - 95ee0555-076c-4998-b01e-c2fc983cd945 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/1343e90b-9052-4284-87f7-9207061ea0b0 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:19:36 GMT + Pragma: + - no-cache + RequestId: + - 6f1bc07b-2a90-4bd9-bb32-089daf62b47b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists/test_exists_onelake_exists_success[Warehouse-Tables].yaml b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[Warehouse-Tables].yaml new file mode 100644 index 00000000..c4a1bd17 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_exists/test_exists_onelake_exists_success[Warehouse-Tables].yaml @@ -0,0 +1,686 @@ +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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:45 GMT + Pragma: + - no-cache + RequestId: + - 6dc814f3-1190-43ba-bc1b-a51e2ac78cd2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:46 GMT + Pragma: + - no-cache + RequestId: + - 65165635-7524-42c0-996e-b7eb04f6993d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '550' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:18:47 GMT + Pragma: + - no-cache + RequestId: + - 72e4800f-54c8-4687-873d-1775abd64074 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b285198e-e555-4618-9fb9-949cabcaafd4/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: + - Wed, 28 Jan 2026 12:18:48 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3853456a-5725-4c88-bcb9-7c3a39001a18 + Pragma: + - no-cache + RequestId: + - 07552dda-f1b7-4f3e-9079-1be9ac2c5a8c + 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: + - 3853456a-5725-4c88-bcb9-7c3a39001a18 + 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/3853456a-5725-4c88-bcb9-7c3a39001a18 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-28T12:18:48.6576141", + "lastUpdatedTimeUtc": "2026-01-28T12:18:53.4115883", "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: + - Wed, 28 Jan 2026 12:19:10 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/3853456a-5725-4c88-bcb9-7c3a39001a18/result + Pragma: + - no-cache + RequestId: + - d25423f0-222b-4c78-9b71-f259c6936092 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 3853456a-5725-4c88-bcb9-7c3a39001a18 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/3853456a-5725-4c88-bcb9-7c3a39001a18/result + response: + body: + string: '{"id": "0f0512f3-e0c7-4ebf-9fd6-882ef2c11c60", "type": "Warehouse", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 28 Jan 2026 12:19:10 GMT + Pragma: + - no-cache + RequestId: + - 6e6137f9-7be6-439b-ae6d-c04e62a1a82a + 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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:11 GMT + Pragma: + - no-cache + RequestId: + - fba19fa7-451f-4a5d-afc1-8abe8b0e0f35 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "0f0512f3-e0c7-4ebf-9fd6-882ef2c11c60", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '584' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:13 GMT + Pragma: + - no-cache + RequestId: + - 65639db0-5242-4adf-aa9d-a8b2fc20c097 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/b285198e-e555-4618-9fb9-949cabcaafd4/?recursive=false&resource=filesystem&directory=0f0512f3-e0c7-4ebf-9fd6-882ef2c11c60%2FTables&getShortcutMetadata=true + response: + body: + string: '{"paths": [], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:15 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-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": "b285198e-e555-4618-9fb9-949cabcaafd4", + "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: + - '2304' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:15 GMT + Pragma: + - no-cache + RequestId: + - 9b6b96c8-89ff-49aa-805a-7ce13f6cf3c0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b285198e-e555-4618-9fb9-949cabcaafd4/items + response: + body: + string: '{"value": [{"id": "311c021d-63ba-4d80-bb3f-74e9f821f989", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2df38667-3858-4982-baa1-cc8ec851370b", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "50721f66-f90f-4b82-98ea-f79569e56a5f", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "1cebf3dd-89a3-405d-98e5-43ab4c957760", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128120702", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3ad50aa3-67a6-4a2c-b2dc-55da298da64a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260128121303", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "561a5aea-c577-4b88-afbb-e804e3820036", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260128121317", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "0f0512f3-e0c7-4ebf-9fd6-882ef2c11c60", "type": "Warehouse", "displayName": + "fabcli000001", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "3b040332-b777-497c-8b40-272bcccf3953", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260128120637", "description": "", "workspaceId": + "b285198e-e555-4618-9fb9-949cabcaafd4"}, {"id": "900187be-5ac8-4e45-b4e7-35a6296b7b3a", + "type": "Lakehouse", "displayName": "StagingLakehouseForDataflows_20260128121303", + "description": "", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "d5691741-adcf-43af-8a8c-12a411e3366b", "type": "Eventhouse", "displayName": + "fabcli000001_auto", "description": "Created by fab", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}, + {"id": "2096990d-1518-4cf7-b7cc-2264a6ebd1e3", "type": "KQLDatabase", "displayName": + "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "b285198e-e555-4618-9fb9-949cabcaafd4"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '584' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 28 Jan 2026 12:19:16 GMT + Pragma: + - no-cache + RequestId: + - 766b8b7b-49f5-4d1d-98f9-8066f66f8c3c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b285198e-e555-4618-9fb9-949cabcaafd4/items/0f0512f3-e0c7-4ebf-9fd6-882ef2c11c60 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 28 Jan 2026 12:19:18 GMT + Pragma: + - no-cache + RequestId: + - 2e180c6f-dcb6-4715-9269-c7189d03ec1b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_exists.py b/tests/test_commands/test_exists.py index db26e4a5..2bb0affd 100644 --- a/tests/test_commands/test_exists.py +++ b/tests/test_commands/test_exists.py @@ -1,9 +1,12 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. +import pytest + from fabric_cli.core import fab_constant as constant from fabric_cli.core.fab_types import ItemType from tests.test_commands.data.static_test_data import StaticTestData +from tests.test_commands.conftest import custom_parametrize class TestExists: @@ -18,17 +21,18 @@ def test_exists_workspace_exists_success( mock_print_done.assert_called_once() assert constant.INFO_EXISTS_TRUE in mock_print_done.call_args[0][0] + @custom_parametrize def test_exists_item_exists_success( - self, item_factory, mock_print_done, cli_executor + self, item_factory, mock_print_done, cli_executor, item_type ): # Setup - lakehouse = item_factory(ItemType.LAKEHOUSE) + item = item_factory(item_type) # Reset mock mock_print_done.reset_mock() # Execute command - cli_executor.exec_command(f"exists {lakehouse.full_path}") + cli_executor.exec_command(f"exists {item.full_path}") # Assert mock_print_done.assert_called_once() @@ -46,51 +50,80 @@ def test_exists_virtual_workspace_item_capacity_exists_success( mock_print_done.assert_called_once() assert constant.INFO_EXISTS_TRUE in mock_print_done.call_args[0][0] + @pytest.mark.parametrize("item_type,folder_name", [ + (ItemType.LAKEHOUSE, "Files"), + (ItemType.LAKEHOUSE, "Tables"), + (ItemType.WAREHOUSE, "Tables"), + (ItemType.SPARK_JOB_DEFINITION, "Libs"), + (ItemType.SPARK_JOB_DEFINITION, "Main"), + (ItemType.KQL_DATABASE, "Tables"), + (ItemType.SQL_DATABASE, "Tables"), + (ItemType.SQL_DATABASE, "Files"), + (ItemType.MIRRORED_DATABASE, "Tables"), + (ItemType.MIRRORED_DATABASE, "Files"), + ]) def test_exists_onelake_exists_success( - self, item_factory, mock_print_done, cli_executor + self, item_factory, mock_print_done, cli_executor, item_type, folder_name ): # Setup - lakehouse = item_factory(ItemType.LAKEHOUSE) + item = item_factory(item_type) # Reset mock mock_print_done.reset_mock() # Execute command - cli_executor.exec_command(f"exists {lakehouse.full_path}/Files") + cli_executor.exec_command(f"exists {item.full_path}/{folder_name}") # Assert mock_print_done.assert_called_once() assert constant.INFO_EXISTS_TRUE in mock_print_done.call_args[0][0] + @custom_parametrize def test_exists_item_doesnt_exist_success( - self, item_factory, mock_print_done, cli_executor + self, item_factory, mock_print_done, cli_executor, item_type ): # Setup - lakehouse = item_factory(ItemType.LAKEHOUSE) + item = item_factory(item_type) # Reset mock mock_print_done.reset_mock() # Execute command - path = lakehouse.full_path.replace(".Lakehouse", "random.Lakehouse") + item_extension = f".{item_type.value}" + path = item.full_path.replace( + item_extension, f"random{item_extension}") cli_executor.exec_command(f"exists {path}") # Assert mock_print_done.assert_called_once() assert constant.INFO_EXISTS_FALSE in mock_print_done.call_args[0][0] + @pytest.mark.parametrize("item_type,folder_name", [ + (ItemType.LAKEHOUSE, "Files"), + (ItemType.LAKEHOUSE, "Tables"), + (ItemType.WAREHOUSE, "Files"), + (ItemType.WAREHOUSE, "Tables"), + (ItemType.SEMANTIC_MODEL, "Tables"), + (ItemType.SPARK_JOB_DEFINITION, "Libs"), + (ItemType.SPARK_JOB_DEFINITION, "Main"), + (ItemType.KQL_DATABASE, "Tables"), + (ItemType.SQL_DATABASE, "Tables"), + (ItemType.SQL_DATABASE, "Files"), + (ItemType.MIRRORED_DATABASE, "Tables"), + (ItemType.MIRRORED_DATABASE, "Files"), + ]) def test_exists_onelake_doesnt_exist_success( - self, item_factory, mock_print_done, cli_executor + self, item_factory, mock_print_done, cli_executor, item_type, folder_name ): # Setup - lakehouse = item_factory(ItemType.LAKEHOUSE) + item = item_factory(item_type) # Reset mock mock_print_done.reset_mock() # Execute command cli_executor.exec_command( - f"exists {lakehouse.full_path}/Files/non_existent_file.txt" + f"exists {item.full_path}/{folder_name}/non_existent_file.txt" ) # Assert