Skip to content
Open
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
19 changes: 19 additions & 0 deletions tests/test_commands/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,25 @@
)
from tests.test_commands.utils import cli_path_join, set_vcr_mode_env

custom_parametrize = pytest.mark.parametrize("item_type", [
ItemType.DATA_PIPELINE,
ItemType.ENVIRONMENT, ItemType.EVENTHOUSE, ItemType.EVENTSTREAM,
ItemType.KQL_DASHBOARD, ItemType.KQL_QUERYSET,
ItemType.LAKEHOUSE, ItemType.ML_EXPERIMENT, ItemType.ML_MODEL,
ItemType.MIRRORED_DATABASE, ItemType.NOTEBOOK,
ItemType.REFLEX, ItemType.REPORT,
ItemType.SQL_DATABASE, ItemType.SEMANTIC_MODEL,
ItemType.SPARK_JOB_DEFINITION, ItemType.WAREHOUSE, ItemType.COPYJOB,
ItemType.GRAPHQLAPI, ItemType.DATAFLOW,
])

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,
])

FILTER_HEADERS = [
"authorization",
"client-request-id",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.0.0 (cd; 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:
body:
string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName":
string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName":
"My workspace", "description": "", "type": "Personal"}]}'
headers:
Access-Control-Expose-Headers:
Expand All @@ -26,23 +26,23 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '323'
- '2271'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 02 Sep 2025 18:08:23 GMT
- Wed, 28 Jan 2026 07:54:31 GMT
Pragma:
- no-cache
RequestId:
- e5bfcae4-49fa-474f-8a54-cbc93765bb81
- 77abc3e1-d0de-46fa-a502-5f7481fba1b4
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
- nosniff
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:
Expand All @@ -60,12 +60,12 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.0.0 (cd; 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:
body:
string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName":
string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName":
"My workspace", "description": "", "type": "Personal"}]}'
headers:
Access-Control-Expose-Headers:
Expand All @@ -75,23 +75,23 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '323'
- '2271'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 02 Sep 2025 18:08:23 GMT
- Wed, 28 Jan 2026 07:54:32 GMT
Pragma:
- no-cache
RequestId:
- 0d5c5e29-1383-47bb-be9c-bfc7e67f0b52
- e4a5e1ab-b8f5-425f-9dd4-0466f46f58e5
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
- nosniff
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:
Expand All @@ -109,13 +109,13 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.0.0 (cd; 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": "F16", "region": "West Europe", "state":
"mocked_fabriccli_capacity_name", "sku": "F32", "region": "Central US", "state":
"Active"}]}'
headers:
Access-Control-Expose-Headers:
Expand All @@ -125,23 +125,23 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '456'
- '425'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 02 Sep 2025 18:08:28 GMT
- Wed, 28 Jan 2026 07:54:36 GMT
Pragma:
- no-cache
RequestId:
- 0baf4c77-8680-4f8e-a74a-bad86bf9361e
- eeeae5f9-f08e-4c4d-960f-5d2adf1692ff
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
- nosniff
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:
Expand All @@ -162,12 +162,12 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.0.0 (cd; 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": "24e77cc9-b249-414d-a402-05915759c048", "displayName": "fabriccli_WorkspacePerTestclass_000001",
string: '{"id": "293fae32-f430-4d4f-9929-4cd04fc6d245", "displayName": "fabriccli_WorkspacePerTestclass_000001",
"description": "Created by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}'
headers:
Access-Control-Expose-Headers:
Expand All @@ -177,25 +177,25 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '189'
- '187'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 02 Sep 2025 18:08:34 GMT
- Wed, 28 Jan 2026 07:54:43 GMT
Location:
- https://api.fabric.microsoft.com/v1/workspaces/24e77cc9-b249-414d-a402-05915759c048
- https://api.fabric.microsoft.com/v1/workspaces/293fae32-f430-4d4f-9929-4cd04fc6d245
Pragma:
- no-cache
RequestId:
- f7af61ad-d2b4-413f-9069-6ce658374380
- 0372c498-09a2-49c8-90cb-87657d8a34be
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
- nosniff
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:
Expand All @@ -213,13 +213,13 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.0.0 (cd; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2)
- 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
response:
body:
string: '{"value": [{"id": "94da8ea5-0bd6-4a9e-b717-5fdb482f4c71", "displayName":
"My workspace", "description": "", "type": "Personal"}, {"id": "24e77cc9-b249-414d-a402-05915759c048",
string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName":
"My workspace", "description": "", "type": "Personal"}, {"id": "293fae32-f430-4d4f-9929-4cd04fc6d245",
"displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "Created
by fab", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}'
headers:
Expand All @@ -230,23 +230,23 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '355'
- '2305'
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 02 Sep 2025 18:18:20 GMT
- Wed, 28 Jan 2026 07:57:48 GMT
Pragma:
- no-cache
RequestId:
- e40b801b-9e34-4a1a-b177-e0e9f9d372a5
- 5ae56619-f725-40b9-b6ed-96fd627c4e5a
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
- nosniff
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:
Expand All @@ -264,9 +264,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.0.0 (cd; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2)
- 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/24e77cc9-b249-414d-a402-05915759c048/items
uri: https://api.fabric.microsoft.com/v1/workspaces/293fae32-f430-4d4f-9929-4cd04fc6d245/items
response:
body:
string: '{"value": []}'
Expand All @@ -282,19 +282,19 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- Tue, 02 Sep 2025 18:18:21 GMT
- Wed, 28 Jan 2026 07:57:49 GMT
Pragma:
- no-cache
RequestId:
- 2703ca19-69b7-4f7e-bf50-fa05a75a3dd2
- 582ae0d5-5b2b-43c7-a6a0-596de06a6bc5
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
- nosniff
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:
Expand All @@ -314,9 +314,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.0.0 (cd; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2)
- 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/24e77cc9-b249-414d-a402-05915759c048
uri: https://api.fabric.microsoft.com/v1/workspaces/293fae32-f430-4d4f-9929-4cd04fc6d245
response:
body:
string: ''
Expand All @@ -332,19 +332,19 @@ interactions:
Content-Type:
- application/octet-stream
Date:
- Tue, 02 Sep 2025 18:18:21 GMT
- Wed, 28 Jan 2026 07:57:49 GMT
Pragma:
- no-cache
RequestId:
- 5c1c8141-9fdb-476a-aa16-562d08edcfeb
- 5481d436-c6e4-4acd-8c1f-560498a31da9
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
- nosniff
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:
Expand Down
Loading