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
5 changes: 5 additions & 0 deletions tests/test_commands/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@
"x-ms-authorization-auxiliary",
]

unassign_failure_params = pytest.mark.parametrize("entity_type,factory_key,path_template", [
(VirtualWorkspaceType.CAPACITY, "test_data", "/.capacities/{}.Capacity"),
(VirtualWorkspaceType.DOMAIN, "virtual_workspace_item_factory", None),
])


def pytest_addoption(parser):
parser.addoption(
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 (unassign; 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'
- '3069'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 03 Sep 2025 08:30:09 GMT
- Mon, 23 Feb 2026 09:35:33 GMT
Pragma:
- no-cache
RequestId:
- 54479a5a-8e13-4a5c-bf9c-982bdba0c491
- f5559088-59e3-4fd2-93ff-cb2114ad189b
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 (unassign; 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'
- '3069'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 03 Sep 2025 08:30:09 GMT
- Mon, 23 Feb 2026 09:35:33 GMT
Pragma:
- no-cache
RequestId:
- 4feefa45-e29e-4683-b6bc-0e5881814e49
- afebf579-6c1d-430b-890b-abb237339d3e
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 (unassign; 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": "F16", "region": "Central US", "state":
"Active"}]}'
headers:
Access-Control-Expose-Headers:
Expand All @@ -125,23 +125,23 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '456'
- '424'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 03 Sep 2025 08:30:59 GMT
- Mon, 23 Feb 2026 09:35:38 GMT
Pragma:
- no-cache
RequestId:
- 3ef4d07f-9a39-42d2-8408-edb4229075ae
- e03e2615-368b-4dca-91da-b3a86d1529a9
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 (unassign; 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": "04eab5b1-8c1c-4613-865a-94ef3e0d5727", "displayName": "fabriccli_WorkspacePerTestclass_000001",
string: '{"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d", "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:
- '188'
- '190'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 03 Sep 2025 08:31:05 GMT
- Mon, 23 Feb 2026 09:35:47 GMT
Location:
- https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727
- https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d
Pragma:
- no-cache
RequestId:
- 5225f890-f222-47cd-8818-e25effa0866a
- a1c385bd-3879-463f-85e4-e53b467692d7
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 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2)
- ms-fabric-cli/1.3.1 (unassign; 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": "04eab5b1-8c1c-4613-865a-94ef3e0d5727",
string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName":
"My workspace", "description": "", "type": "Personal"}, {"id": "6b127bc7-a57f-4b28-af55-5e5bec26401d",
"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:
- '360'
- '3104'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 03 Sep 2025 08:31:53 GMT
- Mon, 23 Feb 2026 09:36:22 GMT
Pragma:
- no-cache
RequestId:
- 30d39d0d-8619-4f1c-b53a-1b6b2ab10896
- 82b4176b-0621-4ef6-ae92-230cb6dc14a3
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 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2)
- ms-fabric-cli/1.3.1 (unassign; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727/items
uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d/items
response:
body:
string: '{"value": []}'
Expand All @@ -282,19 +282,19 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 03 Sep 2025 08:31:53 GMT
- Mon, 23 Feb 2026 09:36:23 GMT
Pragma:
- no-cache
RequestId:
- d05bc7e7-e528-4e13-bc4f-1a78037c4acc
- df6b6578-c010-41c4-b68f-8cdd2cc2fae8
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 (unassign; Linux; x86_64; 5.15.167.4-microsoft-standard-WSL2)
- ms-fabric-cli/1.3.1 (unassign; Linux; x86_64; 6.6.87.2-microsoft-standard-WSL2)
method: DELETE
uri: https://api.fabric.microsoft.com/v1/workspaces/04eab5b1-8c1c-4613-865a-94ef3e0d5727
uri: https://api.fabric.microsoft.com/v1/workspaces/6b127bc7-a57f-4b28-af55-5e5bec26401d
response:
body:
string: ''
Expand All @@ -332,19 +332,19 @@ interactions:
Content-Type:
- application/octet-stream
Date:
- Wed, 03 Sep 2025 08:31:53 GMT
- Mon, 23 Feb 2026 09:36:23 GMT
Pragma:
- no-cache
RequestId:
- 04c16fd9-9d91-4f65-a068-13ad7de4d062
- 17433a90-aab6-4e20-ab45-65427f40addf
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