Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
c8e6870
Adds support for environmetn definitions
v-alexmoraru Apr 15, 2026
063c6fc
Merge branch 'main' into dev/v-alexmoraru/support-environment-definit…
v-alexmoraru Apr 15, 2026
5711f26
Re-records failing tests
v-alexmoraru Apr 16, 2026
0d45c51
Merge branch 'main' into dev/v-alexmoraru/support-environment-definit…
v-alexmoraru Apr 16, 2026
a463c2a
Re-records import tests
v-alexmoraru Apr 16, 2026
d328b9e
Re-records all import tests
v-alexmoraru Apr 16, 2026
47bdecb
Adds changelog
v-alexmoraru Apr 17, 2026
933f1f1
Reverts environment processing
v-alexmoraru Apr 22, 2026
668ea4b
Reverts import file
v-alexmoraru Apr 22, 2026
d1cfdf3
Updates import item success test
v-alexmoraru Apr 23, 2026
785a126
Merge branch 'main' into dev/v-alexmoraru/support-environment-definit…
v-alexmoraru Apr 23, 2026
dd0f57d
Re-records import tests
v-alexmoraru Apr 23, 2026
8a15dcc
Reverts to main
v-alexmoraru May 29, 2026
14e955a
Merge branch 'main' into dev/v-alexmoraru/support-environment-definit…
v-alexmoraru May 29, 2026
2c467eb
Support environment definitions
v-alexmoraru May 29, 2026
9002906
Removes env from import
v-alexmoraru May 29, 2026
a71fc48
Copilot review suggestion
v-alexmoraru May 29, 2026
69c40a6
Merge branch 'main' into dev/v-alexmoraru/support-environment-definit…
v-alexmoraru Jun 2, 2026
ac1053f
Re-records environment tests
v-alexmoraru Jun 2, 2026
9a6e4ba
Records new environment tests
v-alexmoraru Jun 2, 2026
c72c127
Review suggestions
v-alexmoraru Jun 2, 2026
0504caf
Merge branch 'main' into dev/v-alexmoraru/support-environment-definit…
v-alexmoraru Jun 2, 2026
1e45a5c
Supports import environment
v-alexmoraru Jun 2, 2026
e1d2d52
Re-records import env tests
v-alexmoraru Jun 2, 2026
6d7667d
Re-records all import tests
v-alexmoraru Jun 2, 2026
fc072fc
Review suggestions
v-alexmoraru Jun 2, 2026
a1a8b8f
Reverts to environment workaround as fallback
v-alexmoraru Jun 8, 2026
efeead4
Merge branch 'main' into dev/v-alexmoraru/support-environment-definit…
v-alexmoraru Jun 8, 2026
e2868ae
Automatic publish ENV after import
v-alexmoraru Jun 15, 2026
0a7333c
Re-records create import Env
v-alexmoraru Jun 15, 2026
4dc2ebc
Re-records import tests
v-alexmoraru Jun 15, 2026
60b3a6d
Re-records CosmosDB import test
v-alexmoraru Jun 15, 2026
de4c9a8
Merge branch 'main' into dev/v-alexmoraru/support-environment-definit…
ayeshurun Jun 21, 2026
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: 6 additions & 0 deletions .changes/unreleased/added-20260417-105920.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: added
body: Adds support for environment definitions
time: 2026-04-17T10:59:20.288002+03:00
custom:
Author: v-alexmoraru
AuthorLink: https://github.com/v-alexmoraru
3 changes: 3 additions & 0 deletions src/fabric_cli/core/fab_config/command_support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ commands:
- sql_database
- user_data_function
- map
- environment
cp:
supported_elements:
- workspace
Expand Down Expand Up @@ -205,6 +206,7 @@ commands:
- sql_database
- user_data_function
- map
- environment
ln:
supported_elements:
- onelake
Expand Down Expand Up @@ -263,6 +265,7 @@ commands:
- graph_query_set
- map
- lakehouse
- environment
import:
supported_items:
- report
Expand Down
1 change: 1 addition & 0 deletions src/fabric_cli/core/fab_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,4 +605,5 @@ class MirroredDatabaseFolders(Enum):
ItemType.GRAPH_QUERY_SET: {"default": ""},
ItemType.VARIABLE_LIBRARY: {"default": ""},
ItemType.MAP: {"default": ""},
ItemType.ENVIRONMENT: {"default": ""},
}
12 changes: 10 additions & 2 deletions tests/test_commands/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
ItemType.COSMOS_DB_DATABASE,
ItemType.USER_DATA_FUNCTION,
ItemType.MAP,
ItemType.ENVIRONMENT,
],
)

Expand Down Expand Up @@ -246,6 +247,7 @@
ItemType.COSMOS_DB_DATABASE,
ItemType.USER_DATA_FUNCTION,
ItemType.MAP,
ItemType.ENVIRONMENT,
],
)

Expand Down Expand Up @@ -282,7 +284,7 @@
(ItemType.NOTEBOOK, True),
(ItemType.DATA_PIPELINE, True),
(ItemType.LAKEHOUSE, True),
(ItemType.ENVIRONMENT, False),
(ItemType.ENVIRONMENT, True),
(ItemType.WAREHOUSE, False),
(ItemType.COSMOS_DB_DATABASE, True),
(ItemType.USER_DATA_FUNCTION, True),
Expand All @@ -293,7 +295,9 @@
get_virtual_workspace_success_params = pytest.mark.parametrize(
"virtual_workspace_type,expected_properties",
[
(VirtualWorkspaceType.DOMAIN, ["contributorsScope", "domainWorkspaces"]),
(
VirtualWorkspaceType.DOMAIN,
["contributorsScope", "domainWorkspaces"]),
Comment thread
v-alexmoraru marked this conversation as resolved.
(
VirtualWorkspaceType.GATEWAY,
["type", "capacityId", "numberOfMemberGateways"],
Expand Down Expand Up @@ -412,6 +416,7 @@
ItemType.DIGITAL_TWIN_BUILDER_FLOW,
ItemType.MAP,
ItemType.LAKEHOUSE,
ItemType.ENVIRONMENT,
],
)

Expand Down Expand Up @@ -443,6 +448,7 @@
(ItemType.DIGITAL_TWIN_BUILDER, 2),
(ItemType.DIGITAL_TWIN_BUILDER_FLOW, 2),
(ItemType.LAKEHOUSE, 4),
(ItemType.ENVIRONMENT, 2),
],
)

Expand Down Expand Up @@ -484,6 +490,7 @@
ItemType.SPARK_JOB_DEFINITION,
ItemType.COSMOS_DB_DATABASE,
ItemType.USER_DATA_FUNCTION,
ItemType.ENVIRONMENT,
# ItemType.DIGITAL_TWIN_BUILDER,
# ItemType.DIGITAL_TWIN_BUILDER_FLOW,
],
Expand All @@ -501,6 +508,7 @@
ItemType.SPARK_JOB_DEFINITION,
ItemType.COSMOS_DB_DATABASE,
ItemType.USER_DATA_FUNCTION,
ItemType.ENVIRONMENT,
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.6.1 (None; Darwin/25.4.0; Python/3.12.13)
- ms-fabric-cli/1.6.1 (mv; Linux/6.12.76-linuxkit; Python/3.12.11)
Comment thread
v-alexmoraru marked this conversation as resolved.
Comment thread
v-alexmoraru marked this conversation as resolved.
Comment thread
v-alexmoraru marked this conversation as resolved.
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces
response:
Expand All @@ -26,15 +26,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '2490'
- '2925'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 13 May 2026 10:10:53 GMT
- Tue, 02 Jun 2026 08:24:53 GMT
Pragma:
- no-cache
RequestId:
- d29b8156-8378-488f-95ac-db85d30201c4
- 9f4d4def-51e4-4133-bcb1-855d9fe894f6
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand All @@ -60,7 +60,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.6.1 (None; Darwin/25.4.0; Python/3.12.13)
- ms-fabric-cli/1.6.1 (mv; Linux/6.12.76-linuxkit; Python/3.12.11)
Comment thread
v-alexmoraru marked this conversation as resolved.
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces
response:
Expand All @@ -75,15 +75,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '2490'
- '2925'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 13 May 2026 10:10:54 GMT
- Tue, 02 Jun 2026 08:24:54 GMT
Pragma:
- no-cache
RequestId:
- c8fa6768-f93f-448b-9ab8-706395fb8bfb
- 1770d246-6340-4a41-8b9b-15ed65f74327
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand All @@ -109,7 +109,7 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.6.1 (None; Darwin/25.4.0; Python/3.12.13)
- ms-fabric-cli/1.6.1 (mv; Linux/6.12.76-linuxkit; Python/3.12.11)
Comment thread
v-alexmoraru marked this conversation as resolved.
method: GET
uri: https://api.fabric.microsoft.com/v1/capacities
response:
Expand All @@ -125,15 +125,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '426'
- '467'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 13 May 2026 10:11:01 GMT
- Tue, 02 Jun 2026 08:24:59 GMT
Pragma:
- no-cache
RequestId:
- 0518a4ec-9de9-4d78-8498-6f7d2e65e01a
- 98bf2a6b-4fcb-4f05-98ed-f01e942a8c50
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -162,12 +162,12 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.6.1 (None; Darwin/25.4.0; Python/3.12.13)
- ms-fabric-cli/1.6.1 (mv; Linux/6.12.76-linuxkit; Python/3.12.11)
Comment thread
v-alexmoraru marked this conversation as resolved.
method: POST
uri: https://api.fabric.microsoft.com/v1/workspaces
response:
body:
string: '{"id": "4a5d36db-b7c1-4b14-a4d7-57200d02ddd0", "displayName": "fabriccli_WorkspacePerTestclass_000001",
string: '{"id": "17269422-3ac5-4e8d-bdf2-e2f9c37e009b", "displayName": "fabriccli_WorkspacePerTestclass_000001",
"description": "", "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, 13 May 2026 10:11:10 GMT
- Tue, 02 Jun 2026 08:25:05 GMT
Location:
- https://api.fabric.microsoft.com/v1/workspaces/4a5d36db-b7c1-4b14-a4d7-57200d02ddd0
- https://api.fabric.microsoft.com/v1/workspaces/17269422-3ac5-4e8d-bdf2-e2f9c37e009b
Pragma:
- no-cache
RequestId:
- 87af2bf4-897a-4ae1-9622-f13de0e7741a
- cfa1b40e-f082-4c99-92b7-a0f64798d55c
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand All @@ -213,13 +213,13 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.6.1 (cp; Darwin/25.4.0; Python/3.12.13)
- ms-fabric-cli/1.6.1 (cp; Linux/6.12.76-linuxkit; Python/3.12.11)
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": "4a5d36db-b7c1-4b14-a4d7-57200d02ddd0",
"My workspace", "description": "", "type": "Personal"}, {"id": "17269422-3ac5-4e8d-bdf2-e2f9c37e009b",
"displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "",
"type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}'
headers:
Expand All @@ -230,15 +230,15 @@ interactions:
Content-Encoding:
- gzip
Content-Length:
- '2524'
- '2959'
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 13 May 2026 10:14:06 GMT
- Tue, 02 Jun 2026 08:45:54 GMT
Pragma:
- no-cache
RequestId:
- 07fcd38f-28af-4ed2-be7c-fcb26e470e1b
- 77256167-43f4-4409-a12d-c514cb41f905
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand All @@ -264,9 +264,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.6.1 (cp; Darwin/25.4.0; Python/3.12.13)
- ms-fabric-cli/1.6.1 (cp; Linux/6.12.76-linuxkit; Python/3.12.11)
method: GET
uri: https://api.fabric.microsoft.com/v1/workspaces/4a5d36db-b7c1-4b14-a4d7-57200d02ddd0/items
uri: https://api.fabric.microsoft.com/v1/workspaces/17269422-3ac5-4e8d-bdf2-e2f9c37e009b/items
response:
body:
string: '{"value": []}'
Expand All @@ -282,11 +282,11 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- Wed, 13 May 2026 10:14:07 GMT
- Tue, 02 Jun 2026 08:45:56 GMT
Pragma:
- no-cache
RequestId:
- c6494dc3-5361-4cc6-ba7d-d16f463280d4
- 8d8087f2-f08b-43e2-a7bf-960e0ad70b1d
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down Expand Up @@ -314,9 +314,9 @@ interactions:
Content-Type:
- application/json
User-Agent:
- ms-fabric-cli/1.6.1 (cp; Darwin/25.4.0; Python/3.12.13)
- ms-fabric-cli/1.6.1 (cp; Linux/6.12.76-linuxkit; Python/3.12.11)
method: DELETE
uri: https://api.fabric.microsoft.com/v1/workspaces/4a5d36db-b7c1-4b14-a4d7-57200d02ddd0
uri: https://api.fabric.microsoft.com/v1/workspaces/17269422-3ac5-4e8d-bdf2-e2f9c37e009b
response:
body:
string: ''
Expand All @@ -332,11 +332,11 @@ interactions:
Content-Type:
- application/octet-stream
Date:
- Wed, 13 May 2026 10:14:08 GMT
- Tue, 02 Jun 2026 08:45:56 GMT
Pragma:
- no-cache
RequestId:
- 8a869623-98da-42fb-a6b7-8ad36b31a252
- 03358a9c-fcc0-4871-868f-7f731891ca3d
Strict-Transport-Security:
- max-age=31536000; includeSubDomains
X-Content-Type-Options:
Expand Down
Loading
Loading