diff --git a/.changes/unreleased/optimization-20260203-163440.yaml b/.changes/unreleased/optimization-20260203-163440.yaml new file mode 100644 index 00000000..2b0e3974 --- /dev/null +++ b/.changes/unreleased/optimization-20260203-163440.yaml @@ -0,0 +1,6 @@ +kind: optimization +body: Add visual divider between folders and items in `ls` command on workspaces with text output format +time: 2026-02-03T16:34:40.477661885Z +custom: + Author: ayeshurun + AuthorLink: https://github.com/ayeshurun diff --git a/src/fabric_cli/commands/fs/ls/fab_fs_ls_item.py b/src/fabric_cli/commands/fs/ls/fab_fs_ls_item.py index f2e1e19a..cb94d5a8 100644 --- a/src/fabric_cli/commands/fs/ls/fab_fs_ls_item.py +++ b/src/fabric_cli/commands/fs/ls/fab_fs_ls_item.py @@ -15,7 +15,15 @@ def exec(workspace: Workspace, args): show_details = bool(args.long) show_all = bool(args.all) ws_elements: list[Union[Item, Folder]] = utils_fs.get_ws_elements(workspace) - sorted_elements_dict = utils_fs.sort_ws_elements(ws_elements, show_details) + + folder_listing_enabled = ( + fab_state_config.get_config(fab_constant.FAB_FOLDER_LISTING_ENABLED) == "true" + ) + + if folder_listing_enabled: + sorted_elements_dict = utils_fs.sort_ws_elements_with_divider(ws_elements, show_details) + else: + sorted_elements_dict = utils_fs.sort_ws_elements(ws_elements, show_details) show_hidden = ( show_all or fab_state_config.get_config(fab_constant.FAB_SHOW_HIDDEN) == "true" @@ -25,6 +33,6 @@ def exec(workspace: Workspace, args): data=sorted_elements_dict, args=args, show_details=show_details, - columns=sorted_elements_dict[0].keys() if sorted_elements_dict else [], + columns=list(sorted_elements_dict[0].keys()) if sorted_elements_dict else [], hidden_data=VirtualItemContainerType if show_hidden else None, ) diff --git a/src/fabric_cli/utils/fab_cmd_fs_utils.py b/src/fabric_cli/utils/fab_cmd_fs_utils.py index 1e7252fb..37d15286 100644 --- a/src/fabric_cli/utils/fab_cmd_fs_utils.py +++ b/src/fabric_cli/utils/fab_cmd_fs_utils.py @@ -90,3 +90,27 @@ def sort_ws_elements(ws_elements: list[Union[Item, Folder]], show_details): {key: getattr(item, key) for key in columns if hasattr(item, key)} for item in sorted_elements ] + + +def sort_ws_elements_with_divider( + ws_elements: list[Union[Item, Folder]], show_details: bool +) -> list[dict]: + """Sort workspace elements: folders first, divider, then items.""" + if not ws_elements: + return [] + + folders = [el for el in ws_elements if isinstance(el, Folder)] + items = [el for el in ws_elements if isinstance(el, Item)] + columns = ["name", "id"] if show_details else ["name"] + + result = [] + has_both = bool(folders and items) + if folders: + if has_both: + result.append({key: ("[Folders]" if key == "name" else "") for key in columns}) + result.extend(sort_ws_elements(folders, show_details)) + if items: + if has_both: + result.append({key: ("[Items]" if key == "name" else "") for key in columns}) + result.extend(sort_ws_elements(items, show_details)) + return result diff --git a/tests/test_commands/recordings/test_commands/test_ls/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_ls/class_setup.yaml index 611cb45a..854bf78e 100644 --- a/tests/test_commands/recordings/test_commands/test_ls/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_ls/class_setup.yaml @@ -115,7 +115,7 @@ interactions: response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000004", "displayName": - "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": + "mocked_fabriccli_capacity_name", "sku": "F2", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -129,11 +129,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 12:01:42 GMT + - Thu, 05 Feb 2026 13:48:02 GMT Pragma: - no-cache RequestId: - - 523bf25d-7c17-488c-abf7-cb5143f4dcca + - af55f273-fdb0-41c9-bf85-607803366fb5 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -167,7 +167,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "8345c10e-7b97-44ce-8111-806b95aad368", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "ebe5f85c-0343-4508-9d2d-a8299cfea504", "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: - - '190' + - '187' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 12:01:51 GMT + - Thu, 05 Feb 2026 13:48:09 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/8345c10e-7b97-44ce-8111-806b95aad368 + - https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504 Pragma: - no-cache RequestId: - - 02e2ce7e-93b5-4e49-b0e0-a0b5b9705974 + - 831b42b8-59e6-45bf-96b0-7985c7063e11 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -219,7 +219,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "8345c10e-7b97-44ce-8111-806b95aad368", + "My workspace", "description": "", "type": "Personal"}, {"id": "ebe5f85c-0343-4508-9d2d-a8299cfea504", "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: - - '2937' + - '2901' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 12:05:04 GMT + - Thu, 05 Feb 2026 13:48:51 GMT Pragma: - no-cache RequestId: - - 020a5b97-907a-43e0-a88b-9ddd69410743 + - c3f8f00d-5ab2-48c3-813c-b155b598a7d0 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -266,108 +266,7 @@ interactions: User-Agent: - ms-fabric-cli/1.3.1 (ls; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/8345c10e-7b97-44ce-8111-806b95aad368/items - response: - body: - string: '{"value": [{"id": "b51a7eb5-9481-425a-8037-d6723709f8d4", "type": "SQLEndpoint", - "displayName": "fabcli000002dtdm", "description": "", "workspaceId": "8345c10e-7b97-44ce-8111-806b95aad368", - "folderId": "dae78c10-fe9c-4e10-a115-1845eb5b6ef9"}, {"id": "13372126-888e-466b-a7b9-8b635c6f8333", - "type": "Lakehouse", "displayName": "fabcli000002dtdm", "description": "", - "workspaceId": "8345c10e-7b97-44ce-8111-806b95aad368", "folderId": "dae78c10-fe9c-4e10-a115-1845eb5b6ef9"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '247' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 11 Feb 2026 12:05:05 GMT - Pragma: - - no-cache - RequestId: - - f9198688-df06-40f1-b2f1-83785cc3e9fd - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli/1.3.1 (ls; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/8345c10e-7b97-44ce-8111-806b95aad368/folders?recursive=True - response: - body: - string: '{"value": [{"id": "dae78c10-fe9c-4e10-a115-1845eb5b6ef9", "displayName": - "fabcli000001", "workspaceId": "8345c10e-7b97-44ce-8111-806b95aad368"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '143' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 11 Feb 2026 12:05:06 GMT - Pragma: - - no-cache - RequestId: - - 13c26542-f28d-43eb-a690-d66c8693a81c - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli/1.3.1 (ls; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/8345c10e-7b97-44ce-8111-806b95aad368/folders?recursive=True + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items response: body: string: '{"value": [{"id": "dae78c10-fe9c-4e10-a115-1845eb5b6ef9", "displayName": @@ -384,11 +283,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 12:05:06 GMT + - Thu, 05 Feb 2026 13:48:51 GMT Pragma: - no-cache RequestId: - - 9a08c101-6530-48a9-af1c-c0498ca10eb0 + - c4c73c19-cae6-4865-b3b9-86e803fdf296 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -418,7 +317,7 @@ interactions: User-Agent: - ms-fabric-cli/1.3.1 (ls; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/8345c10e-7b97-44ce-8111-806b95aad368 + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504 response: body: string: '' @@ -434,11 +333,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 11 Feb 2026 12:05:08 GMT + - Thu, 05 Feb 2026 13:48:51 GMT Pragma: - no-cache RequestId: - - 4d32ff8d-8b20-43ef-9974-7c3a91fcc908 + - 7af2a487-ebea-4831-a586-ab5259143e49 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_with_folders_and_items_divider.yaml b/tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_with_folders_and_items_divider.yaml new file mode 100644 index 00000000..688d9ec1 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_ls/test_ls_workspace_with_folders_and_items_divider.yaml @@ -0,0 +1,1828 @@ +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": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:13:46 GMT + Pragma: + - no-cache + RequestId: + - 3b687fd7-e2de-4a5a-b411-555a4911c345 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders?recursive=True + 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: + - Sun, 01 Mar 2026 14:13:46 GMT + Pragma: + - no-cache + RequestId: + - fa7f09a9-a002-4765-b3a5-e83ac344ca73 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders?recursive=True + 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: + - Sun, 01 Mar 2026 14:13:46 GMT + Pragma: + - no-cache + RequestId: + - e99854f1-50e0-4952-8be2-7c8f4314c0f9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '68' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders + response: + body: + string: '{"id": "1050d62e-4158-413c-8431-b354073ff0f8", "displayName": "fabcli000001", + "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:13:46 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders/1050d62e-4158-413c-8431-b354073ff0f8 + Pragma: + - no-cache + RequestId: + - 1c747e04-1926-46f4-9a61-8bda27756696 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:13:47 GMT + Pragma: + - no-cache + RequestId: + - 69ed2e27-68b4-42c3-bb1c-bedca1f7b1c2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders?recursive=True + response: + body: + string: '{"value": [{"id": "1050d62e-4158-413c-8431-b354073ff0f8", "displayName": + "fabcli000001", "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:13:48 GMT + Pragma: + - no-cache + RequestId: + - d92fed3e-44e3-47ab-8023-9053648f7068 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders?recursive=True + response: + body: + string: '{"value": [{"id": "1050d62e-4158-413c-8431-b354073ff0f8", "displayName": + "fabcli000001", "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:13:48 GMT + Pragma: + - no-cache + RequestId: + - 45bfbecd-df8f-4473-9660-b861098e5bc5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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": "fabcli000002"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '68' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders + response: + body: + string: '{"id": "ebbe3cf7-8434-446a-9cbb-e62972801aec", "displayName": "fabcli000002", + "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '133' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:13:49 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders/ebbe3cf7-8434-446a-9cbb-e62972801aec + Pragma: + - no-cache + RequestId: + - e92cef28-61d3-4e27-a820-339fdd979478 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:13:50 GMT + Pragma: + - no-cache + RequestId: + - 29451baf-4bdb-4834-8e6a-785e1b5ece01 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/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: + - Sun, 01 Mar 2026 14:13:50 GMT + Pragma: + - no-cache + RequestId: + - e74db123-b7c7-4b9d-9306-080b87d6ac07 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/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: + - Sun, 01 Mar 2026 14:13:50 GMT + Pragma: + - no-cache + RequestId: + - 19c19c0b-92e9-4f0d-912c-4e0fc9fc72e8 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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": "fabcli000003", "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/cc971f75-db59-4e10-8ca3-451e5d530493/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: + - Sun, 01 Mar 2026 14:13:52 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/226a08c2-985f-4bbc-9e9b-11155c12bb29 + Pragma: + - no-cache + RequestId: + - 4472ede5-5ba0-4dd8-a9b2-d408c9f430eb + 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: + - 226a08c2-985f-4bbc-9e9b-11155c12bb29 + 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/226a08c2-985f-4bbc-9e9b-11155c12bb29 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-03-01T14:13:52.2112823", + "lastUpdatedTimeUtc": "2026-03-01T14:13:53.4398675", "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: + - Sun, 01 Mar 2026 14:14:13 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/226a08c2-985f-4bbc-9e9b-11155c12bb29/result + Pragma: + - no-cache + RequestId: + - 5e6b6bf0-839d-4e1e-aea7-e565f12e6f23 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 226a08c2-985f-4bbc-9e9b-11155c12bb29 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/226a08c2-985f-4bbc-9e9b-11155c12bb29/result + response: + body: + string: '{"id": "65fc41e7-db37-4b86-8ca2-34e2b1aad751", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sun, 01 Mar 2026 14:14:14 GMT + Pragma: + - no-cache + RequestId: + - 8e0ee33c-c9bf-4aa9-b320-255f6dd39fc1 + 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": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:14 GMT + Pragma: + - no-cache + RequestId: + - 60225ab8-6738-4cb0-a8c9-df8b50483816 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/items + response: + body: + string: '{"value": [{"id": "65fc41e7-db37-4b86-8ca2-34e2b1aad751", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '176' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:15 GMT + Pragma: + - no-cache + RequestId: + - 7c1b670e-1f3f-4537-8922-33e7e7688ed7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/items + response: + body: + string: '{"value": [{"id": "65fc41e7-db37-4b86-8ca2-34e2b1aad751", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '176' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:15 GMT + Pragma: + - no-cache + RequestId: + - 1e60d142-0833-45f6-be43-b3d6081122ab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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": "fabcli000004", "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/cc971f75-db59-4e10-8ca3-451e5d530493/lakehouses + response: + body: + string: '{"id": "a71ef713-82f1-4cc7-85ce-9b34661ca066", "type": "Lakehouse", + "displayName": "fabcli000004", "description": "Created by fab", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}' + 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: + - Sun, 01 Mar 2026 14:14:19 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 914ea96e-7353-4b46-9f1a-7f879ae45a01 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:19 GMT + Pragma: + - no-cache + RequestId: + - 12a7e1b8-d5e4-47c9-a253-0f4e56281cee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/items + response: + body: + string: '{"value": [{"id": "65fc41e7-db37-4b86-8ca2-34e2b1aad751", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}, {"id": "a71ef713-82f1-4cc7-85ce-9b34661ca066", + "type": "Lakehouse", "displayName": "fabcli000004", "description": "Created + by fab", "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '229' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:20 GMT + Pragma: + - no-cache + RequestId: + - 4cfa5bf7-504e-42e6-b716-4ab5e2c20cbf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders?recursive=True + response: + body: + string: '{"value": [{"id": "1050d62e-4158-413c-8431-b354073ff0f8", "displayName": + "fabcli000001", "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}, {"id": + "ebbe3cf7-8434-446a-9cbb-e62972801aec", "displayName": "fabcli000002", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '188' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:20 GMT + Pragma: + - no-cache + RequestId: + - 4fdd133b-e3d5-4233-b087-4d2cb99f474f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:21 GMT + Pragma: + - no-cache + RequestId: + - a8df6901-742e-4ee3-b033-675f0834fc58 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/items + response: + body: + string: '{"value": [{"id": "65fc41e7-db37-4b86-8ca2-34e2b1aad751", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}, {"id": "a71ef713-82f1-4cc7-85ce-9b34661ca066", + "type": "Lakehouse", "displayName": "fabcli000004", "description": "Created + by fab", "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '229' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:21 GMT + Pragma: + - no-cache + RequestId: + - 431c7f16-4510-4b35-89fa-99aaabd81b76 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders?recursive=True + response: + body: + string: '{"value": [{"id": "1050d62e-4158-413c-8431-b354073ff0f8", "displayName": + "fabcli000001", "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}, {"id": + "ebbe3cf7-8434-446a-9cbb-e62972801aec", "displayName": "fabcli000002", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '188' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:22 GMT + Pragma: + - no-cache + RequestId: + - 2829ceff-61e8-4dfd-a72f-4b4e3bb7761a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:23 GMT + Pragma: + - no-cache + RequestId: + - dd04e0af-6b9d-4ea1-9e48-c0d10be90b9a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/items + response: + body: + string: '{"value": [{"id": "65fc41e7-db37-4b86-8ca2-34e2b1aad751", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}, {"id": "a71ef713-82f1-4cc7-85ce-9b34661ca066", + "type": "Lakehouse", "displayName": "fabcli000004", "description": "Created + by fab", "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '229' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:23 GMT + Pragma: + - no-cache + RequestId: + - e52fada8-0d28-4b70-b7ea-4ac96d2900ee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/cc971f75-db59-4e10-8ca3-451e5d530493/items/a71ef713-82f1-4cc7-85ce-9b34661ca066 + 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: + - Sun, 01 Mar 2026 14:14:24 GMT + Pragma: + - no-cache + RequestId: + - 53c4bc34-2dd8-4f83-ab05-b4aba52edf5b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:23 GMT + Pragma: + - no-cache + RequestId: + - a4fff154-abfd-47fa-818f-bdc22fed0c19 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/items + response: + body: + string: '{"value": [{"id": "65fc41e7-db37-4b86-8ca2-34e2b1aad751", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '176' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:24 GMT + Pragma: + - no-cache + RequestId: + - 03a662fa-0064-49e5-980c-9d2a5b9b5de7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/cc971f75-db59-4e10-8ca3-451e5d530493/items/65fc41e7-db37-4b86-8ca2-34e2b1aad751 + 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: + - Sun, 01 Mar 2026 14:14:25 GMT + Pragma: + - no-cache + RequestId: + - f0e4886f-55ee-4e95-8104-3babc1696a29 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:25 GMT + Pragma: + - no-cache + RequestId: + - dc3cbd8a-ba24-4427-a3a5-fe17ccf6d57e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders?recursive=True + response: + body: + string: '{"value": [{"id": "1050d62e-4158-413c-8431-b354073ff0f8", "displayName": + "fabcli000001", "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}, {"id": + "ebbe3cf7-8434-446a-9cbb-e62972801aec", "displayName": "fabcli000002", "workspaceId": + "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '188' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:25 GMT + Pragma: + - no-cache + RequestId: + - 302a7cfa-adc7-45a8-9fe6-80b6f1674ac6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/cc971f75-db59-4e10-8ca3-451e5d530493/folders/ebbe3cf7-8434-446a-9cbb-e62972801aec + 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: + - Sun, 01 Mar 2026 14:14:26 GMT + Pragma: + - no-cache + RequestId: + - 5384e713-deaa-458b-94a6-b0e7d072a39f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "cc971f75-db59-4e10-8ca3-451e5d530493", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3360' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:27 GMT + Pragma: + - no-cache + RequestId: + - 68ac5dc0-c5db-4c1a-93d9-ea58cc638fc6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/folders?recursive=True + response: + body: + string: '{"value": [{"id": "1050d62e-4158-413c-8431-b354073ff0f8", "displayName": + "fabcli000001", "workspaceId": "cc971f75-db59-4e10-8ca3-451e5d530493"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '143' + Content-Type: + - application/json; charset=utf-8 + Date: + - Sun, 01 Mar 2026 14:14:27 GMT + Pragma: + - no-cache + RequestId: + - 238f75ef-96a9-4643-be9f-0d13b8e8585f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/cc971f75-db59-4e10-8ca3-451e5d530493/folders/1050d62e-4158-413c-8431-b354073ff0f8 + 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: + - Sun, 01 Mar 2026 14:14:28 GMT + Pragma: + - no-cache + RequestId: + - d03af87b-d9b6-4e88-bb02-672cfdc3d2f0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_set/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_set/class_setup.yaml index 573ce31e..e35d12e1 100644 --- a/tests/test_commands/recordings/test_commands/test_set/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_set/class_setup.yaml @@ -26,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2906' + - '3325' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 08:03:55 GMT + - Sun, 01 Mar 2026 14:13:31 GMT Pragma: - no-cache RequestId: - - 78a45eaa-df2e-42b9-a152-b016c949c59a + - ecd72f98-90e1-4591-ac13-2506ffa31f53 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -75,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2906' + - '3325' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 08:03:55 GMT + - Sun, 01 Mar 2026 14:13:31 GMT Pragma: - no-cache RequestId: - - ebf784e9-a2f3-43d8-97e4-6642f6f3a893 + - cfbababf-e0d0-4c9c-b47a-e2d383858090 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -125,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '424' + - '429' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 08:03:59 GMT + - Sun, 01 Mar 2026 14:13:37 GMT Pragma: - no-cache RequestId: - - 2c18461f-f08c-4b2f-85d7-5a701e9aa873 + - cb10dc80-9ade-4017-bc0c-bc11c5150755 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -167,7 +167,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "ebc4005f-d298-4926-9fbf-3f99130d4b00", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "cc971f75-db59-4e10-8ca3-451e5d530493", "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: - - '187' + - '188' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 08:04:07 GMT + - Sun, 01 Mar 2026 14:13:44 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/ebc4005f-d298-4926-9fbf-3f99130d4b00 + - https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493 Pragma: - no-cache RequestId: - - 61609a16-c311-4a31-8fbd-90a178d2a0a5 + - a00ca072-3c53-4831-aa17-c69178a49be0 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -213,13 +213,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.3.1 (set; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (ls; 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": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "ebc4005f-d298-4926-9fbf-3f99130d4b00", + "My workspace", "description": "", "type": "Personal"}, {"id": "cc971f75-db59-4e10-8ca3-451e5d530493", "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: - - '2939' + - '3360' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 08:05:22 GMT + - Sun, 01 Mar 2026 14:14:28 GMT Pragma: - no-cache RequestId: - - fa60c476-11cc-453d-82c6-d7578c1e4125 + - 1421bed5-f8a4-4992-98c7-9ebdebf9b971 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -264,9 +264,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.3.1 (set; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (ls; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/ebc4005f-d298-4926-9fbf-3f99130d4b00/items + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493/items response: body: string: '{"value": []}' @@ -282,11 +282,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 11 Feb 2026 08:05:23 GMT + - Sun, 01 Mar 2026 14:14:28 GMT Pragma: - no-cache RequestId: - - dc2e7fea-cb38-4449-b800-482ceefb365e + - 2b32e874-8afc-4b78-bb77-c7120bc27a41 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -314,9 +314,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.3.1 (set; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (ls; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/ebc4005f-d298-4926-9fbf-3f99130d4b00 + uri: https://api.fabric.microsoft.com/v1/workspaces/cc971f75-db59-4e10-8ca3-451e5d530493 response: body: string: '' @@ -332,11 +332,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 11 Feb 2026 08:05:24 GMT + - Sun, 01 Mar 2026 14:14:28 GMT Pragma: - no-cache RequestId: - - 0a5e091c-d126-4f21-b562-822331f90efe + - eb7a4525-2886-4bb6-8062-c1a49e32a41c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_set/test_virtual_item_not_supported_failure.yaml b/tests/test_commands/recordings/test_commands/test_set/test_virtual_item_not_supported_failure.yaml index 08d0ec22..7230bacf 100644 --- a/tests/test_commands/recordings/test_commands/test_set/test_virtual_item_not_supported_failure.yaml +++ b/tests/test_commands/recordings/test_commands/test_set/test_virtual_item_not_supported_failure.yaml @@ -17,7 +17,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "81065bd8-e334-4715-b170-dedb4cd514e6", + "My workspace", "description": "", "type": "Personal"}, {"id": "b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -28,15 +28,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2091' + - '2804' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:40 GMT + - Thu, 05 Feb 2026 13:58:00 GMT Pragma: - no-cache RequestId: - - 958715d8-9506-4f0e-aa9c-07f751db655c + - f140b9d9-3a4b-4e1d-b807-2dda32be8d0e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -64,10 +64,10 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/81065bd8-e334-4715-b170-dedb4cd514e6 + uri: https://api.fabric.microsoft.com/v1/workspaces/b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4 response: body: - string: '{"id": "81065bd8-e334-4715-b170-dedb4cd514e6", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": @@ -84,11 +84,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:39 GMT + - Thu, 05 Feb 2026 13:58:00 GMT Pragma: - no-cache RequestId: - - 37fc74e3-5297-4f43-8c05-3c28f78c21eb + - ac328cdd-8b2c-4f84-938b-129c9bb29df7 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -116,10 +116,10 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/81065bd8-e334-4715-b170-dedb4cd514e6 + uri: https://api.fabric.microsoft.com/v1/workspaces/b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4 response: body: - string: '{"id": "81065bd8-e334-4715-b170-dedb4cd514e6", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": @@ -136,11 +136,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:40 GMT + - Thu, 05 Feb 2026 13:58:00 GMT Pragma: - no-cache RequestId: - - 188c9d75-631e-4bbd-9220-2caa2b009646 + - f902ebea-7c21-43ac-8ab3-80c896546dd1 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -170,7 +170,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/81065bd8-e334-4715-b170-dedb4cd514e6/provisionIdentity + uri: https://api.fabric.microsoft.com/v1/workspaces/b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4/provisionIdentity response: body: string: 'null' @@ -186,13 +186,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:41 GMT + - Thu, 05 Feb 2026 13:58:01 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/dbb74b3b-99c5-4c1c-ae10-91ad32a59afe + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1a645f64-a703-4592-a11f-a83bec8754a1 Pragma: - no-cache RequestId: - - f47cd8be-5ec0-48e7-9d54-1c928deddb7a + - 8805d80b-e4ea-4ef3-884b-2a45bd5b06f7 Retry-After: - '5' Strict-Transport-Security: @@ -206,7 +206,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - dbb74b3b-99c5-4c1c-ae10-91ad32a59afe + - 1a645f64-a703-4592-a11f-a83bec8754a1 status: code: 202 message: Accepted @@ -224,11 +224,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/dbb74b3b-99c5-4c1c-ae10-91ad32a59afe + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1a645f64-a703-4592-a11f-a83bec8754a1 response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2025-12-31T14:38:41.4469362", - "lastUpdatedTimeUtc": "2025-12-31T14:38:42.7752692", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T13:58:01.8065357", + "lastUpdatedTimeUtc": "2026-02-05T13:58:03.4950688", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -238,17 +238,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '132' + - '131' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:46 GMT + - Thu, 05 Feb 2026 13:58:07 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/dbb74b3b-99c5-4c1c-ae10-91ad32a59afe/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1a645f64-a703-4592-a11f-a83bec8754a1/result Pragma: - no-cache RequestId: - - 0cdbb703-7c55-4555-96bb-c5792ab6dd27 + - f738a37c-a3af-44a9-9021-c479f45713f0 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -256,7 +256,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - dbb74b3b-99c5-4c1c-ae10-91ad32a59afe + - 1a645f64-a703-4592-a11f-a83bec8754a1 status: code: 200 message: OK @@ -274,11 +274,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/dbb74b3b-99c5-4c1c-ae10-91ad32a59afe/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/1a645f64-a703-4592-a11f-a83bec8754a1/result response: body: - string: '{"applicationId": "c7d3c782-72a2-47e1-ba87-c3039090f603", "servicePrincipalId": - "df83e5ef-fcd6-4dbf-b773-53ad2542cf15"}' + string: '{"applicationId": "206abd67-3476-44c4-a890-7f29d2f3c39f", "servicePrincipalId": + "39965fec-aedb-426f-a8b5-b9c03725abdc"}' headers: Access-Control-Expose-Headers: - RequestId @@ -289,11 +289,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 31 Dec 2025 14:38:47 GMT + - Thu, 05 Feb 2026 13:58:07 GMT Pragma: - no-cache RequestId: - - a73cdc1f-3a31-4894-9a5e-e1f61c497247 + - a4979f87-e750-4c29-9e18-cd7512ba9fd8 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -323,7 +323,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "81065bd8-e334-4715-b170-dedb4cd514e6", + "My workspace", "description": "", "type": "Personal"}, {"id": "b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -334,15 +334,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2091' + - '2804' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:47 GMT + - Thu, 05 Feb 2026 13:58:07 GMT Pragma: - no-cache RequestId: - - cb3d6c4b-926f-4214-9727-025c0d3c9bfb + - 63417359-8e10-4137-bacb-f00ec725ca93 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -370,15 +370,15 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/81065bd8-e334-4715-b170-dedb4cd514e6 + uri: https://api.fabric.microsoft.com/v1/workspaces/b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4 response: body: - string: '{"id": "81065bd8-e334-4715-b170-dedb4cd514e6", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": - "Completed", "workspaceIdentity": {"applicationId": "c7d3c782-72a2-47e1-ba87-c3039090f603", - "servicePrincipalId": "df83e5ef-fcd6-4dbf-b773-53ad2542cf15"}}' + "Completed", "workspaceIdentity": {"applicationId": "206abd67-3476-44c4-a890-7f29d2f3c39f", + "servicePrincipalId": "39965fec-aedb-426f-a8b5-b9c03725abdc"}}' headers: Access-Control-Expose-Headers: - RequestId @@ -387,15 +387,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '382' + - '380' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:48 GMT + - Thu, 05 Feb 2026 13:58:08 GMT Pragma: - no-cache RequestId: - - 2454b4eb-c260-4e74-abb2-81538009b9d9 + - c8a14b48-7423-480c-ad53-48d50762eca7 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -427,7 +427,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "81065bd8-e334-4715-b170-dedb4cd514e6", + "My workspace", "description": "", "type": "Personal"}, {"id": "b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -438,15 +438,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2091' + - '2804' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:49 GMT + - Thu, 05 Feb 2026 13:58:08 GMT Pragma: - no-cache RequestId: - - 0da50c39-6f2e-401f-a7c4-848adf1e1b0f + - 737bf0d2-1855-40e0-999c-af383089d308 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -474,15 +474,15 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/81065bd8-e334-4715-b170-dedb4cd514e6 + uri: https://api.fabric.microsoft.com/v1/workspaces/b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4 response: body: - string: '{"id": "81065bd8-e334-4715-b170-dedb4cd514e6", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US", "oneLakeEndpoints": {"blobEndpoint": "https://centralus-onelake.blob.fabric.microsoft.com", "dfsEndpoint": "https://centralus-onelake.dfs.fabric.microsoft.com"}, "capacityAssignmentProgress": - "Completed", "workspaceIdentity": {"applicationId": "c7d3c782-72a2-47e1-ba87-c3039090f603", - "servicePrincipalId": "df83e5ef-fcd6-4dbf-b773-53ad2542cf15"}}' + "Completed", "workspaceIdentity": {"applicationId": "206abd67-3476-44c4-a890-7f29d2f3c39f", + "servicePrincipalId": "39965fec-aedb-426f-a8b5-b9c03725abdc"}}' headers: Access-Control-Expose-Headers: - RequestId @@ -491,15 +491,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '382' + - '380' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:49 GMT + - Thu, 05 Feb 2026 13:58:09 GMT Pragma: - no-cache RequestId: - - 4a613646-d7df-4702-aebc-41eabae7ab35 + - 7d30056b-c527-44b4-aabc-078b2dd2e214 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -529,7 +529,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/81065bd8-e334-4715-b170-dedb4cd514e6/deprovisionIdentity + uri: https://api.fabric.microsoft.com/v1/workspaces/b0b9a4a2-1b0c-43ff-be15-703ed4d8a8b4/deprovisionIdentity response: body: string: 'null' @@ -545,13 +545,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:49 GMT + - Thu, 05 Feb 2026 13:58:09 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/7eb48be7-3e2c-4d09-8196-8ff0ca24ffee + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/000791d4-78dc-4732-936a-f8214972ac44 Pragma: - no-cache RequestId: - - 32c27277-9881-4427-aacd-f12a8d67edf4 + - 22e663f0-f803-40ff-8c82-2ada6bd78136 Retry-After: - '5' Strict-Transport-Security: @@ -565,7 +565,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - 7eb48be7-3e2c-4d09-8196-8ff0ca24ffee + - 000791d4-78dc-4732-936a-f8214972ac44 status: code: 202 message: Accepted @@ -583,11 +583,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/7eb48be7-3e2c-4d09-8196-8ff0ca24ffee + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/000791d4-78dc-4732-936a-f8214972ac44 response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2025-12-31T14:38:49.5878458", - "lastUpdatedTimeUtc": "2025-12-31T14:38:50.5722903", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T13:58:10.1867422", + "lastUpdatedTimeUtc": "2026-02-05T13:58:11.1401763", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -597,15 +597,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '131' + - '130' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 31 Dec 2025 14:38:54 GMT + - Thu, 05 Feb 2026 13:58:15 GMT Pragma: - no-cache RequestId: - - fc7e0ed7-709f-4541-82b8-82e23b281993 + - ff11ddcd-8d94-4ae1-8f9c-c6e003f18122 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/test_ls.py b/tests/test_commands/test_ls.py index 45cd22a3..9002191b 100644 --- a/tests/test_commands/test_ls.py +++ b/tests/test_commands/test_ls.py @@ -18,15 +18,15 @@ ) from fabric_cli.errors import ErrorMessages from tests.test_commands.commands_parser import CLIExecutor -from tests.test_commands.data.static_test_data import StaticTestData -from tests.test_commands.utils import cli_path_join from tests.test_commands.conftest import ( basic_item_parametrize, - item_type_paramerter, command_ls_parameters, + item_type_paramerter, + ls_folder_content_success_params, ls_item_folders_success_params, - ls_folder_content_success_params ) +from tests.test_commands.data.static_test_data import StaticTestData +from tests.test_commands.utils import cli_path_join class TestLS: @@ -218,7 +218,7 @@ def test_ls_query_filter_success( item3 = item_factory(item_type) # Test 1: Basic JMESPath syntax - cli_executor.exec_command(f'ls {workspace.full_path} -q [].name') + cli_executor.exec_command(f"ls {workspace.full_path} -q [].name") mock_questionary_print.assert_called() _assert_strings_in_mock_calls( [item1.display_name, item2.display_name, item3.display_name], @@ -243,13 +243,13 @@ def test_ls_query_filter_success( ["displayName", "itemID"], True, mock_questionary_print.mock_calls, - require_all_in_same_args=True + require_all_in_same_args=True, ) mock_questionary_print.reset_mock() # Test 3: JMESPath list syntax - here there are not keys so will be printed as list of arrays - cli_executor.exec_command(f'ls {workspace.full_path} -q [].[name]') + cli_executor.exec_command(f"ls {workspace.full_path} -q [].[name]") _assert_strings_in_mock_calls( [f"['{item1.name}']", f"['{item2.name}']", f"['{item3.name}']"], True,