Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions tests/test_commands/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,32 @@
ItemType.USER_DATA_FUNCTION, ItemType.DIGITAL_TWIN_BUILDER, ItemType.GRAPH_QUERY_SET,
])

mv_item_to_item_success_params = pytest.mark.parametrize("item_type", [
ItemType.DATA_PIPELINE, ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET,
ItemType.MIRRORED_DATABASE, ItemType.NOTEBOOK,
ItemType.REFLEX, ItemType.SPARK_JOB_DEFINITION,
ItemType.COSMOS_DB_DATABASE, ItemType.USER_DATA_FUNCTION,
])

mv_item_to_item_unsupported_failure_params = pytest.mark.parametrize("unsupported_item_type", [
ItemType.EVENTHOUSE,
ItemType.KQL_DATABASE,
ItemType.EVENTSTREAM,
])

mv_item_to_item_type_mismatch_failure_params = pytest.mark.parametrize("source_type,target_type", [
(ItemType.NOTEBOOK, ItemType.DATA_PIPELINE),
(ItemType.REPORT, ItemType.LAKEHOUSE),
(ItemType.SEMANTIC_MODEL, ItemType.WAREHOUSE)
])

mv_item_within_workspace_rename_success_params = pytest.mark.parametrize("item_type", [
ItemType.DATA_PIPELINE, ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET,
ItemType.MIRRORED_DATABASE, ItemType.NOTEBOOK,
ItemType.REFLEX, ItemType.SPARK_JOB_DEFINITION,
ItemType.COSMOS_DB_DATABASE, ItemType.USER_DATA_FUNCTION,
])

get_item_with_properties_success_params = pytest.mark.parametrize("item_type,expected_properties", [
(ItemType.ENVIRONMENT, [
"properties", "publishDetails", "connections", "published", "staging"]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '2906'
- '2425'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 11 Feb 2026 11:37:35 GMT
- Tue, 03 Feb 2026 12:52:53 GMT
Pragma:
- no-cache
RequestId:
- d124f209-10e3-476e-a413-6b9f0e99df54
- eb47046a-7799-48a1-b1a0-925e24a10e8d
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -75,15 +75,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '2906'
- '2425'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 11 Feb 2026 11:37:36 GMT
- Tue, 03 Feb 2026 12:52:54 GMT
Pragma:
- no-cache
RequestId:
- 20db6558-0e97-492e-9f29-5592396aaaac
- eb7f7d10-fd1a-4761-906c-796c6a22d2db
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -125,15 +125,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '427'
- '425'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 11 Feb 2026 11:37:41 GMT
- Tue, 03 Feb 2026 12:53:00 GMT
Pragma:
- no-cache
RequestId:
- 17acdf93-9152-4e11-894b-dffca9fc8e7c
- 1a8095be-a694-4cb6-9ab2-711d9ccad6f8
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -167,7 +167,7 @@ interactions:
uri: https://api.fabric.microsoft.com/v1/workspaces
response:
body:
string: '{"id": "d1da4094-6613-4409-a251-272059ddc87b", "displayName": "fabriccli_WorkspacePerTestclass_000001",
string: '{"id": "66eca590-0e14-4904-ac4e-e23d9b930bf1", "displayName": "fabriccli_WorkspacePerTestclass_000001",
"description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}'
headers:
Access-Control-Expose-Headers:
Expand All @@ -181,13 +181,13 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 11 Feb 2026 11:37:50 GMT
- Tue, 03 Feb 2026 12:53:07 GMT
Location:
- https://api.fabric.microsoft.com/v1/workspaces/d1da4094-6613-4409-a251-272059ddc87b
- https://api.fabric.microsoft.com/v1/workspaces/66eca590-0e14-4904-ac4e-e23d9b930bf1
Pragma:
- no-cache
RequestId:
- 4bc92acf-b032-4821-acb0-b6e3a5964acc
- 4b7b0d5f-a1d7-4735-a45f-eefb2f9cda84
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -219,7 +219,7 @@ interactions:
response:
body:
string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName":
"My workspace", "description": "", "type": "Personal"}, {"id": "d1da4094-6613-4409-a251-272059ddc87b",
"My workspace", "description": "", "type": "Personal"}, {"id": "66eca590-0e14-4904-ac4e-e23d9b930bf1",
"displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created
by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}'
headers:
Expand All @@ -230,15 +230,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '2938'
- '2461'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 11 Feb 2026 11:45:32 GMT
- Tue, 03 Feb 2026 13:00:15 GMT
Pragma:
- no-cache
RequestId:
- 6eece17d-41d2-46a2-b250-e508c690e89b
- 24af3fbf-32a3-4a82-bbbb-9b728368de04
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -266,7 +266,7 @@ interactions:
User-Agent:
- ms-fabric-cli/1.3.1 (mv; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces/d1da4094-6613-4409-a251-272059ddc87b/items
uri: https://api.fabric.microsoft.com/v1/workspaces/66eca590-0e14-4904-ac4e-e23d9b930bf1/items
response:
body:
string: '{"value": []}'
Expand All @@ -282,11 +282,11 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 11 Feb 2026 11:45:33 GMT
- Tue, 03 Feb 2026 13:00:15 GMT
Pragma:
- no-cache
RequestId:
- f9ffc35a-80a0-4b14-9932-9e467b7cb54e
- d91cdd80-186a-410c-94d4-d276eb96cb49
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -316,7 +316,7 @@ interactions:
User-Agent:
- ms-fabric-cli/1.3.1 (mv; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: DELETE
uri: https://api.fabric.microsoft.com/v1/workspaces/d1da4094-6613-4409-a251-272059ddc87b
uri: https://api.fabric.microsoft.com/v1/workspaces/66eca590-0e14-4904-ac4e-e23d9b930bf1
response:
body:
string: ''
Expand All @@ -332,11 +332,11 @@ interactions:
Content-Type:
- application/octet-stream
Date:
- Wed, 11 Feb 2026 11:45:34 GMT
- Tue, 03 Feb 2026 13:00:17 GMT
Pragma:
- no-cache
RequestId:
- 855c691c-fab1-4ace-b1e5-8ace1729e292
- 3b453b32-abda-4930-97b9-5f0f8f11fee3
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down
Loading