Skip to content
Draft
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
6 changes: 4 additions & 2 deletions tests/test_commands/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,16 @@
ItemType.REFLEX, ItemType.REPORT,
ItemType.SQL_DATABASE, ItemType.SEMANTIC_MODEL,
ItemType.SPARK_JOB_DEFINITION, ItemType.WAREHOUSE, ItemType.COPYJOB,
ItemType.GRAPHQLAPI, ItemType.DATAFLOW,
ItemType.GRAPHQLAPI, ItemType.DATAFLOW, ItemType.COSMOS_DB_DATABASE,
ItemType.USER_DATA_FUNCTION, ItemType.DIGITAL_TWIN_BUILDER, ItemType.GRAPH_QUERY_SET,
])

basic_item_parametrize = pytest.mark.parametrize("item_type", [
ItemType.DATA_PIPELINE, ItemType.ENVIRONMENT, ItemType.EVENTSTREAM,
ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET, ItemType.ML_EXPERIMENT,
ItemType.ML_MODEL, ItemType.MIRRORED_DATABASE, ItemType.NOTEBOOK,
ItemType.REFLEX, ItemType.SPARK_JOB_DEFINITION,
ItemType.REFLEX, ItemType.SPARK_JOB_DEFINITION, ItemType.COSMOS_DB_DATABASE,
ItemType.USER_DATA_FUNCTION, ItemType.DIGITAL_TWIN_BUILDER, ItemType.GRAPH_QUERY_SET,
])

# Export command parametrizations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '2271'
- '2906'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 28 Jan 2026 07:54:31 GMT
- Wed, 11 Feb 2026 11:29:44 GMT
Pragma:
- no-cache
RequestId:
- 77abc3e1-d0de-46fa-a502-5f7481fba1b4
- e0e9f029-a49b-4942-9a17-271f185130c4
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:
- '2271'
- '2906'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 28 Jan 2026 07:54:32 GMT
- Wed, 11 Feb 2026 11:29:44 GMT
Pragma:
- no-cache
RequestId:
- e4a5e1ab-b8f5-425f-9dd4-0466f46f58e5
- be75d8e7-b35e-4a8e-a684-827a7c0032b3
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -115,7 +115,7 @@ interactions:
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:
Expand All @@ -125,15 +125,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '425'
- '424'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 28 Jan 2026 07:54:36 GMT
- Wed, 11 Feb 2026 11:29:50 GMT
Pragma:
- no-cache
RequestId:
- eeeae5f9-f08e-4c4d-960f-5d2adf1692ff
- 298f37d4-4685-4a5c-8586-2f72f7de9cf5
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": "293fae32-f430-4d4f-9929-4cd04fc6d245", "displayName": "fabriccli_WorkspacePerTestclass_000001",
string: '{"id": "28ce164b-fb22-498a-936c-337aa8dd06f7", "displayName": "fabriccli_WorkspacePerTestclass_000001",
"description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}'
headers:
Access-Control-Expose-Headers:
Expand All @@ -177,17 +177,17 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '187'
- '188'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 28 Jan 2026 07:54:43 GMT
- Wed, 11 Feb 2026 11:30:00 GMT
Location:
- https://api.fabric.microsoft.com/v1/workspaces/293fae32-f430-4d4f-9929-4cd04fc6d245
- https://api.fabric.microsoft.com/v1/workspaces/28ce164b-fb22-498a-936c-337aa8dd06f7
Pragma:
- no-cache
RequestId:
- 0372c498-09a2-49c8-90cb-87657d8a34be
- e03865f4-ef91-4755-b3b9-bc7d4e52f031
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": "293fae32-f430-4d4f-9929-4cd04fc6d245",
"My workspace", "description": "", "type": "Personal"}, {"id": "28ce164b-fb22-498a-936c-337aa8dd06f7",
"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:
- '2305'
- '2940'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 28 Jan 2026 07:57:48 GMT
- Wed, 11 Feb 2026 11:30:50 GMT
Pragma:
- no-cache
RequestId:
- 5ae56619-f725-40b9-b6ed-96fd627c4e5a
- 9ca111ba-65ee-4215-930c-38cdcdad55c1
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -266,10 +266,13 @@ interactions:
User-Agent:
- ms-fabric-cli/1.3.1 (cd; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces/293fae32-f430-4d4f-9929-4cd04fc6d245/items
uri: https://api.fabric.microsoft.com/v1/workspaces/28ce164b-fb22-498a-936c-337aa8dd06f7/items
response:
body:
string: '{"value": []}'
string: '{"value": [{"id": "26a1202d-2d45-48c7-916e-f4903e5400b7", "type": "SQLEndpoint",
"displayName": "fabcli000001dtdm", "description": "", "workspaceId": "28ce164b-fb22-498a-936c-337aa8dd06f7"},
{"id": "9509bf64-e430-4e1f-8861-e8f09f5e050a", "type": "Lakehouse", "displayName":
"fabcli000001dtdm", "description": "", "workspaceId": "28ce164b-fb22-498a-936c-337aa8dd06f7"}]}'
headers:
Access-Control-Expose-Headers:
- RequestId
Expand All @@ -278,15 +281,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '32'
- '217'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 28 Jan 2026 07:57:49 GMT
- Wed, 11 Feb 2026 11:30:51 GMT
Pragma:
- no-cache
RequestId:
- 582ae0d5-5b2b-43c7-a6a0-596de06a6bc5
- 86199a4b-a690-4877-8551-a03d380b6a12
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -316,7 +319,7 @@ interactions:
User-Agent:
- ms-fabric-cli/1.3.1 (cd; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: DELETE
uri: https://api.fabric.microsoft.com/v1/workspaces/293fae32-f430-4d4f-9929-4cd04fc6d245
uri: https://api.fabric.microsoft.com/v1/workspaces/28ce164b-fb22-498a-936c-337aa8dd06f7
response:
body:
string: ''
Expand All @@ -332,11 +335,11 @@ interactions:
Content-Type:
- application/octet-stream
Date:
- Wed, 28 Jan 2026 07:57:49 GMT
- Wed, 11 Feb 2026 11:30:52 GMT
Pragma:
- no-cache
RequestId:
- 5481d436-c6e4-4acd-8c1f-560498a31da9
- 2cac22e7-7c05-454a-8a52-58f7977119c3
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down
Loading
Loading