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/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 026a334d..fbaa15b3 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -4,12 +4,12 @@ on: workflow_dispatch: inputs: version: - description: "The version to release (e.g., v1.2.0)" + description: 'The version to release (e.g., v1.2.0)' required: true commit_sha: - description: "Optional: Commit SHA to create the tag on. If not provided, the tag will be created on the latest commit of the current branch (HEAD)" + description: 'Optional: Commit SHA to create the tag on. If not provided, the tag will be created on the latest commit of the current branch (HEAD)' required: false - default: "" + default: '' jobs: create-release: @@ -20,7 +20,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 0 # Required to access full commit history for validation + fetch-depth: 0 # Required to access full commit history for validation - name: Display workflow information run: | @@ -65,22 +65,22 @@ jobs: run: | VERSION="${{ github.event.inputs.version }}" COMMIT_SHA="${{ github.event.inputs.commit_sha }}" - + # Use provided commit SHA or default to HEAD if [ -n "$COMMIT_SHA" ]; then TARGET_COMMIT="$COMMIT_SHA" else TARGET_COMMIT="HEAD" fi - + echo "tag_name=$VERSION" >> $GITHUB_OUTPUT echo "changelog_file_path=.changes/${VERSION}.md" >> $GITHUB_OUTPUT echo "target_commit=$TARGET_COMMIT" >> $GITHUB_OUTPUT - + # Get the actual commit SHA for display ACTUAL_SHA=$(git rev-parse "$TARGET_COMMIT") echo "actual_sha=$ACTUAL_SHA" >> $GITHUB_OUTPUT - + echo "✅ Release variables set:" echo " - Tag name: $VERSION" echo " - Target commit: $ACTUAL_SHA" 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..11393b67 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 @@ -10,12 +10,68 @@ from fabric_cli.utils import fab_cmd_fs_utils as utils_fs from fabric_cli.utils import fab_cmd_ls_utils as utils_ls +# Divider used to separate folders and items in workspace listings +_DIVIDER = "------------------------------" + + +def _sort_ws_elements_with_seperation( + ws_elements: list[Union[Item, Folder]], show_details: bool +) -> list[dict]: + """ + Groups elements by type (Folders first, then Items), sorts each group using sort_ws_elements, + and inserts a divider between non-empty groups. + + Args: + ws_elements: List of workspace elements (Items and Folders) + show_details: Whether to include detailed columns + + Returns: + list: Single list with folders first, divider, then items + """ + if not ws_elements: + return [] + + result = [] + first_group = True + type_order = [Folder, Item] + + for typ in type_order: + group = [el for el in ws_elements if isinstance(el, typ)] + if group: + group_dicts = utils_fs.sort_ws_elements(group, show_details) + if not first_group: + divider = {"name": _DIVIDER} + if show_details: + divider["id"] = "" + result.append(divider) + result.extend(group_dicts) + first_group = False + + return result + 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) + + # Check if folder listing is enabled + folder_listing_enabled = ( + fab_state_config.get_config(fab_constant.FAB_FOLDER_LISTING_ENABLED) == "true" + ) + + # Get output format from args or config + output_format = getattr(args, "output_format", None) or fab_state_config.get_config( + fab_constant.FAB_OUTPUT_FORMAT + ) + + # Use separation if folder listing is enabled, output is text format, and --long is not provided + if folder_listing_enabled and output_format == "text" and not show_details: + sorted_elements_dict = _sort_ws_elements_with_seperation( + 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" 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 d7e759d0..3d2ee1e7 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 @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.1.0 (None; Linux; x86_64; 6.6.87.2-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: @@ -26,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '1517' + - '2096' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:28:59 GMT + - Tue, 06 Jan 2026 13:09:57 GMT Pragma: - no-cache RequestId: - - a1ca655d-adf4-4a7a-8d2c-2dc3ab03e53b + - 0ec0d210-30ae-4090-85e2-325c932f8c3a Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -60,7 +60,7 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.1.0 (None; Linux; x86_64; 6.6.87.2-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: @@ -75,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '1517' + - '2096' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:29:00 GMT + - Tue, 06 Jan 2026 13:09:57 GMT Pragma: - no-cache RequestId: - - 4fb405d9-466a-4e9d-81f3-a61091331c8a + - b8741740-c7ed-4a13-9a48-3e7e9433efa2 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -109,13 +109,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.1.0 (None; Linux; x86_64; 6.6.87.2-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": "F2", "region": "Central US", "state": + "mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -125,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '271' + - '425' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:29:05 GMT + - Tue, 06 Jan 2026 13:10:01 GMT Pragma: - no-cache RequestId: - - 9a962d92-07ed-4680-97dc-c07909f25e22 + - 47895aad-73fd-49c2-b5f1-6242b5c9b3d8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -162,12 +162,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.1.0 (None; Linux; x86_64; 6.6.87.2-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": "7b82ecee-ed54-4d87-84dd-07511c5f5ad2", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "b86e9b69-16a9-4078-aff8-922ba052431e", "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: - - '189' + - '188' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:29:14 GMT + - Tue, 06 Jan 2026 13:10:08 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/7b82ecee-ed54-4d87-84dd-07511c5f5ad2 + - https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e Pragma: - no-cache RequestId: - - a9920ffb-8339-43a8-8f5b-ab313cafb507 + - 4611b486-ee97-401f-bc7f-d686e34ee3b1 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.1.0 (None; 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": "7b82ecee-ed54-4d87-84dd-07511c5f5ad2", + "My workspace", "description": "", "type": "Personal"}, {"id": "b86e9b69-16a9-4078-aff8-922ba052431e", "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: - - '1551' + - '2130' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:29:43 GMT + - Tue, 06 Jan 2026 13:10:51 GMT Pragma: - no-cache RequestId: - - 760e6315-8597-44fc-807f-62840e999e08 + - 8a1402e0-38c2-4bb2-89d0-eb8582dbd688 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -264,14 +264,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.1.0 (None; 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/7b82ecee-ed54-4d87-84dd-07511c5f5ad2/items + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/items response: body: - string: '{"value": [{"id": "2d69f214-7721-41c3-a595-1ac4960a7215", "type": "Notebook", - "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "7b82ecee-ed54-4d87-84dd-07511c5f5ad2"}]}' + string: '{"value": []}' headers: Access-Control-Expose-Headers: - RequestId @@ -280,15 +278,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '176' + - '32' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:29:44 GMT + - Tue, 06 Jan 2026 13:10:51 GMT Pragma: - no-cache RequestId: - - 8f711d74-2ab1-4d92-9c00-f90f31843fe1 + - 60a90680-1baf-41a3-b15e-9be0bad4932d Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -316,9 +314,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.1.0 (None; 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/7b82ecee-ed54-4d87-84dd-07511c5f5ad2 + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e response: body: string: '' @@ -334,11 +332,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Sun, 16 Nov 2025 13:29:45 GMT + - Tue, 06 Jan 2026 13:10:51 GMT Pragma: - no-cache RequestId: - - 87dce47d-17c3-48d7-8046-89b2600e75b1 + - 4a7ae808-9baa-4b36-9657-a1ea8f286ae3 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..1bd889e8 --- /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": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:09 GMT + Pragma: + - no-cache + RequestId: + - dc956bd6-9bf7-4afb-b80c-555fc38cc8b2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/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: + - Tue, 06 Jan 2026 13:10:09 GMT + Pragma: + - no-cache + RequestId: + - cfc2c0b3-1649-420f-bb46-c60dd540c061 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/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: + - Tue, 06 Jan 2026 13:10:10 GMT + Pragma: + - no-cache + RequestId: + - 6a9c9dce-09b2-4e55-b766-80daad5fa69e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b86e9b69-16a9-4078-aff8-922ba052431e/folders + response: + body: + string: '{"id": "73215121-da61-4ea8-9be7-ab29ebcb3b52", "displayName": "fabcli000001", + "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:11 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/folders/73215121-da61-4ea8-9be7-ab29ebcb3b52 + Pragma: + - no-cache + RequestId: + - 733b50d1-06ff-4e35-b9e0-568cb7c7cd31 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:11 GMT + Pragma: + - no-cache + RequestId: + - 1a19c016-9c53-4fa2-9ab0-7fbf99cd4286 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/folders?recursive=True + response: + body: + string: '{"value": [{"id": "73215121-da61-4ea8-9be7-ab29ebcb3b52", "displayName": + "fabcli000001", "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '144' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:12 GMT + Pragma: + - no-cache + RequestId: + - 8db3d7e9-8225-45da-9d64-eb96f189273c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/folders?recursive=True + response: + body: + string: '{"value": [{"id": "73215121-da61-4ea8-9be7-ab29ebcb3b52", "displayName": + "fabcli000001", "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '144' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:12 GMT + Pragma: + - no-cache + RequestId: + - c2af5dc2-4e4e-4580-ad89-6d407c86c14f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b86e9b69-16a9-4078-aff8-922ba052431e/folders + response: + body: + string: '{"id": "109bfca1-736b-4860-8dcb-51254b0b43a0", "displayName": "fabcli000002", + "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}' + 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: + - Tue, 06 Jan 2026 13:10:12 GMT + Location: + - https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/folders/109bfca1-736b-4860-8dcb-51254b0b43a0 + Pragma: + - no-cache + RequestId: + - 9f10c962-e15d-422f-b0af-0bb18a5a44bb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:13 GMT + Pragma: + - no-cache + RequestId: + - d1251b37-72fd-4326-a8e4-59515e361341 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/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, 06 Jan 2026 13:10:14 GMT + Pragma: + - no-cache + RequestId: + - 593ceb8a-6605-4b92-8790-a2875a943e80 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/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, 06 Jan 2026 13:10:14 GMT + Pragma: + - no-cache + RequestId: + - 303aa9f6-4073-4624-a73d-93b385e0480f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b86e9b69-16a9-4078-aff8-922ba052431e/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, 06 Jan 2026 13:10:16 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a5db9047-3105-4316-a76c-b1e308a775b7 + Pragma: + - no-cache + RequestId: + - ca2727f1-2a56-465a-adb6-68669fff2953 + 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: + - a5db9047-3105-4316-a76c-b1e308a775b7 + 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/a5db9047-3105-4316-a76c-b1e308a775b7 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-06T13:10:15.6422085", + "lastUpdatedTimeUtc": "2026-01-06T13:10:17.4077736", "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, 06 Jan 2026 13:10:36 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a5db9047-3105-4316-a76c-b1e308a775b7/result + Pragma: + - no-cache + RequestId: + - 8f5cd8c3-98a0-48e8-bfe9-ed7ba9dc6db6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a5db9047-3105-4316-a76c-b1e308a775b7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/a5db9047-3105-4316-a76c-b1e308a775b7/result + response: + body: + string: '{"id": "b4f51569-39f9-4fe4-bf61-25acf8c12a08", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Tue, 06 Jan 2026 13:10:37 GMT + Pragma: + - no-cache + RequestId: + - 0581a749-f2ea-40bd-9464-6c0abb4d8ef0 + 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": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:37 GMT + Pragma: + - no-cache + RequestId: + - 913023f2-4bde-4700-8fbf-5be0d03b8b47 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/items + response: + body: + string: '{"value": [{"id": "b4f51569-39f9-4fe4-bf61-25acf8c12a08", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + 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, 06 Jan 2026 13:10:38 GMT + Pragma: + - no-cache + RequestId: + - a8177d62-369e-4ec7-908a-0d01bc2656cf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/items + response: + body: + string: '{"value": [{"id": "b4f51569-39f9-4fe4-bf61-25acf8c12a08", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + 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, 06 Jan 2026 13:10:38 GMT + Pragma: + - no-cache + RequestId: + - 484dae85-3bcf-4b95-8584-3b2490dd8bff + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - 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/b86e9b69-16a9-4078-aff8-922ba052431e/lakehouses + response: + body: + string: '{"id": "1a181355-da9b-4664-a767-ac7474da12bb", "type": "Lakehouse", + "displayName": "fabcli000004", "description": "Created by fab", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}' + 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, 06 Jan 2026 13:10:42 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 212a0de6-08b4-4f72-b32a-cb4d1010cfeb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-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": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:43 GMT + Pragma: + - no-cache + RequestId: + - c7375d43-00a2-44c9-b9a6-d688c709bdcb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/items + response: + body: + string: '{"value": [{"id": "b4f51569-39f9-4fe4-bf61-25acf8c12a08", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}, {"id": "1a181355-da9b-4664-a767-ac7474da12bb", + "type": "Lakehouse", "displayName": "fabcli000004", "description": "Created + by fab", "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '230' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:43 GMT + Pragma: + - no-cache + RequestId: + - ca16d17a-e059-468e-90a2-2104b34ed24e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/folders?recursive=True + response: + body: + string: '{"value": [{"id": "109bfca1-736b-4860-8dcb-51254b0b43a0", "displayName": + "fabcli000002", "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}, {"id": + "73215121-da61-4ea8-9be7-ab29ebcb3b52", "displayName": "fabcli000001", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '184' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:44 GMT + Pragma: + - no-cache + RequestId: + - fb5d8ef6-ea3d-4c66-a628-c79842812652 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:44 GMT + Pragma: + - no-cache + RequestId: + - 2ae1e5a0-e31e-4bb9-85a5-54aad678cc01 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/items + response: + body: + string: '{"value": [{"id": "b4f51569-39f9-4fe4-bf61-25acf8c12a08", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}, {"id": "1a181355-da9b-4664-a767-ac7474da12bb", + "type": "Lakehouse", "displayName": "fabcli000004", "description": "Created + by fab", "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '230' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:44 GMT + Pragma: + - no-cache + RequestId: + - 79f98290-d56d-4871-ba78-0e83c15e58eb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/folders?recursive=True + response: + body: + string: '{"value": [{"id": "109bfca1-736b-4860-8dcb-51254b0b43a0", "displayName": + "fabcli000002", "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}, {"id": + "73215121-da61-4ea8-9be7-ab29ebcb3b52", "displayName": "fabcli000001", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '184' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:45 GMT + Pragma: + - no-cache + RequestId: + - 24a3aa03-10ba-4099-a2e4-bfa1b87bb40a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:46 GMT + Pragma: + - no-cache + RequestId: + - ffc30702-57a2-4275-841e-2e0ffbc488eb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/items + response: + body: + string: '{"value": [{"id": "b4f51569-39f9-4fe4-bf61-25acf8c12a08", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}, {"id": "1a181355-da9b-4664-a767-ac7474da12bb", + "type": "Lakehouse", "displayName": "fabcli000004", "description": "Created + by fab", "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '230' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:46 GMT + Pragma: + - no-cache + RequestId: + - 0f92d121-a8b8-4716-a975-91e5100f690f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b86e9b69-16a9-4078-aff8-922ba052431e/items/1a181355-da9b-4664-a767-ac7474da12bb + 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, 06 Jan 2026 13:10:46 GMT + Pragma: + - no-cache + RequestId: + - 9f9c84bf-083f-4692-8424-6539d00ad28a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:47 GMT + Pragma: + - no-cache + RequestId: + - dc4f5d2f-efc5-43b5-b1b0-d86b7dec36cc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/items + response: + body: + string: '{"value": [{"id": "b4f51569-39f9-4fe4-bf61-25acf8c12a08", "type": "Notebook", + "displayName": "fabcli000003", "description": "Created by fab", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + 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, 06 Jan 2026 13:10:48 GMT + Pragma: + - no-cache + RequestId: + - 75584e77-a5ff-4b24-8a9f-97a99c24e6cf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b86e9b69-16a9-4078-aff8-922ba052431e/items/b4f51569-39f9-4fe4-bf61-25acf8c12a08 + 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, 06 Jan 2026 13:10:48 GMT + Pragma: + - no-cache + RequestId: + - a7816e2f-d510-44a8-b4d2-5e65425df34d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:48 GMT + Pragma: + - no-cache + RequestId: + - 2361fcf9-c2b5-4d4a-a0c0-192946dc968a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/folders?recursive=True + response: + body: + string: '{"value": [{"id": "109bfca1-736b-4860-8dcb-51254b0b43a0", "displayName": + "fabcli000002", "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}, {"id": + "73215121-da61-4ea8-9be7-ab29ebcb3b52", "displayName": "fabcli000001", "workspaceId": + "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '184' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:49 GMT + Pragma: + - no-cache + RequestId: + - c7a360d9-4576-456f-9d6d-d6f91b410caf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b86e9b69-16a9-4078-aff8-922ba052431e/folders/109bfca1-736b-4860-8dcb-51254b0b43a0 + 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, 06 Jan 2026 13:10:49 GMT + Pragma: + - no-cache + RequestId: + - e7ea3180-56e0-4c0c-913c-5233e3b5a89a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "b86e9b69-16a9-4078-aff8-922ba052431e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2130' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:49 GMT + Pragma: + - no-cache + RequestId: + - 6520def6-3c02-45c9-9856-fcc1c3aa9bd2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/b86e9b69-16a9-4078-aff8-922ba052431e/folders?recursive=True + response: + body: + string: '{"value": [{"id": "73215121-da61-4ea8-9be7-ab29ebcb3b52", "displayName": + "fabcli000001", "workspaceId": "b86e9b69-16a9-4078-aff8-922ba052431e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '144' + Content-Type: + - application/json; charset=utf-8 + Date: + - Tue, 06 Jan 2026 13:10:50 GMT + Pragma: + - no-cache + RequestId: + - e68ce844-acc5-49a8-ac61-8547d59aa835 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/b86e9b69-16a9-4078-aff8-922ba052431e/folders/73215121-da61-4ea8-9be7-ab29ebcb3b52 + 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, 06 Jan 2026 13:10:50 GMT + Pragma: + - no-cache + RequestId: + - 533e8da4-b54e-48be-ad3a-ef2de62e48e4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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 029f08b9..358b558e 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 @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.3.1 (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: @@ -26,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2271' + - '2803' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 13:25:59 GMT + - Thu, 05 Feb 2026 13:59:17 GMT Pragma: - no-cache RequestId: - - 9a1d433a-9ac2-4f88-a9fa-8e3002bee303 + - 840b1ca2-c272-434c-b0ff-66933b3ff799 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -60,7 +60,7 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.3.1 (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: @@ -75,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2271' + - '2803' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 13:26:01 GMT + - Thu, 05 Feb 2026 13:59:18 GMT Pragma: - no-cache RequestId: - - c1128cf5-1b4b-4bdf-b8a4-0e1322816fcf + - 271f93ca-bb3d-4ca9-9295-ad838f5f1291 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -109,13 +109,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.3.1 (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": "F32", "region": "Central US", "state": + "mocked_fabriccli_capacity_name", "sku": "F16", "region": "Central US", "state": "Active"}]}' headers: Access-Control-Expose-Headers: @@ -129,11 +129,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 13:26:07 GMT + - Thu, 05 Feb 2026 13:59:23 GMT Pragma: - no-cache RequestId: - - ae3db333-4428-4f82-91ef-2ca7417189a3 + - 7d8ab9d7-0e57-4ac2-86be-abcb24e8f62e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -162,12 +162,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.3.1 (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": "7d331fef-1f2a-406b-8eb9-b4776069f5f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "900e7667-b08b-46ad-8083-31958d70a3a8", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' headers: Access-Control-Expose-Headers: @@ -181,13 +181,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 13:26:15 GMT + - Thu, 05 Feb 2026 13:59:32 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/7d331fef-1f2a-406b-8eb9-b4776069f5f6 + - https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8 Pragma: - no-cache RequestId: - - 2fb5aada-3e56-469e-81ea-7cfd11f6c8ca + - 31eee9c7-8974-4cb5-b16b-484f6151fc9a 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; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (set; 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": "7d331fef-1f2a-406b-8eb9-b4776069f5f6", + "My workspace", "description": "", "type": "Personal"}, {"id": "900e7667-b08b-46ad-8083-31958d70a3a8", "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: - - '2304' + - '2805' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 13:26:45 GMT + - Thu, 05 Feb 2026 13:59:40 GMT Pragma: - no-cache RequestId: - - 3fc2ca69-e937-45bb-a655-6a15c51801f9 + - 4e53021d-51a5-45d1-9d95-a6e8206a1c9b 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; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (set; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/7d331fef-1f2a-406b-8eb9-b4776069f5f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/items response: body: string: '{"value": []}' @@ -282,11 +282,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 13:26:44 GMT + - Thu, 05 Feb 2026 13:59:41 GMT Pragma: - no-cache RequestId: - - 63b6aef6-c204-4ff9-8d24-600d0ff3c16b + - 79955306-93dc-4aca-926d-19095f82a4ec 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; 5.15.167.4-microsoft-standard-WSL2) + - ms-fabric-cli/1.3.1 (set; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/7d331fef-1f2a-406b-8eb9-b4776069f5f6 + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8 response: body: string: '' @@ -332,11 +332,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Thu, 29 Jan 2026 13:26:45 GMT + - Thu, 05 Feb 2026 13:59:42 GMT Pragma: - no-cache RequestId: - - 9af3be0d-fe6f-4148-a2fa-0ce178a1a3fc + - 1a070951-5040-4c37-a0c0-868087fa99b7 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_set/test_set_sparkpool_success[autoScale.enabled-True].yaml b/tests/test_commands/recordings/test_commands/test_set/test_set_sparkpool_success[autoScale.enabled-True].yaml index a54bcae5..f6ff8461 100644 --- a/tests/test_commands/recordings/test_commands/test_set/test_set_sparkpool_success[autoScale.enabled-True].yaml +++ b/tests/test_commands/recordings/test_commands/test_set/test_set_sparkpool_success[autoScale.enabled-True].yaml @@ -17,7 +17,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "619e9877-6a58-4dc2-9589-bd4d8ee36bd2", + "My workspace", "description": "", "type": "Personal"}, {"id": "900e7667-b08b-46ad-8083-31958d70a3a8", "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: - - '2301' + - '2834' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:39 GMT + - Thu, 05 Feb 2026 13:59:32 GMT Pragma: - no-cache RequestId: - - cc316c46-f24f-4610-8517-11f8afd012ae + - 2738ae43-5ee5-488f-b263-3c6991ff8715 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -64,7 +64,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000000", "type": "Workspace", @@ -79,9 +79,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:40 GMT + - Thu, 05 Feb 2026 13:59:33 GMT RequestId: - - ddb19f16-dbb0-4c53-b284-e62b7d8bda4c + - 20a59995-89bd-4545-9480-d80b9ea6eea2 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -109,7 +109,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000000", "type": "Workspace", @@ -124,9 +124,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:41 GMT + - Thu, 05 Feb 2026 13:59:34 GMT RequestId: - - bc252167-4fea-406d-9fdd-07ff17314965 + - a8d680f5-ec32-41ba-b431-403d5a8be03a Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -158,10 +158,10 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools response: body: - string: '{"id": "cfb27133-1062-435e-a41d-b1c55786490b", "type": "Workspace", + string: '{"id": "ff1480fe-e41e-4da6-9468-d3021b220b19", "type": "Workspace", "name": "fabcli000001", "nodeFamily": "MemoryOptimized", "nodeSize": "Small", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 3}, "dynamicExecutorAllocation": {"enabled": false}}' @@ -173,9 +173,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:42 GMT + - Thu, 05 Feb 2026 13:59:35 GMT RequestId: - - 7d679caa-2f2e-4a81-ab33-9f84f5e8a033 + - dc874139-130f-4d29-9d17-5f60247cd5bb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -207,7 +207,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "619e9877-6a58-4dc2-9589-bd4d8ee36bd2", + "My workspace", "description": "", "type": "Personal"}, {"id": "900e7667-b08b-46ad-8083-31958d70a3a8", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -218,15 +218,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2301' + - '2805' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:43 GMT + - Thu, 05 Feb 2026 13:59:35 GMT Pragma: - no-cache RequestId: - - 3ccadaf1-a797-4d1b-bacf-70f9292da326 + - 0a1e4925-844c-4b04-90e1-b37315bbcd0f Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -254,13 +254,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000000", "type": "Workspace", "name": "Starter Pool", "nodeFamily": "MemoryOptimized", "nodeSize": "Medium", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 10}, "dynamicExecutorAllocation": - {"enabled": true, "minExecutors": 1, "maxExecutors": 9}}, {"id": "cfb27133-1062-435e-a41d-b1c55786490b", + {"enabled": true, "minExecutors": 1, "maxExecutors": 9}}, {"id": "ff1480fe-e41e-4da6-9468-d3021b220b19", "type": "Workspace", "name": "fabcli000001", "nodeFamily": "MemoryOptimized", "nodeSize": "Small", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 3}, "dynamicExecutorAllocation": {"enabled": false}}]}' @@ -272,9 +272,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:43 GMT + - Thu, 05 Feb 2026 13:59:36 GMT RequestId: - - 13ac80a3-1bb1-4ef2-845d-9c9a9be1061c + - 85ebe6df-98e1-44ab-9566-cc4365a727cc Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -302,10 +302,10 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools/cfb27133-1062-435e-a41d-b1c55786490b + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools/ff1480fe-e41e-4da6-9468-d3021b220b19 response: body: - string: '{"id": "cfb27133-1062-435e-a41d-b1c55786490b", "type": "Workspace", + string: '{"id": "ff1480fe-e41e-4da6-9468-d3021b220b19", "type": "Workspace", "name": "fabcli000001", "nodeFamily": "MemoryOptimized", "nodeSize": "Small", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 3}, "dynamicExecutorAllocation": {"enabled": false}}' @@ -317,9 +317,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:44 GMT + - Thu, 05 Feb 2026 13:59:37 GMT RequestId: - - 9bc3ba0e-798a-43cf-b16d-97d2c97fffe9 + - 5b1baae8-bf0b-403a-8aee-65ad57bb95db Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -349,10 +349,10 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: PATCH - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools/cfb27133-1062-435e-a41d-b1c55786490b + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools/ff1480fe-e41e-4da6-9468-d3021b220b19 response: body: - string: '{"id": "cfb27133-1062-435e-a41d-b1c55786490b", "type": "Workspace", + string: '{"id": "ff1480fe-e41e-4da6-9468-d3021b220b19", "type": "Workspace", "name": "fabcli000001", "nodeFamily": "MemoryOptimized", "nodeSize": "Small", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 3}, "dynamicExecutorAllocation": {"enabled": false}}' @@ -364,9 +364,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:46 GMT + - Thu, 05 Feb 2026 13:59:37 GMT RequestId: - - 952c362c-bcae-431e-bf94-7295afb639eb + - 76f45574-881e-4119-b265-003fc75841be Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -398,7 +398,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "619e9877-6a58-4dc2-9589-bd4d8ee36bd2", + "My workspace", "description": "", "type": "Personal"}, {"id": "900e7667-b08b-46ad-8083-31958d70a3a8", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -409,15 +409,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2301' + - '2805' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:45 GMT + - Thu, 05 Feb 2026 13:59:37 GMT Pragma: - no-cache RequestId: - - 5acc3a3f-0f4c-42e2-9bdf-168108712000 + - 2cbb22d2-eed0-434b-abaf-4f880c30fbb0 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -445,13 +445,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000000", "type": "Workspace", "name": "Starter Pool", "nodeFamily": "MemoryOptimized", "nodeSize": "Medium", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 10}, "dynamicExecutorAllocation": - {"enabled": true, "minExecutors": 1, "maxExecutors": 9}}, {"id": "cfb27133-1062-435e-a41d-b1c55786490b", + {"enabled": true, "minExecutors": 1, "maxExecutors": 9}}, {"id": "ff1480fe-e41e-4da6-9468-d3021b220b19", "type": "Workspace", "name": "fabcli000001", "nodeFamily": "MemoryOptimized", "nodeSize": "Small", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 3}, "dynamicExecutorAllocation": {"enabled": false}}]}' @@ -463,9 +463,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:47 GMT + - Thu, 05 Feb 2026 13:59:38 GMT RequestId: - - ba76493d-d3e6-4c87-bd95-0c801bd5bd63 + - d5aadd33-3c67-49bf-8127-c58b547ceedd Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -493,10 +493,10 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools/cfb27133-1062-435e-a41d-b1c55786490b + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools/ff1480fe-e41e-4da6-9468-d3021b220b19 response: body: - string: '{"id": "cfb27133-1062-435e-a41d-b1c55786490b", "type": "Workspace", + string: '{"id": "ff1480fe-e41e-4da6-9468-d3021b220b19", "type": "Workspace", "name": "fabcli000001", "nodeFamily": "MemoryOptimized", "nodeSize": "Small", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 3}, "dynamicExecutorAllocation": {"enabled": false}}' @@ -508,9 +508,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:47 GMT + - Thu, 05 Feb 2026 13:59:38 GMT RequestId: - - 22b447a0-e6a4-4b52-aa44-b25ea720d792 + - 456d9012-2bca-4e15-861e-50200cd07714 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -542,7 +542,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "619e9877-6a58-4dc2-9589-bd4d8ee36bd2", + "My workspace", "description": "", "type": "Personal"}, {"id": "900e7667-b08b-46ad-8083-31958d70a3a8", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -553,15 +553,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2301' + - '2805' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:48 GMT + - Thu, 05 Feb 2026 13:59:39 GMT Pragma: - no-cache RequestId: - - 6fab1f36-2b80-4139-814e-5bbc07264250 + - 50b108b5-0518-4944-a95a-4ae9e9f15092 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -589,13 +589,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools response: body: string: '{"value": [{"id": "00000000-0000-0000-0000-000000000000", "type": "Workspace", "name": "Starter Pool", "nodeFamily": "MemoryOptimized", "nodeSize": "Medium", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 10}, "dynamicExecutorAllocation": - {"enabled": true, "minExecutors": 1, "maxExecutors": 9}}, {"id": "cfb27133-1062-435e-a41d-b1c55786490b", + {"enabled": true, "minExecutors": 1, "maxExecutors": 9}}, {"id": "ff1480fe-e41e-4da6-9468-d3021b220b19", "type": "Workspace", "name": "fabcli000001", "nodeFamily": "MemoryOptimized", "nodeSize": "Small", "autoScale": {"enabled": true, "minNodeCount": 1, "maxNodeCount": 3}, "dynamicExecutorAllocation": {"enabled": false}}]}' @@ -607,9 +607,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:49 GMT + - Thu, 05 Feb 2026 13:59:39 GMT RequestId: - - 6677f225-2b43-477c-9294-c129e9ccf080 + - 27cd2264-ed51-4642-a909-e42726e4a8af Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -639,7 +639,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.3.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/619e9877-6a58-4dc2-9589-bd4d8ee36bd2/spark/pools/cfb27133-1062-435e-a41d-b1c55786490b + uri: https://api.fabric.microsoft.com/v1/workspaces/900e7667-b08b-46ad-8083-31958d70a3a8/spark/pools/ff1480fe-e41e-4da6-9468-d3021b220b19 response: body: string: '' @@ -651,9 +651,9 @@ interactions: Content-Type: - application/octet-stream Date: - - Thu, 22 Jan 2026 11:31:50 GMT + - Thu, 05 Feb 2026 13:59:40 GMT RequestId: - - 4eee107c-7a1d-4ec9-9861-2d2b281fbd14 + - a226a6cd-afe5-4ba3-8ed4-97306ebf121a 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 9cf2aa94..b2135ada 100644 --- a/tests/test_commands/test_ls.py +++ b/tests/test_commands/test_ls.py @@ -213,7 +213,7 @@ def test_ls_query_filter_success( notebook3 = item_factory(ItemType.NOTEBOOK) # 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( [notebook1.display_name, notebook2.display_name, notebook3.display_name], @@ -238,13 +238,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"['{notebook1.name}']", f"['{notebook2.name}']", f"['{notebook3.name}']"], @@ -273,13 +273,13 @@ def test_ls_query_filter_success( ) mock_questionary_print.assert_called() _assert_strings_in_mock_calls( - [f'{notebook1.name}'], + [f"{notebook1.name}"], True, mock_questionary_print.mock_calls, ) _assert_strings_in_mock_calls( - [f'{notebook2.name}', f'{notebook3.name}'], + [f"{notebook2.name}", f"{notebook3.name}"], False, mock_questionary_print.mock_calls, ) @@ -1200,6 +1200,69 @@ def test_ls_folder_content_success( require_all_in_same_args=True, ) + def test_ls_workspace_with_folders_and_items_divider( + self, + workspace, + folder_factory, + item_factory, + mock_questionary_print, + cli_executor: CLIExecutor, + ): + """Test that a divider appears between folders and items when folder_listing_enabled=true""" + # Setup: Create folders and items in workspace root + folder1 = folder_factory() + folder2 = folder_factory() + notebook = item_factory(ItemType.NOTEBOOK, path=workspace.full_path) + lakehouse = item_factory(ItemType.LAKEHOUSE, path=workspace.full_path) + + # Test 1: List workspace (folder_listing_enabled is true by default in tests) + cli_executor.exec_command(f"ls {workspace.full_path}") + + # Assert: Check that the divider is present + mock_questionary_print.assert_called() + + # Verify divider appears in output + _assert_strings_in_mock_calls( + ["------------------------------"], True, mock_questionary_print.mock_calls + ) + + # Verify folders and items are present + _assert_strings_in_mock_calls( + [ + folder1.display_name, + folder2.display_name, + notebook.display_name, + lakehouse.display_name, + ], + True, + mock_questionary_print.mock_calls, + ) + + mock_questionary_print.reset_mock() + + # Test 2: with long flag + cli_executor.exec_command(f"ls {workspace.full_path} --long") + + # Assert + mock_questionary_print.assert_called() + + # Verify divider appears with long format + _assert_strings_in_mock_calls( + ["------------------------------"], True, mock_questionary_print.mock_calls + ) + + # Verify all items are present + _assert_strings_in_mock_calls( + [ + folder1.display_name, + folder2.display_name, + notebook.display_name, + lakehouse.display_name, + ], + True, + mock_questionary_print.mock_calls, + ) + def test_ls_workspace_items_no_list_folders_support_success( self, workspace,