diff --git a/tests/test_commands/conftest.py b/tests/test_commands/conftest.py index 357053eb..20bedff6 100644 --- a/tests/test_commands/conftest.py +++ b/tests/test_commands/conftest.py @@ -103,7 +103,7 @@ ]) export_item_invalid_format_parameters = pytest.mark.parametrize("item_type,invalid_format,expected_error_suffix", [ - (ItemType.NOTEBOOK, ".txt", "Only the following formats are supported: .py, .ipynb"), + # (ItemType.NOTEBOOK, ".txt", "Only the following formats are supported: .py, .ipynb"), (ItemType.SPARK_JOB_DEFINITION, ".txt", "No formats are supported"), (ItemType.DATA_PIPELINE, ".txt", "No formats are supported"), (ItemType.MIRRORED_DATABASE, ".txt", "No formats are supported"), diff --git a/tests/test_commands/recordings/test_commands/test_export/test_export_item_invalid_format_failure[Notebook-.txt-Only the following formats are supported: .py, .ipynb].yaml b/tests/test_commands/recordings/test_commands/test_export/test_export_item_invalid_format_failure[Notebook-.txt-Only the following formats are supported: .py, .ipynb].yaml deleted file mode 100644 index 91fb4018..00000000 --- a/tests/test_commands/recordings/test_commands/test_export/test_export_item_invalid_format_failure[Notebook-.txt-Only the following formats are supported: .py, .ipynb].yaml +++ /dev/null @@ -1,578 +0,0 @@ -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": "cf67653a-969e-41c3-836d-a8c16eb9404d", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2806' - Content-Type: - - application/json; charset=utf-8 - Date: - - Fri, 06 Feb 2026 11:42:50 GMT - Pragma: - - no-cache - RequestId: - - 886c6cf4-0682-4bbf-b511-5e06189c7273 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/cf67653a-969e-41c3-836d-a8c16eb9404d/items - response: - body: - string: '{"value": [{"id": "94d8e448-add6-49fc-a93e-932eb195dea7", "type": "SemanticModel", - "displayName": "fabcli000001_auto", "description": "", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "82a052a8-1f8f-4242-9fb4-1b2b85c7a11e", "type": "Eventhouse", "displayName": - "fabcli000001_auto", "description": "Created by fab", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "f8fc2d91-77e7-47f5-9562-4b53f61ae155", "type": "KQLDatabase", "displayName": - "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '282' - Content-Type: - - application/json; charset=utf-8 - Date: - - Fri, 06 Feb 2026 11:42:51 GMT - Pragma: - - no-cache - RequestId: - - 245f890f-61cd-45ff-9858-0548a187917b - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/cf67653a-969e-41c3-836d-a8c16eb9404d/items - response: - body: - string: '{"value": [{"id": "94d8e448-add6-49fc-a93e-932eb195dea7", "type": "SemanticModel", - "displayName": "fabcli000001_auto", "description": "", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "82a052a8-1f8f-4242-9fb4-1b2b85c7a11e", "type": "Eventhouse", "displayName": - "fabcli000001_auto", "description": "Created by fab", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "f8fc2d91-77e7-47f5-9562-4b53f61ae155", "type": "KQLDatabase", "displayName": - "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '282' - Content-Type: - - application/json; charset=utf-8 - Date: - - Fri, 06 Feb 2026 11:42:51 GMT - Pragma: - - no-cache - RequestId: - - 4f99d4fb-993a-4dfb-9220-61e4193faead - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: '{"description": "Created by fab", "displayName": "fabcli000001", "type": - "Notebook", "folderId": null, "definition": {"parts": [{"path": "notebook-content.py", - "payload": "IyBGYWJyaWMgbm90ZWJvb2sgc291cmNlCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAia2VybmVsX2luZm8iOiB7CiMgTUVUQSAgICAgIm5hbWUiOiAic3luYXBzZV9weXNwYXJrIgojIE1FVEEgICB9LAojIE1FVEEgICAiZGVwZW5kZW5jaWVzIjoge30KIyBNRVRBIH0KCiMgQ0VMTCAqKioqKioqKioqKioqKioqKioqKgoKIyBXZWxjb21lIHRvIHlvdXIgbmV3IG5vdGVib29rCiMgVHlwZSBoZXJlIGluIHRoZSBjZWxsIGVkaXRvciB0byBhZGQgY29kZSEKCgojIE1FVEFEQVRBICoqKioqKioqKioqKioqKioqKioqCgojIE1FVEEgewojIE1FVEEgICAibGFuZ3VhZ2UiOiAicHl0aG9uIiwKIyBNRVRBICAgImxhbmd1YWdlX2dyb3VwIjogInN5bmFwc2VfcHlzcGFyayIKIyBNRVRBIH0K", - "payloadType": "InlineBase64"}]}}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '764' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/cf67653a-969e-41c3-836d-a8c16eb9404d/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: - - Fri, 06 Feb 2026 11:42:53 GMT - ETag: - - '""' - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/22724098-b5b9-4e74-8085-1f4f58085cbc - Pragma: - - no-cache - RequestId: - - 76fea18d-afe8-437e-9e3a-1cc02c2a3ba9 - 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: - - 22724098-b5b9-4e74-8085-1f4f58085cbc - 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/22724098-b5b9-4e74-8085-1f4f58085cbc - response: - body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-02-06T11:42:53.4388738", - "lastUpdatedTimeUtc": "2026-02-06T11:42:54.2211833", "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: - - Fri, 06 Feb 2026 11:43:14 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/22724098-b5b9-4e74-8085-1f4f58085cbc/result - Pragma: - - no-cache - RequestId: - - 15425ed3-7821-49e2-937b-d908547eabbb - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - 22724098-b5b9-4e74-8085-1f4f58085cbc - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - 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/22724098-b5b9-4e74-8085-1f4f58085cbc/result - response: - body: - string: '{"id": "5b0c8b48-3673-4a66-8bf6-76dc11efb111", "type": "Notebook", - "displayName": "fabcli000001", "description": "Created by fab", "workspaceId": - "cf67653a-969e-41c3-836d-a8c16eb9404d"}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Fri, 06 Feb 2026 11:43:16 GMT - Pragma: - - no-cache - RequestId: - - ad36d6b0-90b8-4e2f-aa79-d289ce4b69bf - 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": "cf67653a-969e-41c3-836d-a8c16eb9404d", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2806' - Content-Type: - - application/json; charset=utf-8 - Date: - - Fri, 06 Feb 2026 11:43:17 GMT - Pragma: - - no-cache - RequestId: - - c200a3d4-00ed-4e33-a23e-92f8fe140785 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/cf67653a-969e-41c3-836d-a8c16eb9404d/items - response: - body: - string: '{"value": [{"id": "94d8e448-add6-49fc-a93e-932eb195dea7", "type": "SemanticModel", - "displayName": "fabcli000001_auto", "description": "", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "82a052a8-1f8f-4242-9fb4-1b2b85c7a11e", "type": "Eventhouse", "displayName": - "fabcli000001_auto", "description": "Created by fab", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "f8fc2d91-77e7-47f5-9562-4b53f61ae155", "type": "KQLDatabase", "displayName": - "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "5b0c8b48-3673-4a66-8bf6-76dc11efb111", "type": "Notebook", "displayName": - "fabcli000001", "description": "Created by fab", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '328' - Content-Type: - - application/json; charset=utf-8 - Date: - - Fri, 06 Feb 2026 11:43:18 GMT - Pragma: - - no-cache - RequestId: - - 579e0803-4d5c-4ab8-8ea2-5aefe5b2b568 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces - response: - body: - string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "cf67653a-969e-41c3-836d-a8c16eb9404d", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created - by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '2806' - Content-Type: - - application/json; charset=utf-8 - Date: - - Fri, 06 Feb 2026 11:43:18 GMT - Pragma: - - no-cache - RequestId: - - 7ee80b2b-9268-4169-a760-73bd860b642f - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.3.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/cf67653a-969e-41c3-836d-a8c16eb9404d/items - response: - body: - string: '{"value": [{"id": "94d8e448-add6-49fc-a93e-932eb195dea7", "type": "SemanticModel", - "displayName": "fabcli000001_auto", "description": "", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "82a052a8-1f8f-4242-9fb4-1b2b85c7a11e", "type": "Eventhouse", "displayName": - "fabcli000001_auto", "description": "Created by fab", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "f8fc2d91-77e7-47f5-9562-4b53f61ae155", "type": "KQLDatabase", "displayName": - "fabcli000001_auto", "description": "fabcli000001_auto", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}, - {"id": "5b0c8b48-3673-4a66-8bf6-76dc11efb111", "type": "Notebook", "displayName": - "fabcli000001", "description": "Created by fab", "workspaceId": "cf67653a-969e-41c3-836d-a8c16eb9404d"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '328' - Content-Type: - - application/json; charset=utf-8 - Date: - - Fri, 06 Feb 2026 11:43:19 GMT - Pragma: - - no-cache - RequestId: - - 96d08a4c-2c8d-48d1-8880-07610a2ec341 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.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/cf67653a-969e-41c3-836d-a8c16eb9404d/items/5b0c8b48-3673-4a66-8bf6-76dc11efb111 - 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: - - Fri, 06 Feb 2026 11:43:20 GMT - Pragma: - - no-cache - RequestId: - - 5b68266d-b7e0-4435-85bc-2df050ea39e4 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-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