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/core/fab_types.py b/src/fabric_cli/core/fab_types.py index 2888f625..839d6ee3 100644 --- a/src/fabric_cli/core/fab_types.py +++ b/src/fabric_cli/core/fab_types.py @@ -404,6 +404,12 @@ class SQLDatabaseFolders(Enum): FILES = "Files" CODE = "Code" +class CosmosDBDatabaseFolders(Enum): + TABLES = "Tables" + FILES = "Files" + CODE = "Code" + AUDIT = "Audit" + # TODO validate MirroredWarehouse OneLake folders class MirroredDatabaseFolders(Enum): @@ -422,6 +428,7 @@ class MirroredDatabaseFolders(Enum): ItemType.MIRRORED_DATABASE: [folder.value for folder in MirroredDatabaseFolders], ItemType.MIRRORED_WAREHOUSE: [folder.value for folder in MirroredDatabaseFolders], ItemType.SQL_DATABASE: [folder.value for folder in SQLDatabaseFolders], + ItemType.COSMOS_DB_DATABASE: [folder.value for folder in CosmosDBDatabaseFolders], } OnelakeWritableFolders = ["Files", "Libs", "Main"] 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..3abdc3f5 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' + - '2834' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:28:59 GMT + - Thu, 05 Feb 2026 13:47:58 GMT Pragma: - no-cache RequestId: - - a1ca655d-adf4-4a7a-8d2c-2dc3ab03e53b + - 2008fda1-a5a1-4dc4-a215-75cd81a5aa58 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' + - '2834' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:29:00 GMT + - Thu, 05 Feb 2026 13:47:58 GMT Pragma: - no-cache RequestId: - - 4fb405d9-466a-4e9d-81f3-a61091331c8a + - 1d8c3a58-af0b-4078-a948-12b40a0292bb 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": "F16", "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 + - Thu, 05 Feb 2026 13:48:02 GMT Pragma: - no-cache RequestId: - - 9a962d92-07ed-4680-97dc-c07909f25e22 + - af55f273-fdb0-41c9-bf85-607803366fb5 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": "ebe5f85c-0343-4508-9d2d-a8299cfea504", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' headers: Access-Control-Expose-Headers: @@ -177,17 +177,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '189' + - '187' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:29:14 GMT + - Thu, 05 Feb 2026 13:48:09 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/7b82ecee-ed54-4d87-84dd-07511c5f5ad2 + - https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504 Pragma: - no-cache RequestId: - - a9920ffb-8339-43a8-8f5b-ab313cafb507 + - 831b42b8-59e6-45bf-96b0-7985c7063e11 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": "ebe5f85c-0343-4508-9d2d-a8299cfea504", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -230,15 +230,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '1551' + - '2901' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 16 Nov 2025 13:29:43 GMT + - Thu, 05 Feb 2026 13:48:51 GMT Pragma: - no-cache RequestId: - - 760e6315-8597-44fc-807f-62840e999e08 + - c3f8f00d-5ab2-48c3-813c-b155b598a7d0 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/ebe5f85c-0343-4508-9d2d-a8299cfea504/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 + - Thu, 05 Feb 2026 13:48:51 GMT Pragma: - no-cache RequestId: - - 8f711d74-2ab1-4d92-9c00-f90f31843fe1 + - c4c73c19-cae6-4865-b3b9-86e803fdf296 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/ebe5f85c-0343-4508-9d2d-a8299cfea504 response: body: string: '' @@ -334,11 +332,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Sun, 16 Nov 2025 13:29:45 GMT + - Thu, 05 Feb 2026 13:48:51 GMT Pragma: - no-cache RequestId: - - 87dce47d-17c3-48d7-8046-89b2600e75b1 + - 7af2a487-ebea-4831-a586-ab5259143e49 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_ls/test_ls_item_folders_success[CosmosDBDatabase-expected_folders1].yaml b/tests/test_commands/recordings/test_commands/test_ls/test_ls_item_folders_success[CosmosDBDatabase-expected_folders1].yaml new file mode 100644 index 00000000..dbc29d17 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_ls/test_ls_item_folders_success[CosmosDBDatabase-expected_folders1].yaml @@ -0,0 +1,773 @@ +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": "ebe5f85c-0343-4508-9d2d-a8299cfea504", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2862' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:21 GMT + Pragma: + - no-cache + RequestId: + - 55f8bfe4-bb1e-465b-9dcd-1cb3a63880bc + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:21 GMT + Pragma: + - no-cache + RequestId: + - 4f5ae9e2-7742-4c77-975c-fd2ad45d2b32 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:22 GMT + Pragma: + - no-cache + RequestId: + - 2a0617f8-e70f-43bd-bb8d-8668db19b006 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": + "CosmosDBDatabase", "folderId": null}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '114' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/cosmosDbDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:23 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/63929cb5-7fa5-465f-a0e2-a3face99ed7c + Pragma: + - no-cache + RequestId: + - 0c3dabd2-1527-4793-9ed4-2e636f01e1ad + 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: + - 63929cb5-7fa5-465f-a0e2-a3face99ed7c + 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/63929cb5-7fa5-465f-a0e2-a3face99ed7c + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-05T13:48:23.0289402", + "lastUpdatedTimeUtc": "2026-02-05T13:48:30.9526521", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:44 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/63929cb5-7fa5-465f-a0e2-a3face99ed7c/result + Pragma: + - no-cache + RequestId: + - f0130760-7feb-4a48-879a-3ec9eb8848cf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 63929cb5-7fa5-465f-a0e2-a3face99ed7c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + 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/63929cb5-7fa5-465f-a0e2-a3face99ed7c/result + response: + body: + string: '{"id": "2f44c7e8-2115-42c9-9a36-ead109a31299", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "ebe5f85c-0343-4508-9d2d-a8299cfea504"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 05 Feb 2026 13:48:43 GMT + Pragma: + - no-cache + RequestId: + - 893939d1-a76d-4af1-a1c0-4b02bebfaa2f + 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": "ebe5f85c-0343-4508-9d2d-a8299cfea504", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2862' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:44 GMT + Pragma: + - no-cache + RequestId: + - 5cbf5d52-2859-4c61-9580-89ed47920903 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items + response: + body: + string: '{"value": [{"id": "2f44c7e8-2115-42c9-9a36-ead109a31299", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "ebe5f85c-0343-4508-9d2d-a8299cfea504"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '184' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:45 GMT + Pragma: + - no-cache + RequestId: + - 9ebecbe0-c0e1-4901-ba6c-7a375e1a93db + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/ebe5f85c-0343-4508-9d2d-a8299cfea504/2f44c7e8-2115-42c9-9a36-ead109a31299/?recursive=false&resource=filesystem + response: + body: + string: '{"paths": [{"name": "2f44c7e8-2115-42c9-9a36-ead109a31299/Audit", "isDirectory": + "true", "creationTime": "134147729034614848", "lastModified": "Thu, 05 Feb + 2026 13:48:23 GMT", "etag": "0x8DE64BD3AFF9840", "contentLength": "0", "owner": + "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "2f44c7e8-2115-42c9-9a36-ead109a31299/Code", + "isDirectory": "true", "creationTime": "134147729034976284", "lastModified": + "Thu, 05 Feb 2026 13:48:23 GMT", "etag": "0x8DE64BD3B051C1C", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "2f44c7e8-2115-42c9-9a36-ead109a31299/Files", + "isDirectory": "true", "creationTime": "134147729034805364", "lastModified": + "Thu, 05 Feb 2026 13:48:23 GMT", "etag": "0x8DE64BD3B028074", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "2f44c7e8-2115-42c9-9a36-ead109a31299/Tables", + "isDirectory": "true", "creationTime": "134147729034890928", "lastModified": + "Thu, 05 Feb 2026 13:48:23 GMT", "etag": "0x8DE64BD3B03CEB0", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:47 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "ebe5f85c-0343-4508-9d2d-a8299cfea504", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2900' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:47 GMT + Pragma: + - no-cache + RequestId: + - f912cef1-d3e1-49ff-8ecc-b39c7b86a5f4 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items + response: + body: + string: '{"value": [{"id": "2f44c7e8-2115-42c9-9a36-ead109a31299", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "ebe5f85c-0343-4508-9d2d-a8299cfea504"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '184' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:47 GMT + Pragma: + - no-cache + RequestId: + - 648b51a6-d0fa-47d9-843a-91263fa3a74d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://onelake.dfs.fabric.microsoft.com/ebe5f85c-0343-4508-9d2d-a8299cfea504/2f44c7e8-2115-42c9-9a36-ead109a31299/?recursive=false&resource=filesystem + response: + body: + string: '{"paths": [{"name": "2f44c7e8-2115-42c9-9a36-ead109a31299/Audit", "isDirectory": + "true", "creationTime": "134147729034614848", "lastModified": "Thu, 05 Feb + 2026 13:48:23 GMT", "etag": "0x8DE64BD3AFF9840", "contentLength": "0", "owner": + "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "2f44c7e8-2115-42c9-9a36-ead109a31299/Code", + "isDirectory": "true", "creationTime": "134147729034976284", "lastModified": + "Thu, 05 Feb 2026 13:48:23 GMT", "etag": "0x8DE64BD3B051C1C", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "2f44c7e8-2115-42c9-9a36-ead109a31299/Files", + "isDirectory": "true", "creationTime": "134147729034805364", "lastModified": + "Thu, 05 Feb 2026 13:48:23 GMT", "etag": "0x8DE64BD3B028074", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "2f44c7e8-2115-42c9-9a36-ead109a31299/Tables", + "isDirectory": "true", "creationTime": "134147729034890928", "lastModified": + "Thu, 05 Feb 2026 13:48:23 GMT", "etag": "0x8DE64BD3B03CEB0", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}], "ContinuationToken": null}' + headers: + Access-Control-Allow-Headers: + - '*' + Access-Control-Allow-Methods: + - '*' + Access-Control-Allow-Origin: + - '*' + Access-Control-Expose-Headers: + - '*,Authorization' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:49 GMT + Server: + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces + response: + body: + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "ebe5f85c-0343-4508-9d2d-a8299cfea504", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created + by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2901' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:49 GMT + Pragma: + - no-cache + RequestId: + - 893dffca-c9ca-4c8b-8177-c4eca4d9c800 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items + response: + body: + string: '{"value": [{"id": "2f44c7e8-2115-42c9-9a36-ead109a31299", "type": "CosmosDBDatabase", + "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": + "ebe5f85c-0343-4508-9d2d-a8299cfea504"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '184' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 05 Feb 2026 13:48:50 GMT + Pragma: + - no-cache + RequestId: + - a1fba16b-2f3a-47e0-9393-2f53b2e1b366 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.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/ebe5f85c-0343-4508-9d2d-a8299cfea504/items/2f44c7e8-2115-42c9-9a36-ead109a31299 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 05 Feb 2026 13:48:50 GMT + Pragma: + - no-cache + RequestId: + - 57594f39-dd21-425b-bb76-1d1f5982420f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-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_ls/test_ls_item_folders_success.yaml b/tests/test_commands/recordings/test_commands/test_ls/test_ls_item_folders_success[Lakehouse-expected_folders0].yaml similarity index 67% rename from tests/test_commands/recordings/test_commands/test_ls/test_ls_item_folders_success.yaml rename to tests/test_commands/recordings/test_commands/test_ls/test_ls_item_folders_success[Lakehouse-expected_folders0].yaml index 81d7d040..e0eb47f8 100644 --- a/tests/test_commands/recordings/test_commands/test_ls/test_ls_item_folders_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_ls/test_ls_item_folders_success[Lakehouse-expected_folders0].yaml @@ -11,13 +11,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a32f2c4b-828b-4897-8b4b-9225c45db8d6", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "ebe5f85c-0343-4508-9d2d-a8299cfea504", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -28,15 +28,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '567' + - '2862' Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:27 GMT + - Thu, 05 Feb 2026 13:48:09 GMT Pragma: - no-cache RequestId: - - 1218928d-5b02-4b27-8c81-587692f3e683 + - 7936556a-2069-41a3-b5d6-9411d897b53c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -44,7 +44,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -62,9 +62,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a32f2c4b-828b-4897-8b4b-9225c45db8d6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items response: body: string: '{"value": []}' @@ -80,11 +80,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:27 GMT + - Thu, 05 Feb 2026 13:48:09 GMT Pragma: - no-cache RequestId: - - af57e402-3c4a-44f9-b708-aa7176156283 + - 5e27b2ef-7fbb-44d0-8c13-9167f431ec73 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -92,7 +92,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -110,9 +110,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a32f2c4b-828b-4897-8b4b-9225c45db8d6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items response: body: string: '{"value": []}' @@ -128,11 +128,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:28 GMT + - Thu, 05 Feb 2026 13:48:09 GMT Pragma: - no-cache RequestId: - - 4ef77bd2-0db4-4f87-8f2b-21af5cc7f875 + - 0bccdaee-46c2-4efd-b11e-2b25f8eef722 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -140,7 +140,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -161,14 +161,14 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/a32f2c4b-828b-4897-8b4b-9225c45db8d6/lakehouses + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/lakehouses response: body: - string: '{"id": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8", "type": "Lakehouse", + string: '{"id": "81429b0d-178c-4ab1-b65e-dcf754a99d4f", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "a32f2c4b-828b-4897-8b4b-9225c45db8d6"}' + "ebe5f85c-0343-4508-9d2d-a8299cfea504"}' headers: Access-Control-Expose-Headers: - RequestId,ETag @@ -177,17 +177,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '166' + - '167' Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:30 GMT + - Thu, 05 Feb 2026 13:48:13 GMT ETag: - '""' Pragma: - no-cache RequestId: - - 473b2be1-fac1-4bea-b99a-c6e359b08359 + - 9fb8e596-f4bd-4bc8-9447-a4e4409c6c1d Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -195,7 +195,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -213,13 +213,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a32f2c4b-828b-4897-8b4b-9225c45db8d6", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "ebe5f85c-0343-4508-9d2d-a8299cfea504", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -230,15 +230,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '567' + - '2862' Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:30 GMT + - Thu, 05 Feb 2026 13:48:13 GMT Pragma: - no-cache RequestId: - - 8d93d1b2-e6b0-4f16-b44d-f1e6480ddfb6 + - 1a2ee666-57ed-4807-b3df-85428b7181a5 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -246,7 +246,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -264,14 +264,14 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a32f2c4b-828b-4897-8b4b-9225c45db8d6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items response: body: - string: '{"value": [{"id": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8", "type": "Lakehouse", + string: '{"value": [{"id": "81429b0d-178c-4ab1-b65e-dcf754a99d4f", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "a32f2c4b-828b-4897-8b4b-9225c45db8d6"}]}' + "ebe5f85c-0343-4508-9d2d-a8299cfea504"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:30 GMT + - Thu, 05 Feb 2026 13:48:14 GMT Pragma: - no-cache RequestId: - - 043d9f4f-d5e1-4328-b115-465419283581 + - 9c4a8706-9b15-4235-9e7a-cf8d29b60f52 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -296,7 +296,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -314,23 +314,23 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET - uri: https://onelake.dfs.fabric.microsoft.com/a32f2c4b-828b-4897-8b4b-9225c45db8d6/c9b51d4b-d9e8-477a-8b86-3858a7d38bb8/?recursive=false&resource=filesystem + uri: https://onelake.dfs.fabric.microsoft.com/ebe5f85c-0343-4508-9d2d-a8299cfea504/81429b0d-178c-4ab1-b65e-dcf754a99d4f/?recursive=false&resource=filesystem response: body: - string: '{"paths": [{"name": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8/Files", "isDirectory": - "true", "creationTime": "134018253292955560", "lastModified": "Mon, 08 Sep - 2025 17:15:29 GMT", "etag": "0x8DDEEFB4F68E7A8", "contentLength": "0", "owner": - "954b20be-abdc-4fbc-9e27-545547e1c715", "group": "954b20be-abdc-4fbc-9e27-545547e1c715", - "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8/TableMaintenance", - "isDirectory": "true", "creationTime": "134018253293095008", "lastModified": - "Mon, 08 Sep 2025 17:15:29 GMT", "etag": "0x8DDEEFB4F6B0860", "contentLength": - "0", "owner": "954b20be-abdc-4fbc-9e27-545547e1c715", "group": "954b20be-abdc-4fbc-9e27-545547e1c715", - "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8/Tables", - "isDirectory": "true", "creationTime": "134018253292794316", "lastModified": - "Mon, 08 Sep 2025 17:15:29 GMT", "etag": "0x8DDEEFB4F6671CC", "contentLength": - "0", "owner": "954b20be-abdc-4fbc-9e27-545547e1c715", "group": "954b20be-abdc-4fbc-9e27-545547e1c715", + string: '{"paths": [{"name": "81429b0d-178c-4ab1-b65e-dcf754a99d4f/Files", "isDirectory": + "true", "creationTime": "134147728912521160", "lastModified": "Thu, 05 Feb + 2026 13:48:11 GMT", "etag": "0x8DE64BD33B897C8", "contentLength": "0", "owner": + "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "81429b0d-178c-4ab1-b65e-dcf754a99d4f/TableMaintenance", + "isDirectory": "true", "creationTime": "134147728912599432", "lastModified": + "Thu, 05 Feb 2026 13:48:11 GMT", "etag": "0x8DE64BD33B9C988", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "81429b0d-178c-4ab1-b65e-dcf754a99d4f/Tables", + "isDirectory": "true", "creationTime": "134147728912417996", "lastModified": + "Thu, 05 Feb 2026 13:48:11 GMT", "etag": "0x8DE64BD33B704CC", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "permissions": "rwxr-x---", "expiryTime": "0"}], "ContinuationToken": null}' headers: Access-Control-Allow-Headers: @@ -344,9 +344,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:32 GMT + - Thu, 05 Feb 2026 13:48:16 GMT Server: - - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 + - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -368,13 +368,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a32f2c4b-828b-4897-8b4b-9225c45db8d6", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "ebe5f85c-0343-4508-9d2d-a8299cfea504", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -385,15 +385,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '567' + - '2862' Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:31 GMT + - Thu, 05 Feb 2026 13:48:16 GMT Pragma: - no-cache RequestId: - - 79756809-7741-48c7-9f29-81b108c5708c + - cb26e972-0e41-4a6f-a80e-75fa87afb26b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -401,7 +401,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -419,14 +419,14 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a32f2c4b-828b-4897-8b4b-9225c45db8d6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items response: body: - string: '{"value": [{"id": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8", "type": "Lakehouse", + string: '{"value": [{"id": "81429b0d-178c-4ab1-b65e-dcf754a99d4f", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "a32f2c4b-828b-4897-8b4b-9225c45db8d6"}]}' + "ebe5f85c-0343-4508-9d2d-a8299cfea504"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -439,11 +439,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:31 GMT + - Thu, 05 Feb 2026 13:48:17 GMT Pragma: - no-cache RequestId: - - 509604df-fd13-42d2-bb50-27a3ed4c9521 + - 34a29c32-18cc-420d-893d-d29c5fa552fc Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -451,7 +451,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -469,23 +469,23 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET - uri: https://onelake.dfs.fabric.microsoft.com/a32f2c4b-828b-4897-8b4b-9225c45db8d6/c9b51d4b-d9e8-477a-8b86-3858a7d38bb8/?recursive=false&resource=filesystem + uri: https://onelake.dfs.fabric.microsoft.com/ebe5f85c-0343-4508-9d2d-a8299cfea504/81429b0d-178c-4ab1-b65e-dcf754a99d4f/?recursive=false&resource=filesystem response: body: - string: '{"paths": [{"name": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8/Files", "isDirectory": - "true", "creationTime": "134018253292955560", "lastModified": "Mon, 08 Sep - 2025 17:15:29 GMT", "etag": "0x8DDEEFB4F68E7A8", "contentLength": "0", "owner": - "954b20be-abdc-4fbc-9e27-545547e1c715", "group": "954b20be-abdc-4fbc-9e27-545547e1c715", - "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8/TableMaintenance", - "isDirectory": "true", "creationTime": "134018253293095008", "lastModified": - "Mon, 08 Sep 2025 17:15:29 GMT", "etag": "0x8DDEEFB4F6B0860", "contentLength": - "0", "owner": "954b20be-abdc-4fbc-9e27-545547e1c715", "group": "954b20be-abdc-4fbc-9e27-545547e1c715", - "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8/Tables", - "isDirectory": "true", "creationTime": "134018253292794316", "lastModified": - "Mon, 08 Sep 2025 17:15:29 GMT", "etag": "0x8DDEEFB4F6671CC", "contentLength": - "0", "owner": "954b20be-abdc-4fbc-9e27-545547e1c715", "group": "954b20be-abdc-4fbc-9e27-545547e1c715", + string: '{"paths": [{"name": "81429b0d-178c-4ab1-b65e-dcf754a99d4f/Files", "isDirectory": + "true", "creationTime": "134147728912521160", "lastModified": "Thu, 05 Feb + 2026 13:48:11 GMT", "etag": "0x8DE64BD33B897C8", "contentLength": "0", "owner": + "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "81429b0d-178c-4ab1-b65e-dcf754a99d4f/TableMaintenance", + "isDirectory": "true", "creationTime": "134147728912599432", "lastModified": + "Thu, 05 Feb 2026 13:48:11 GMT", "etag": "0x8DE64BD33B9C988", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", + "permissions": "rwxr-x---", "expiryTime": "0"}, {"name": "81429b0d-178c-4ab1-b65e-dcf754a99d4f/Tables", + "isDirectory": "true", "creationTime": "134147728912417996", "lastModified": + "Thu, 05 Feb 2026 13:48:11 GMT", "etag": "0x8DE64BD33B704CC", "contentLength": + "0", "owner": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "group": "bdb39224-bd86-4d14-bc6e-18637e6902b0", "permissions": "rwxr-x---", "expiryTime": "0"}], "ContinuationToken": null}' headers: Access-Control-Allow-Headers: @@ -499,7 +499,7 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:32 GMT + - Thu, 05 Feb 2026 13:48:19 GMT Server: - Windows-Azure-HDFS/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 Strict-Transport-Security: @@ -523,13 +523,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "a32f2c4b-828b-4897-8b4b-9225c45db8d6", + string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": + "My workspace", "description": "", "type": "Personal"}, {"id": "ebe5f85c-0343-4508-9d2d-a8299cfea504", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' headers: @@ -540,15 +540,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '567' + - '2862' Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:32 GMT + - Thu, 05 Feb 2026 13:48:19 GMT Pragma: - no-cache RequestId: - - 1da49e7a-9634-4791-8a1e-4d7e511db212 + - 5e2211d1-c0c1-4cb4-b2fb-f60c498fa822 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -556,7 +556,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -574,14 +574,14 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/a32f2c4b-828b-4897-8b4b-9225c45db8d6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items response: body: - string: '{"value": [{"id": "c9b51d4b-d9e8-477a-8b86-3858a7d38bb8", "type": "Lakehouse", + string: '{"value": [{"id": "81429b0d-178c-4ab1-b65e-dcf754a99d4f", "type": "Lakehouse", "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "a32f2c4b-828b-4897-8b4b-9225c45db8d6"}]}' + "ebe5f85c-0343-4508-9d2d-a8299cfea504"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -594,11 +594,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 08 Sep 2025 17:15:32 GMT + - Thu, 05 Feb 2026 13:48:20 GMT Pragma: - no-cache RequestId: - - c12cf0da-3bd8-4f83-a474-1d6e5f528e86 + - b0724c3f-cc83-4920-b081-c53755190c13 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -606,7 +606,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: @@ -626,9 +626,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.1.0.rc2 + - ms-fabric-cli-test/1.3.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/a32f2c4b-828b-4897-8b4b-9225c45db8d6/items/c9b51d4b-d9e8-477a-8b86-3858a7d38bb8 + uri: https://api.fabric.microsoft.com/v1/workspaces/ebe5f85c-0343-4508-9d2d-a8299cfea504/items/81429b0d-178c-4ab1-b65e-dcf754a99d4f response: body: string: '' @@ -644,11 +644,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Mon, 08 Sep 2025 17:15:33 GMT + - Thu, 05 Feb 2026 13:48:20 GMT Pragma: - no-cache RequestId: - - c66f4f3f-7833-49ff-8406-7b5fd9918b41 + - 35e9c4a7-cf7b-4270-ab35-8940c904e87f Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -656,7 +656,7 @@ interactions: X-Frame-Options: - deny home-cluster-uri: - - https://wabi-west-europe-redirect.analysis.windows.net/ + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' status: diff --git a/tests/test_commands/recordings/test_commands/test_set/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_set/class_setup.yaml index 029f08b9..b2a61a4d 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 14:01:21 GMT Pragma: - no-cache RequestId: - - 9a1d433a-9ac2-4f88-a9fa-8e3002bee303 + - aff15532-9dd4-496c-8744-96133d51a224 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 14:01:21 GMT Pragma: - no-cache RequestId: - - c1128cf5-1b4b-4bdf-b8a4-0e1322816fcf + - a4000f1e-6466-4176-912f-d70444a52d41 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: @@ -125,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '425' + - '424' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 13:26:07 GMT + - Thu, 05 Feb 2026 14:01:26 GMT Pragma: - no-cache RequestId: - - ae3db333-4428-4f82-91ef-2ca7417189a3 + - d6cb0ef2-c383-43d0-affa-865820307391 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": "464e064d-4767-4181-8a32-bba9797c4ad1", "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 14:01:34 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/7d331fef-1f2a-406b-8eb9-b4776069f5f6 + - https://api.fabric.microsoft.com/v1/workspaces/464e064d-4767-4181-8a32-bba9797c4ad1 Pragma: - no-cache RequestId: - - 2fb5aada-3e56-469e-81ea-7cfd11f6c8ca + - 27bd9dea-5135-45c7-bfa3-3102a1156c23 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": "464e064d-4767-4181-8a32-bba9797c4ad1", "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' + - '2804' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 13:26:45 GMT + - Thu, 05 Feb 2026 14:01:43 GMT Pragma: - no-cache RequestId: - - 3fc2ca69-e937-45bb-a655-6a15c51801f9 + - f7c56eed-e69a-4c34-a2bc-f4e98cf04674 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/464e064d-4767-4181-8a32-bba9797c4ad1/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 14:01:43 GMT Pragma: - no-cache RequestId: - - 63b6aef6-c204-4ff9-8d24-600d0ff3c16b + - d3a0068d-965a-49e0-a479-3e89e2653e06 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/464e064d-4767-4181-8a32-bba9797c4ad1 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 14:01:43 GMT Pragma: - no-cache RequestId: - - 9af3be0d-fe6f-4148-a2fa-0ce178a1a3fc + - ebe586ae-81a2-445e-96f7-0d2b03b9a5c3 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..8239f6c4 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": "464e064d-4767-4181-8a32-bba9797c4ad1", "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' + - '2833' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:39 GMT + - Thu, 05 Feb 2026 14:01:34 GMT Pragma: - no-cache RequestId: - - cc316c46-f24f-4610-8517-11f8afd012ae + - 3ec11572-6194-48d6-a468-b385ac7205b9 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/464e064d-4767-4181-8a32-bba9797c4ad1/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 14:01:34 GMT RequestId: - - ddb19f16-dbb0-4c53-b284-e62b7d8bda4c + - fdc7ff3e-5569-4bf2-b109-270762840790 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/464e064d-4767-4181-8a32-bba9797c4ad1/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 14:01:36 GMT RequestId: - - bc252167-4fea-406d-9fdd-07ff17314965 + - ac70d589-1c86-40fe-a2d5-1501661aa28e 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/464e064d-4767-4181-8a32-bba9797c4ad1/spark/pools response: body: - string: '{"id": "cfb27133-1062-435e-a41d-b1c55786490b", "type": "Workspace", + string: '{"id": "3ae21011-14d3-4571-b29f-6937fe428fd2", "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 14:01:36 GMT RequestId: - - 7d679caa-2f2e-4a81-ab33-9f84f5e8a033 + - 5e999be6-8c58-4efa-8e43-b0c7a4812f1a 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": "464e064d-4767-4181-8a32-bba9797c4ad1", "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' + - '2804' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:43 GMT + - Thu, 05 Feb 2026 14:01:37 GMT Pragma: - no-cache RequestId: - - 3ccadaf1-a797-4d1b-bacf-70f9292da326 + - fd88c103-1351-4403-a189-fa9d74938545 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/464e064d-4767-4181-8a32-bba9797c4ad1/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": "3ae21011-14d3-4571-b29f-6937fe428fd2", "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 14:01:37 GMT RequestId: - - 13ac80a3-1bb1-4ef2-845d-9c9a9be1061c + - 0afaf8e4-9328-469f-9f74-c1f6f752e732 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/464e064d-4767-4181-8a32-bba9797c4ad1/spark/pools/3ae21011-14d3-4571-b29f-6937fe428fd2 response: body: - string: '{"id": "cfb27133-1062-435e-a41d-b1c55786490b", "type": "Workspace", + string: '{"id": "3ae21011-14d3-4571-b29f-6937fe428fd2", "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 14:01:38 GMT RequestId: - - 9bc3ba0e-798a-43cf-b16d-97d2c97fffe9 + - 342c0d27-a370-45ec-9c5c-72a27b07f97c 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/464e064d-4767-4181-8a32-bba9797c4ad1/spark/pools/3ae21011-14d3-4571-b29f-6937fe428fd2 response: body: - string: '{"id": "cfb27133-1062-435e-a41d-b1c55786490b", "type": "Workspace", + string: '{"id": "3ae21011-14d3-4571-b29f-6937fe428fd2", "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 14:01:39 GMT RequestId: - - 952c362c-bcae-431e-bf94-7295afb639eb + - d953ab47-92e4-499b-ac0e-f94857201fc2 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": "464e064d-4767-4181-8a32-bba9797c4ad1", "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' + - '2804' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:45 GMT + - Thu, 05 Feb 2026 14:01:39 GMT Pragma: - no-cache RequestId: - - 5acc3a3f-0f4c-42e2-9bdf-168108712000 + - 245ef4b4-ef07-4313-baa6-4132b7f323d7 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/464e064d-4767-4181-8a32-bba9797c4ad1/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": "3ae21011-14d3-4571-b29f-6937fe428fd2", "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 14:01:40 GMT RequestId: - - ba76493d-d3e6-4c87-bd95-0c801bd5bd63 + - 5a8458f8-80b9-4f06-8c7a-3e4f46206562 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/464e064d-4767-4181-8a32-bba9797c4ad1/spark/pools/3ae21011-14d3-4571-b29f-6937fe428fd2 response: body: - string: '{"id": "cfb27133-1062-435e-a41d-b1c55786490b", "type": "Workspace", + string: '{"id": "3ae21011-14d3-4571-b29f-6937fe428fd2", "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 14:01:41 GMT RequestId: - - 22b447a0-e6a4-4b52-aa44-b25ea720d792 + - 5ff06e74-1786-447b-b86b-295ebcf7f11a 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": "464e064d-4767-4181-8a32-bba9797c4ad1", "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' + - '2804' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 22 Jan 2026 11:31:48 GMT + - Thu, 05 Feb 2026 14:01:41 GMT Pragma: - no-cache RequestId: - - 6fab1f36-2b80-4139-814e-5bbc07264250 + - 4af9b71c-c3ae-4e4d-9c4f-c1290d41b9a7 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/464e064d-4767-4181-8a32-bba9797c4ad1/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": "3ae21011-14d3-4571-b29f-6937fe428fd2", "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 14:01:42 GMT RequestId: - - 6677f225-2b43-477c-9294-c129e9ccf080 + - 9c70712b-3e2e-4827-8536-90b1a6ce1467 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/464e064d-4767-4181-8a32-bba9797c4ad1/spark/pools/3ae21011-14d3-4571-b29f-6937fe428fd2 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 14:01:43 GMT RequestId: - - 4eee107c-7a1d-4ec9-9861-2d2b281fbd14 + - e1772032-3b16-4d2e-ae19-50052fdab870 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..84c61637 100644 --- a/tests/test_commands/test_ls.py +++ b/tests/test_commands/test_ls.py @@ -560,15 +560,18 @@ def test_ls_workspaces_json_format_success( # endregion # region ITEM FOLDERS + @pytest.mark.parametrize("item_type, expected_folders", + [(ItemType.LAKEHOUSE, ["Files", "Tables", "TableMaintenance"]), + (ItemType.COSMOS_DB_DATABASE, ["Files", "Tables", "Code", "Audit"])]) def test_ls_item_folders_success( - self, item_factory, mock_questionary_print, cli_executor: CLIExecutor + self, item_type, expected_folders, item_factory, mock_questionary_print, cli_executor: CLIExecutor ): # Setup - lakehouse = item_factory(ItemType.LAKEHOUSE) - expected_output = ["Files", "Tables", "TableMaintenance"] + item = item_factory(item_type) + expected_output = expected_folders # Test 1: without args - cli_executor.exec_command(f"ls {lakehouse.full_path}") + cli_executor.exec_command(f"ls {item.full_path}") # Assert mock_questionary_print.assert_called() @@ -582,7 +585,7 @@ def test_ls_item_folders_success( mock_questionary_print.reset_mock() # Test 2: with long - cli_executor.exec_command(f"ls {lakehouse.full_path} --long") + cli_executor.exec_command(f"ls {item.full_path} --long") # Assert mock_questionary_print.assert_called()