From 9ed7aca364fdb34461a6467039c1fc49194a9e2b Mon Sep 17 00:00:00 2001 From: Alex Moraru Date: Thu, 18 Jun 2026 04:33:36 +0000 Subject: [PATCH 01/22] Supports DB creation with initial properties --- src/fabric_cli/core/fab_constant.py | 14 ++ src/fabric_cli/errors/common.py | 22 ++ src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 83 +++++++ tests/test_utils/test_fab_cmd_mkdir_utils.py | 223 +++++++++++++++++++ 4 files changed, 342 insertions(+) diff --git a/src/fabric_cli/core/fab_constant.py b/src/fabric_cli/core/fab_constant.py index 4fd00e7b9..e2b257cce 100644 --- a/src/fabric_cli/core/fab_constant.py +++ b/src/fabric_cli/core/fab_constant.py @@ -352,3 +352,17 @@ # Invalid query parameters for set command across all fabric resources SET_COMMAND_INVALID_QUERIES = ["id", "type", "workspaceId", "folderId"] +# SQLDatabase property validation +SQL_DATABASE_BACKUP_RETENTION_MIN_DAYS = 1 +SQL_DATABASE_BACKUP_RETENTION_MAX_DAYS = 35 +SQL_DATABASE_BACKUP_RETENTION_PROPERTY = "properties.backupRetentionDays" + +# SQLDatabase creation modes +SQL_DATABASE_CREATION_MODE_NEW = "New" +SQL_DATABASE_CREATION_MODE_RESTORE = "Restore" +SQL_DATABASE_CREATION_MODE_RESTORE_DELETED = "RestoreDeletedDatabase" +SQL_DATABASE_VALID_CREATION_MODES = [ + SQL_DATABASE_CREATION_MODE_NEW, + SQL_DATABASE_CREATION_MODE_RESTORE, + SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, +] diff --git a/src/fabric_cli/errors/common.py b/src/fabric_cli/errors/common.py index 6fcfc0009..921eeeddd 100644 --- a/src/fabric_cli/errors/common.py +++ b/src/fabric_cli/errors/common.py @@ -264,3 +264,25 @@ def unsupported_parameter(key: str) -> str: @staticmethod def invalid_parameter_format(param: str) -> str: return f"Invalid parameter format: '{param}'. Use key=value or key!=value." + + @staticmethod + def invalid_backup_retention_days(value: str, min_days: int, max_days: int) -> str: + return ( + f"Invalid backupRetentionDays value '{value}'. " + f"Must be an integer between {min_days} and {max_days} days." + ) + + @staticmethod + def invalid_sql_database_creation_mode(mode: str, valid_modes: list) -> str: + return ( + f"Invalid creation mode '{mode}'. " + f"Valid modes are: {', '.join(valid_modes)}." + ) + + @staticmethod + def sql_database_property_not_allowed_for_mode( + property_name: str, mode: str + ) -> str: + return ( + f"Property '{property_name}' is not allowed when using creation mode '{mode}'." + ) diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index 5f0fa1d4e..d516b4d22 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -14,6 +14,7 @@ from fabric_cli.core.fab_types import ItemType from fabric_cli.core.hiearchy.fab_hiearchy import Item from fabric_cli.errors import ErrorMessages +from fabric_cli.errors.common import CommonErrors from fabric_cli.utils import fab_ui as utils_ui @@ -218,6 +219,11 @@ def add_type_specific_payload(item: Item, args, payload): ] } + case ItemType.SQL_DATABASE: + creation_payload = _build_sql_database_creation_payload(params) + if creation_payload: + payload_dict["creationPayload"] = creation_payload + return payload_dict @@ -344,6 +350,8 @@ def get_params_per_item_type(item: Item): case ItemType.MOUNTED_DATA_FACTORY: required_params = ["subscriptionId", "resourceGroup", "factoryName"] + case ItemType.SQL_DATABASE: + optional_params = ["mode", "backupRetentionDays", "collation"] return required_params, optional_params @@ -791,6 +799,81 @@ def lowercase_keys(data): return data +def _build_sql_database_creation_payload(params: dict) -> dict | None: + """Build the creationPayload for SQLDatabase creation. + + Supports 'New' mode (default) with backupRetentionDays and collation properties. + Restore modes do not accept these properties. + + Returns None if no SQLDatabase-specific params provided. + """ + mode = params.get("mode") + backup_retention_days = params.get("backupretentiondays") + collation = params.get("collation") + + if mode is None and backup_retention_days is None and collation is None: + return None + + # Resolve and validate mode + if mode: + matched_mode = next( + ( + m for m in fab_constant.SQL_DATABASE_VALID_CREATION_MODES + if m.lower() == mode.lower() + ), + None + ) + if not matched_mode: + raise FabricCLIError( + CommonErrors.invalid_sql_database_creation_mode( + mode, fab_constant.SQL_DATABASE_VALID_CREATION_MODES + ), + fab_constant.ERROR_INVALID_INPUT, + ) + mode = matched_mode + else: + mode = fab_constant.SQL_DATABASE_CREATION_MODE_NEW + + # Validate properties are only used with 'New' mode + if mode != fab_constant.SQL_DATABASE_CREATION_MODE_NEW: + for prop_name, prop_value in [ + ("backupRetentionDays", backup_retention_days), + ("collation", collation) + ]: + if prop_value is not None: + raise FabricCLIError( + CommonErrors.sql_database_property_not_allowed_for_mode(prop_name, mode), + fab_constant.ERROR_INVALID_INPUT, + ) + + creation_payload: dict = {"creationMode": mode} + + if backup_retention_days is not None: + _validate_backup_retention_days(backup_retention_days) + creation_payload["backupRetentionDays"] = int(backup_retention_days) + + if collation is not None: + creation_payload["collation"] = collation + + return creation_payload + + +def _validate_backup_retention_days(value: str) -> None: + """Validate backupRetentionDays is an integer within 1-35 range.""" + min_days = fab_constant.SQL_DATABASE_BACKUP_RETENTION_MIN_DAYS + max_days = fab_constant.SQL_DATABASE_BACKUP_RETENTION_MAX_DAYS + + try: + int_value = int(value) + if not min_days <= int_value <= max_days: + raise ValueError() + except (ValueError, TypeError): + raise FabricCLIError( + CommonErrors.invalid_backup_retention_days(str(value), min_days, max_days), + fab_constant.ERROR_INVALID_INPUT, + ) + + def validate_spark_pool_params(params): # Node size options allowed_node_sizes = {"small", "medium", "large", "xlarge", "xxlarge"} diff --git a/tests/test_utils/test_fab_cmd_mkdir_utils.py b/tests/test_utils/test_fab_cmd_mkdir_utils.py index 41d12cd4e..237d79fe7 100644 --- a/tests/test_utils/test_fab_cmd_mkdir_utils.py +++ b/tests/test_utils/test_fab_cmd_mkdir_utils.py @@ -205,3 +205,226 @@ def test_find_mpe_connection_return_403_success(self): called_url = call_args.args[1] if len(call_args.args) > 1 else call_args.kwargs['url'] assert "privateEndpointConnections" in called_url assert "api-version=2023-11-01" in called_url + + +# SQLDatabase creation payload tests +class TestBuildSqlDatabaseCreationPayload: + """Test cases for _build_sql_database_creation_payload function.""" + + def test_build_sql_database_creation_payload_no_params_returns_none(self): + """Test that no creationPayload is returned when no SQLDatabase params provided.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + result = _build_sql_database_creation_payload({}) + assert result is None + + def test_build_sql_database_creation_payload_unrelated_params_returns_none(self): + """Test that no creationPayload is returned when unrelated params provided.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + result = _build_sql_database_creation_payload({"description": "test"}) + assert result is None + + def test_build_sql_database_creation_payload_mode_new_explicit_success(self): + """Test SQLDatabase creation with explicit mode=New.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"mode": "new"} + result = _build_sql_database_creation_payload(params) + + assert result is not None + assert result["creationMode"] == "New" + + def test_build_sql_database_creation_payload_backup_retention_days_success(self): + """Test SQLDatabase creation with backupRetentionDays infers mode=New.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"backupretentiondays": "21"} + result = _build_sql_database_creation_payload(params) + + assert result is not None + assert result["creationMode"] == "New" + assert result["backupRetentionDays"] == 21 + + def test_build_sql_database_creation_payload_collation_success(self): + """Test SQLDatabase creation with collation infers mode=New.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"collation": "SQL_Latin1_General_CP1_CI_AS"} + result = _build_sql_database_creation_payload(params) + + assert result is not None + assert result["creationMode"] == "New" + assert result["collation"] == "SQL_Latin1_General_CP1_CI_AS" + + def test_build_sql_database_creation_payload_both_properties_success(self): + """Test SQLDatabase creation with both backupRetentionDays and collation.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = { + "mode": "New", + "backupretentiondays": "7", + "collation": "Latin1_General_100_CI_AS_KS_WS_SC_UTF8", + } + result = _build_sql_database_creation_payload(params) + + assert result is not None + assert result["creationMode"] == "New" + assert result["backupRetentionDays"] == 7 + assert result["collation"] == "Latin1_General_100_CI_AS_KS_WS_SC_UTF8" + + def test_build_sql_database_creation_payload_mode_case_insensitive_success(self): + """Test that mode parameter is case-insensitive.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"mode": "NEW", "backupretentiondays": "14"} + result = _build_sql_database_creation_payload(params) + + assert result is not None + assert result["creationMode"] == "New" + assert result["backupRetentionDays"] == 14 + + def test_build_sql_database_creation_payload_backup_retention_min_success(self): + """Test backupRetentionDays with minimum value (1).""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"backupretentiondays": "1"} + result = _build_sql_database_creation_payload(params) + + assert result["backupRetentionDays"] == 1 + + def test_build_sql_database_creation_payload_backup_retention_max_success(self): + """Test backupRetentionDays with maximum value (35).""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"backupretentiondays": "35"} + result = _build_sql_database_creation_payload(params) + + assert result["backupRetentionDays"] == 35 + + def test_build_sql_database_creation_payload_backup_retention_out_of_range_failure( + self, + ): + """Test that backupRetentionDays outside 1-35 range raises error.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"backupretentiondays": "36"} + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + assert "36" in str(exc_info.value.message) + assert "1" in str(exc_info.value.message) + assert "35" in str(exc_info.value.message) + + def test_build_sql_database_creation_payload_backup_retention_zero_failure(self): + """Test that backupRetentionDays of 0 raises error.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"backupretentiondays": "0"} + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + + def test_build_sql_database_creation_payload_backup_retention_not_integer_failure( + self, + ): + """Test that non-integer backupRetentionDays raises error.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"backupretentiondays": "seven"} + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + assert "seven" in str(exc_info.value.message) + + def test_build_sql_database_creation_payload_backup_retention_negative_failure( + self, + ): + """Test that negative backupRetentionDays raises error.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"backupretentiondays": "-5"} + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + + def test_build_sql_database_creation_payload_invalid_mode_failure(self): + """Test that invalid creation mode raises error.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"mode": "InvalidMode"} + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + assert "InvalidMode" in str(exc_info.value.message) + assert "New" in str(exc_info.value.message) + assert "Restore" in str(exc_info.value.message) + + def test_build_sql_database_creation_payload_restore_mode_no_properties_success( + self, + ): + """Test Restore mode without backupRetentionDays or collation is valid.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"mode": "Restore"} + result = _build_sql_database_creation_payload(params) + + assert result is not None + assert result["creationMode"] == "Restore" + assert "backupRetentionDays" not in result + assert "collation" not in result + + def test_build_sql_database_creation_payload_restore_mode_backup_retention_failure( + self, + ): + """Test that backupRetentionDays is not allowed in Restore mode.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"mode": "Restore", "backupretentiondays": "21"} + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + assert "backupRetentionDays" in str(exc_info.value.message) + assert "Restore" in str(exc_info.value.message) + + def test_build_sql_database_creation_payload_restore_mode_collation_failure(self): + """Test that collation is not allowed in Restore mode.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"mode": "Restore", "collation": "SQL_Latin1_General_CP1_CI_AS"} + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + assert "collation" in str(exc_info.value.message) + assert "Restore" in str(exc_info.value.message) + + def test_build_sql_database_creation_payload_restore_deleted_mode_success(self): + """Test RestoreDeletedDatabase mode is valid.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"mode": "RestoreDeletedDatabase"} + result = _build_sql_database_creation_payload(params) + + assert result is not None + assert result["creationMode"] == "RestoreDeletedDatabase" + + def test_build_sql_database_creation_payload_restore_deleted_mode_properties_failure( + self, + ): + """Test that properties are not allowed in RestoreDeletedDatabase mode.""" + from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + + params = {"mode": "RestoreDeletedDatabase", "backupretentiondays": "7"} + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + assert "backupRetentionDays" in str(exc_info.value.message) + assert "RestoreDeletedDatabase" in str(exc_info.value.message) From febbc8b798a58cd338935b75fddf9e20b9b45374 Mon Sep 17 00:00:00 2001 From: Alex Moraru Date: Thu, 18 Jun 2026 04:34:12 +0000 Subject: [PATCH 02/22] Changelog --- .changes/unreleased/added-20260618-043404.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changes/unreleased/added-20260618-043404.yaml diff --git a/.changes/unreleased/added-20260618-043404.yaml b/.changes/unreleased/added-20260618-043404.yaml new file mode 100644 index 000000000..dffebc8f3 --- /dev/null +++ b/.changes/unreleased/added-20260618-043404.yaml @@ -0,0 +1,6 @@ +kind: added +body: Supports SQL db creation with initial properties +time: 2026-06-18T04:34:04.941603586Z +custom: + Author: v-alexmoraru + AuthorLink: https://github.com/v-alexmoraru From 5d3a27e13d1b7200e5a091114bf97cc1c6faa1f4 Mon Sep 17 00:00:00 2001 From: Alex Moraru Date: Thu, 18 Jun 2026 08:08:31 +0000 Subject: [PATCH 03/22] Review suggestions --- src/fabric_cli/core/fab_constant.py | 1 - src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fabric_cli/core/fab_constant.py b/src/fabric_cli/core/fab_constant.py index e2b257cce..d3c91206e 100644 --- a/src/fabric_cli/core/fab_constant.py +++ b/src/fabric_cli/core/fab_constant.py @@ -355,7 +355,6 @@ # SQLDatabase property validation SQL_DATABASE_BACKUP_RETENTION_MIN_DAYS = 1 SQL_DATABASE_BACKUP_RETENTION_MAX_DAYS = 35 -SQL_DATABASE_BACKUP_RETENTION_PROPERTY = "properties.backupRetentionDays" # SQLDatabase creation modes SQL_DATABASE_CREATION_MODE_NEW = "New" diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index d516b4d22..df9b9bdde 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -842,7 +842,9 @@ def _build_sql_database_creation_payload(params: dict) -> dict | None: ]: if prop_value is not None: raise FabricCLIError( - CommonErrors.sql_database_property_not_allowed_for_mode(prop_name, mode), + CommonErrors.sql_database_property_not_allowed_for_mode( + prop_name, mode + ), fab_constant.ERROR_INVALID_INPUT, ) From 7f81167f60c5176cc453eed677310d915296f107 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Thu, 25 Jun 2026 13:43:19 +0000 Subject: [PATCH 04/22] remove creation payload validation. add tests --- src/fabric_cli/core/fab_constant.py | 14 - src/fabric_cli/errors/common.py | 22 - src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 82 +- ...atabase_with_creation_payload_success.yaml | 912 ++++++++++++++++++ tests/test_commands/test_mkdir.py | 38 + tests/test_utils/test_fab_cmd_mkdir_utils.py | 292 ++---- 6 files changed, 1056 insertions(+), 304 deletions(-) create mode 100644 tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml diff --git a/src/fabric_cli/core/fab_constant.py b/src/fabric_cli/core/fab_constant.py index d3c91206e..eee59243b 100644 --- a/src/fabric_cli/core/fab_constant.py +++ b/src/fabric_cli/core/fab_constant.py @@ -351,17 +351,3 @@ # Invalid query parameters for set command across all fabric resources SET_COMMAND_INVALID_QUERIES = ["id", "type", "workspaceId", "folderId"] - -# SQLDatabase property validation -SQL_DATABASE_BACKUP_RETENTION_MIN_DAYS = 1 -SQL_DATABASE_BACKUP_RETENTION_MAX_DAYS = 35 - -# SQLDatabase creation modes -SQL_DATABASE_CREATION_MODE_NEW = "New" -SQL_DATABASE_CREATION_MODE_RESTORE = "Restore" -SQL_DATABASE_CREATION_MODE_RESTORE_DELETED = "RestoreDeletedDatabase" -SQL_DATABASE_VALID_CREATION_MODES = [ - SQL_DATABASE_CREATION_MODE_NEW, - SQL_DATABASE_CREATION_MODE_RESTORE, - SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, -] diff --git a/src/fabric_cli/errors/common.py b/src/fabric_cli/errors/common.py index 921eeeddd..6fcfc0009 100644 --- a/src/fabric_cli/errors/common.py +++ b/src/fabric_cli/errors/common.py @@ -264,25 +264,3 @@ def unsupported_parameter(key: str) -> str: @staticmethod def invalid_parameter_format(param: str) -> str: return f"Invalid parameter format: '{param}'. Use key=value or key!=value." - - @staticmethod - def invalid_backup_retention_days(value: str, min_days: int, max_days: int) -> str: - return ( - f"Invalid backupRetentionDays value '{value}'. " - f"Must be an integer between {min_days} and {max_days} days." - ) - - @staticmethod - def invalid_sql_database_creation_mode(mode: str, valid_modes: list) -> str: - return ( - f"Invalid creation mode '{mode}'. " - f"Valid modes are: {', '.join(valid_modes)}." - ) - - @staticmethod - def sql_database_property_not_allowed_for_mode( - property_name: str, mode: str - ) -> str: - return ( - f"Property '{property_name}' is not allowed when using creation mode '{mode}'." - ) diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index df9b9bdde..163a380e6 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -220,8 +220,9 @@ def add_type_specific_payload(item: Item, args, payload): } case ItemType.SQL_DATABASE: - creation_payload = _build_sql_database_creation_payload(params) - if creation_payload: + creation_payload = _build_sql_database_creation_payload_if_exists( + params) + if len(creation_payload) > 0: payload_dict["creationPayload"] = creation_payload return payload_dict @@ -799,60 +800,33 @@ def lowercase_keys(data): return data -def _build_sql_database_creation_payload(params: dict) -> dict | None: - """Build the creationPayload for SQLDatabase creation. +def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: + """Build the optional creationPayload for SQLDatabase creation. - Supports 'New' mode (default) with backupRetentionDays and collation properties. - Restore modes do not accept these properties. + Maps the SQLDatabase-specific params to the creationPayload sent to the API. + Supported params include: + - mode: The creation mode for the SQLDatabase + - backupRetentionDays: The number of days to retain backups + - collation: The collation setting for the SQLDatabase - Returns None if no SQLDatabase-specific params provided. + Returns an empty dict when no SQLDatabase-specific + params are provided, since the creationPayload is optional. """ mode = params.get("mode") backup_retention_days = params.get("backupretentiondays") collation = params.get("collation") - if mode is None and backup_retention_days is None and collation is None: - return None + creation_payload: dict = {} - # Resolve and validate mode - if mode: - matched_mode = next( - ( - m for m in fab_constant.SQL_DATABASE_VALID_CREATION_MODES - if m.lower() == mode.lower() - ), - None - ) - if not matched_mode: - raise FabricCLIError( - CommonErrors.invalid_sql_database_creation_mode( - mode, fab_constant.SQL_DATABASE_VALID_CREATION_MODES - ), - fab_constant.ERROR_INVALID_INPUT, - ) - mode = matched_mode - else: - mode = fab_constant.SQL_DATABASE_CREATION_MODE_NEW - - # Validate properties are only used with 'New' mode - if mode != fab_constant.SQL_DATABASE_CREATION_MODE_NEW: - for prop_name, prop_value in [ - ("backupRetentionDays", backup_retention_days), - ("collation", collation) - ]: - if prop_value is not None: - raise FabricCLIError( - CommonErrors.sql_database_property_not_allowed_for_mode( - prop_name, mode - ), - fab_constant.ERROR_INVALID_INPUT, - ) - - creation_payload: dict = {"creationMode": mode} + if mode is not None: + creation_payload["creationMode"] = mode if backup_retention_days is not None: - _validate_backup_retention_days(backup_retention_days) - creation_payload["backupRetentionDays"] = int(backup_retention_days) + try: + creation_payload["backupRetentionDays"] = int( + backup_retention_days) + except (ValueError, TypeError): + creation_payload["backupRetentionDays"] = backup_retention_days if collation is not None: creation_payload["collation"] = collation @@ -860,22 +834,6 @@ def _build_sql_database_creation_payload(params: dict) -> dict | None: return creation_payload -def _validate_backup_retention_days(value: str) -> None: - """Validate backupRetentionDays is an integer within 1-35 range.""" - min_days = fab_constant.SQL_DATABASE_BACKUP_RETENTION_MIN_DAYS - max_days = fab_constant.SQL_DATABASE_BACKUP_RETENTION_MAX_DAYS - - try: - int_value = int(value) - if not min_days <= int_value <= max_days: - raise ValueError() - except (ValueError, TypeError): - raise FabricCLIError( - CommonErrors.invalid_backup_retention_days(str(value), min_days, max_days), - fab_constant.ERROR_INVALID_INPUT, - ) - - def validate_spark_pool_params(params): # Node size options allowed_node_sizes = {"small", "medium", "large", "xlarge", "xxlarge"} diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml new file mode 100644 index 000000000..b0cc62ef0 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml @@ -0,0 +1,912 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + 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": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:45:52 GMT + Pragma: + - no-cache + RequestId: + - 6854eac4-cd26-4e1e-bfa2-1e3ee773d05f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items + response: + body: + string: '{"value": [{"id": "8ff3aa09-ab5f-4bd0-8dfe-7e76102342f2", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "e452ddb1-e702-4539-a178-c2f645e9bfd8", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "ef2fc02e-6cb7-4813-b293-f5d5b98c5d9a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "d74d91a8-7679-40a2-9962-55e3d3aefda2", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129084026", + "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "49b99e73-f31e-473d-9fe4-085031b70124", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '366' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:45:53 GMT + Pragma: + - no-cache + RequestId: + - b57c2b4e-4e24-4d91-976c-977a52686190 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items + response: + body: + string: '{"value": [{"id": "8ff3aa09-ab5f-4bd0-8dfe-7e76102342f2", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "e452ddb1-e702-4539-a178-c2f645e9bfd8", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "ef2fc02e-6cb7-4813-b293-f5d5b98c5d9a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "d74d91a8-7679-40a2-9962-55e3d3aefda2", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129084026", + "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "49b99e73-f31e-473d-9fe4-085031b70124", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '366' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:45:53 GMT + Pragma: + - no-cache + RequestId: + - 48e6e5cc-32a9-4b92-878d-4a417b152d36 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "SQLDatabase", "folderId": null, + "creationPayload": {"creationMode": "New", "backupRetentionDays": 7, "collation": + "SQL_Latin1_General_CP1_CI_AS"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '76' + + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/sqlDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:45:55 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f416ade0-33fd-4b85-857f-3a3a1bded32b + Pragma: + - no-cache + RequestId: + - 3cf0647d-09c0-4421-b35a-89dc8ab21ac1 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - f416ade0-33fd-4b85-857f-3a3a1bded32b + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f416ade0-33fd-4b85-857f-3a3a1bded32b + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T08:45:54.7107629", + "lastUpdatedTimeUtc": "2026-01-29T08:46:09.3926068", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '133' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:46:17 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f416ade0-33fd-4b85-857f-3a3a1bded32b/result + Pragma: + - no-cache + RequestId: + - fec51eaa-1ff7-4bd6-9867-cb05f1dad0d5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - f416ade0-33fd-4b85-857f-3a3a1bded32b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f416ade0-33fd-4b85-857f-3a3a1bded32b/result + response: + body: + string: '{"id": "4f96ce1a-743c-4120-9eb0-93d278a70dbe", "type": "SQLDatabase", + "displayName": "fabcli000001", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 08:46:18 GMT + Pragma: + - no-cache + RequestId: + - 0d8297d1-58ab-4c25-81c8-31a7ecc0acf7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + 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": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:46:19 GMT + Pragma: + - no-cache + RequestId: + - b9687f9c-1231-477e-9f96-d1a597e712a3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items + response: + body: + string: '{"value": [{"id": "8ff3aa09-ab5f-4bd0-8dfe-7e76102342f2", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "e452ddb1-e702-4539-a178-c2f645e9bfd8", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "ef2fc02e-6cb7-4813-b293-f5d5b98c5d9a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "d74d91a8-7679-40a2-9962-55e3d3aefda2", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129084026", + "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "a663b076-e4ce-4a22-a37a-f94b1937cd41", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "49b99e73-f31e-473d-9fe4-085031b70124", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "4f96ce1a-743c-4120-9eb0-93d278a70dbe", + "type": "SQLDatabase", "displayName": "fabcli000001", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '451' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:46:20 GMT + Pragma: + - no-cache + RequestId: + - e037c230-6251-45b7-b649-15d9883d1f51 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/sqlDatabases/4f96ce1a-743c-4120-9eb0-93d278a70dbe + response: + body: + string: '{"id": "4f96ce1a-743c-4120-9eb0-93d278a70dbe", "type": "SQLDatabase", + "displayName": "fabcli000001", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e", "properties": {"connectionInfo": "Data + Source=vwbb4lsqmqqejdvenqo7wshysy-m2op2dhqhnbu5asxjn3kvbsydy.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000001-4f96ce1a-743c-4120-9eb0-93d278a70dbe;Multiple Active + Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", + "connectionString": "mock_connection_string", "databaseName": "fabcli000001-4f96ce1a-743c-4120-9eb0-93d278a70dbe", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-m2op2dhqhnbu5asxjn3kvbsydy.database.fabric.microsoft.com,1433", + "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '438' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:46:21 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 88f76b47-6267-41c9-b865-064c7b6f6a52 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items/4f96ce1a-743c-4120-9eb0-93d278a70dbe/getDefinition + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:46:22 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + Pragma: + - no-cache + RequestId: + - 859add98-ad48-431b-b1ba-f1d70476965e + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-01-29T08:46:22.691334", + "lastUpdatedTimeUtc": "2026-01-29T08:46:22.691334", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:46:44 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + Pragma: + - no-cache + RequestId: + - 2f0d447c-7d5a-4c21-897c-27639bcad215 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T08:46:22.691334", + "lastUpdatedTimeUtc": "2026-01-29T08:46:51.5089905", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:47:06 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb/result + Pragma: + - no-cache + RequestId: + - 9a65e2c9-fb07-4c8c-bc8c-0d872e170ec7 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb/result + response: + body: + string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000001.dacpac", + "payload": "UEsDBBQAAAAIANZFPVzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDhKWk2Wi3tw5Di0ChmWHPpNcHrtF16CcK3XHnxuTffF+vGLWXVc0kMvP1E5UqGoSfQuJHqBhw9rIi9VuNZstvtFyaw1lwjUCN2MezICy0kZlt1QnB4EyqZce9IvnbgnO9qqeqIRpIbU05hPq98wi8oJNYFdSlX3L6Nek7IveFNJjepCgMmzIazNtae2X/IRnKLKd5TBhnZmlNcEBzv24j2jxvnKj5gFNU5EfiiJc5UZBDSkccELe2tE+VJm3aoPJoqTkkG/U92EDOWAL8H5C9BRUJ4CNQpt7orxL8+yAsKvJcodZDpjVFrYs5CtpSwlD3lJKqplp7+KSx0ZTCLH0EMvGEo94a3tbxmjPwa0cHq2yXxD2OGdmmhm4SeZfbUFTupmjmqMyy2v46itUPiO4H4wEdieb4OwpUwMfhqDkOb8ZXUT2fHZobvYlJF6dQcHMn3vTuO0B9GuQHKEGbOAWlmJlfTaQ6oblQigSMbe8nQ55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SI6ICJmYWJjbGkwMDAwMDEiLAogICAgImRlc2NyaXB0aW9uIjogIkNyZWF0ZWQgYnkgZmFiIgogIH0sCiAgImNvbmZpZyI6IHsKICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAibG9naWNhbElkIjogIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIKICB9Cn0=", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 29 Jan 2026 08:47:07 GMT + Pragma: + - no-cache + RequestId: + - 3e2cd95e-55be-4b9e-8094-5029438474a3 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items/4f96ce1a-743c-4120-9eb0-93d278a70dbe/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:47:08 GMT + Pragma: + - no-cache + RequestId: + - 70b7d115-9445-4eb4-87a5-48a82ad895ee + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + 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": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '2303' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:47:08 GMT + Pragma: + - no-cache + RequestId: + - c256aef2-410a-46be-816f-62fa9efe3106 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items + response: + body: + string: '{"value": [{"id": "8ff3aa09-ab5f-4bd0-8dfe-7e76102342f2", "type": "SemanticModel", + "displayName": "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "e452ddb1-e702-4539-a178-c2f645e9bfd8", "type": "SemanticModel", "displayName": + "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "ef2fc02e-6cb7-4813-b293-f5d5b98c5d9a", "type": "SQLEndpoint", "displayName": + "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "d74d91a8-7679-40a2-9962-55e3d3aefda2", + "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129084026", + "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "a663b076-e4ce-4a22-a37a-f94b1937cd41", "type": "SQLEndpoint", "displayName": + "fabcli000001", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, + {"id": "49b99e73-f31e-473d-9fe4-085031b70124", "type": "Lakehouse", "displayName": + "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": + "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "4f96ce1a-743c-4120-9eb0-93d278a70dbe", + "type": "SQLDatabase", "displayName": "fabcli000001", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '451' + Content-Type: + - application/json; charset=utf-8 + Date: + - Thu, 29 Jan 2026 08:47:09 GMT + Pragma: + - no-cache + RequestId: + - 78eae283-edca-4cdb-931c-0a68e250ce2b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.3.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items/4f96ce1a-743c-4120-9eb0-93d278a70dbe + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Thu, 29 Jan 2026 08:47:10 GMT + Pragma: + - no-cache + RequestId: + - 787fc156-9cf8-4d74-a4f8-f2c31d2cdb31 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/test_mkdir.py b/tests/test_commands/test_mkdir.py index 924d24fdb..0c859ae54 100644 --- a/tests/test_commands/test_mkdir.py +++ b/tests/test_commands/test_mkdir.py @@ -242,6 +242,44 @@ def test_mkdir_kqldatabase_without_creation_payload_success( # Cleanup - removing parent eventhouse removes the kqldatabase as well rm(eventhouse_full_path) + def test_mkdir_sqldatabase_with_creation_payload_success( + self, + workspace, + cli_executor, + mock_print_done, + mock_questionary_print, + vcr_instance, + cassette_name, + upsert_item_to_cache, + ): + # Setup + sqldatabase_display_name = generate_random_string( + vcr_instance, cassette_name) + sqldatabase_full_path = cli_path_join( + workspace.full_path, f"{sqldatabase_display_name}.{ItemType.SQL_DATABASE}" + ) + + # Execute command + cli_executor.exec_command( + f"mkdir {sqldatabase_full_path} -P mode=New,backupRetentionDays=7,collation=SQL_Latin1_General_CP1_CI_AS" + ) + + # Assert + upsert_item_to_cache.assert_called_once() + mock_print_done.assert_called_once() + assert sqldatabase_display_name in mock_print_done.call_args[0][0] + + mock_questionary_print.reset_mock() + get(sqldatabase_full_path, query=".") + mock_questionary_print.assert_called_once() + result_output = mock_questionary_print.call_args[0][0] + assert sqldatabase_display_name in result_output + assert "backupRetentionDays" in result_output + assert "SQL_Latin1_General_CP1_CI_AS" in result_output + + # Cleanup + rm(sqldatabase_full_path) + @mkdir_item_with_creation_payload_success_params def test_mkdir_item_with_creation_payload_success( self, diff --git a/tests/test_utils/test_fab_cmd_mkdir_utils.py b/tests/test_utils/test_fab_cmd_mkdir_utils.py index 237d79fe7..e59ce0df8 100644 --- a/tests/test_utils/test_fab_cmd_mkdir_utils.py +++ b/tests/test_utils/test_fab_cmd_mkdir_utils.py @@ -9,6 +9,7 @@ from fabric_cli.core.fab_exceptions import FabricCLIError from fabric_cli.errors import ErrorMessages from fabric_cli.utils.fab_cmd_mkdir_utils import ( + _build_sql_database_creation_payload_if_exists, find_mpe_connection, get_connection_config_from_params, ) @@ -209,222 +210,101 @@ def test_find_mpe_connection_return_403_success(self): # SQLDatabase creation payload tests class TestBuildSqlDatabaseCreationPayload: - """Test cases for _build_sql_database_creation_payload function.""" + """Test cases for _build_sql_database_creation_payload_if_exists function.""" - def test_build_sql_database_creation_payload_no_params_returns_none(self): - """Test that no creationPayload is returned when no SQLDatabase params provided.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - result = _build_sql_database_creation_payload({}) - assert result is None - - def test_build_sql_database_creation_payload_unrelated_params_returns_none(self): - """Test that no creationPayload is returned when unrelated params provided.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - result = _build_sql_database_creation_payload({"description": "test"}) - assert result is None - - def test_build_sql_database_creation_payload_mode_new_explicit_success(self): - """Test SQLDatabase creation with explicit mode=New.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"mode": "new"} - result = _build_sql_database_creation_payload(params) + @pytest.mark.parametrize( + "params", + [ + {}, + {"description": "test"}, + ], + ) + def test_build_sql_database_creation_payload_returns_empty_success(self, params): + """Test that an empty creationPayload is returned when no SQLDatabase params provided.""" + result = _build_sql_database_creation_payload_if_exists(params) + assert result == {} + + @pytest.mark.parametrize( + "provided", + [ + "new", + "New", + "NEW", + "restore", + "Restore", + "InvalidMode", + ], + ) + def test_build_sql_database_creation_payload_mode_success(self, provided): + """Test that the mode param is set as provided by the user.""" + result = _build_sql_database_creation_payload_if_exists( + {"mode": provided}) assert result is not None - assert result["creationMode"] == "New" - - def test_build_sql_database_creation_payload_backup_retention_days_success(self): - """Test SQLDatabase creation with backupRetentionDays infers mode=New.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"backupretentiondays": "21"} - result = _build_sql_database_creation_payload(params) + assert result["creationMode"] == provided + + @pytest.mark.parametrize( + "provided, expected", + [ + ("21", 21), + ("10", 10), + ("seven", "seven"), + ], + ) + def test_build_sql_database_creation_payload_backup_retention_success( + self, provided, expected + ): + """Test that backupRetentionDays is converted to int when numeric, else passed through.""" + result = _build_sql_database_creation_payload_if_exists( + {"backupretentiondays": provided} + ) assert result is not None - assert result["creationMode"] == "New" - assert result["backupRetentionDays"] == 21 - - def test_build_sql_database_creation_payload_collation_success(self): - """Test SQLDatabase creation with collation infers mode=New.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload + assert "creationMode" not in result + assert result["backupRetentionDays"] == expected + def test_build_sql_database_creation_payload_collation_only_success(self): + """Test that collation alone is set without a mode.""" params = {"collation": "SQL_Latin1_General_CP1_CI_AS"} - result = _build_sql_database_creation_payload(params) + result = _build_sql_database_creation_payload_if_exists(params) assert result is not None - assert result["creationMode"] == "New" + assert "creationMode" not in result assert result["collation"] == "SQL_Latin1_General_CP1_CI_AS" - def test_build_sql_database_creation_payload_both_properties_success(self): - """Test SQLDatabase creation with both backupRetentionDays and collation.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = { - "mode": "New", - "backupretentiondays": "7", - "collation": "Latin1_General_100_CI_AS_KS_WS_SC_UTF8", - } - result = _build_sql_database_creation_payload(params) - - assert result is not None - assert result["creationMode"] == "New" - assert result["backupRetentionDays"] == 7 - assert result["collation"] == "Latin1_General_100_CI_AS_KS_WS_SC_UTF8" - - def test_build_sql_database_creation_payload_mode_case_insensitive_success(self): - """Test that mode parameter is case-insensitive.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"mode": "NEW", "backupretentiondays": "14"} - result = _build_sql_database_creation_payload(params) - - assert result is not None - assert result["creationMode"] == "New" - assert result["backupRetentionDays"] == 14 - - def test_build_sql_database_creation_payload_backup_retention_min_success(self): - """Test backupRetentionDays with minimum value (1).""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"backupretentiondays": "1"} - result = _build_sql_database_creation_payload(params) - - assert result["backupRetentionDays"] == 1 - - def test_build_sql_database_creation_payload_backup_retention_max_success(self): - """Test backupRetentionDays with maximum value (35).""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"backupretentiondays": "35"} - result = _build_sql_database_creation_payload(params) - - assert result["backupRetentionDays"] == 35 - - def test_build_sql_database_creation_payload_backup_retention_out_of_range_failure( - self, - ): - """Test that backupRetentionDays outside 1-35 range raises error.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"backupretentiondays": "36"} - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload(params) - - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - assert "36" in str(exc_info.value.message) - assert "1" in str(exc_info.value.message) - assert "35" in str(exc_info.value.message) - - def test_build_sql_database_creation_payload_backup_retention_zero_failure(self): - """Test that backupRetentionDays of 0 raises error.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"backupretentiondays": "0"} - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload(params) - - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - - def test_build_sql_database_creation_payload_backup_retention_not_integer_failure( - self, - ): - """Test that non-integer backupRetentionDays raises error.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"backupretentiondays": "seven"} - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload(params) - - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - assert "seven" in str(exc_info.value.message) - - def test_build_sql_database_creation_payload_backup_retention_negative_failure( - self, - ): - """Test that negative backupRetentionDays raises error.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"backupretentiondays": "-5"} - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload(params) - - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - - def test_build_sql_database_creation_payload_invalid_mode_failure(self): - """Test that invalid creation mode raises error.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"mode": "InvalidMode"} - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload(params) - - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - assert "InvalidMode" in str(exc_info.value.message) - assert "New" in str(exc_info.value.message) - assert "Restore" in str(exc_info.value.message) - - def test_build_sql_database_creation_payload_restore_mode_no_properties_success( - self, - ): - """Test Restore mode without backupRetentionDays or collation is valid.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"mode": "Restore"} - result = _build_sql_database_creation_payload(params) - - assert result is not None - assert result["creationMode"] == "Restore" - assert "backupRetentionDays" not in result - assert "collation" not in result - - def test_build_sql_database_creation_payload_restore_mode_backup_retention_failure( - self, - ): - """Test that backupRetentionDays is not allowed in Restore mode.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"mode": "Restore", "backupretentiondays": "21"} - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload(params) - - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - assert "backupRetentionDays" in str(exc_info.value.message) - assert "Restore" in str(exc_info.value.message) - - def test_build_sql_database_creation_payload_restore_mode_collation_failure(self): - """Test that collation is not allowed in Restore mode.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"mode": "Restore", "collation": "SQL_Latin1_General_CP1_CI_AS"} - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload(params) - - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - assert "collation" in str(exc_info.value.message) - assert "Restore" in str(exc_info.value.message) - - def test_build_sql_database_creation_payload_restore_deleted_mode_success(self): - """Test RestoreDeletedDatabase mode is valid.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"mode": "RestoreDeletedDatabase"} - result = _build_sql_database_creation_payload(params) - - assert result is not None - assert result["creationMode"] == "RestoreDeletedDatabase" - - def test_build_sql_database_creation_payload_restore_deleted_mode_properties_failure( - self, + @pytest.mark.parametrize( + "params, expected", + [ + ( + { + "mode": "New", + "backupretentiondays": "7", + "collation": "some_collation_value", + }, + { + "creationMode": "New", + "backupRetentionDays": 7, + "collation": "some_collation_value", + }, + ), + ( + { + "mode": "Restore", + "backupretentiondays": "21", + "collation": "some_collation_value", + }, + { + "creationMode": "Restore", + "backupRetentionDays": 21, + "collation": "some_collation_value", + }, + ), + ], + ) + def test_build_sql_database_creation_payload_all_properties_success( + self, params, expected ): - """Test that properties are not allowed in RestoreDeletedDatabase mode.""" - from fabric_cli.utils.fab_cmd_mkdir_utils import _build_sql_database_creation_payload - - params = {"mode": "RestoreDeletedDatabase", "backupretentiondays": "7"} - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload(params) + """Test SQLDatabase creation with mode, backupRetentionDays and collation.""" + result = _build_sql_database_creation_payload_if_exists(params) - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - assert "backupRetentionDays" in str(exc_info.value.message) - assert "RestoreDeletedDatabase" in str(exc_info.value.message) + assert result == expected From eea35f9a6fc89417f21498a7af42e04766c39eda Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Thu, 25 Jun 2026 14:58:18 +0000 Subject: [PATCH 05/22] add changie --- .changes/unreleased/added-20260625-145755.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changes/unreleased/added-20260625-145755.yaml diff --git a/.changes/unreleased/added-20260625-145755.yaml b/.changes/unreleased/added-20260625-145755.yaml new file mode 100644 index 000000000..fa90824de --- /dev/null +++ b/.changes/unreleased/added-20260625-145755.yaml @@ -0,0 +1,6 @@ +kind: added +body: Support create sqlDatabase with creation method +time: 2026-06-25T14:57:55.03150683Z +custom: + Author: aviatco + AuthorLink: https://github.com/aviatco From 0e2a40711f029b0de9655899436143a64b89a3fa Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Thu, 25 Jun 2026 15:02:11 +0000 Subject: [PATCH 06/22] remove duplicate changie entry --- .changes/unreleased/added-20260618-043404.yaml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .changes/unreleased/added-20260618-043404.yaml diff --git a/.changes/unreleased/added-20260618-043404.yaml b/.changes/unreleased/added-20260618-043404.yaml deleted file mode 100644 index dffebc8f3..000000000 --- a/.changes/unreleased/added-20260618-043404.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: added -body: Supports SQL db creation with initial properties -time: 2026-06-18T04:34:04.941603586Z -custom: - Author: v-alexmoraru - AuthorLink: https://github.com/v-alexmoraru From d39105056517909e81af088ca1fa61e87781c0c6 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Thu, 25 Jun 2026 15:13:46 +0000 Subject: [PATCH 07/22] remove unused import --- src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 2 -- .../test_mkdir_sqldatabase_with_creation_payload_success.yaml | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index 8f2c69f45..ce5e7f62f 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -14,9 +14,7 @@ from fabric_cli.core.fab_types import ItemType from fabric_cli.core.hiearchy.fab_hiearchy import Item from fabric_cli.errors import ErrorMessages -from fabric_cli.errors.common import CommonErrors from fabric_cli.utils import fab_ui as utils_ui -from fabric_cli.utils.fab_util import is_valid_guid, is_valid_iso8601_timestamp def add_type_specific_payload(item: Item, args, payload): diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml index b0cc62ef0..9dbf4384b 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml @@ -168,6 +168,7 @@ interactions: code: 200 message: OK - request: + body: '{"displayName": "fabcli000001", "type": "SQLDatabase", "folderId": null, "creationPayload": {"creationMode": "New", "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' From 0ac39f955e9f755bdf48d573d7e9e00254dab0a6 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Thu, 25 Jun 2026 15:19:58 +0000 Subject: [PATCH 08/22] resolve comments --- .changes/unreleased/added-20260625-145755.yaml | 2 +- tests/test_utils/test_fab_cmd_mkdir_utils.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.changes/unreleased/added-20260625-145755.yaml b/.changes/unreleased/added-20260625-145755.yaml index fa90824de..095c41f5e 100644 --- a/.changes/unreleased/added-20260625-145755.yaml +++ b/.changes/unreleased/added-20260625-145755.yaml @@ -1,5 +1,5 @@ kind: added -body: Support create sqlDatabase with creation method +body: Support creating sqlDatabase Item with creation payload time: 2026-06-25T14:57:55.03150683Z custom: Author: aviatco diff --git a/tests/test_utils/test_fab_cmd_mkdir_utils.py b/tests/test_utils/test_fab_cmd_mkdir_utils.py index cc4014c78..1ef084630 100644 --- a/tests/test_utils/test_fab_cmd_mkdir_utils.py +++ b/tests/test_utils/test_fab_cmd_mkdir_utils.py @@ -2,21 +2,17 @@ # Licensed under the MIT License. -from argparse import Namespace from unittest.mock import Mock, patch import pytest from fabric_cli.core import fab_constant from fabric_cli.core.fab_exceptions import FabricCLIError -from fabric_cli.core.fab_types import ItemType -from fabric_cli.core.hiearchy.fab_hiearchy import Item, Workspace from fabric_cli.errors import ErrorMessages from fabric_cli.utils.fab_cmd_mkdir_utils import ( _build_sql_database_creation_payload_if_exists, find_mpe_connection, get_connection_config_from_params, - get_params_per_item_type, ) From 41d84626c2bc08605c5a2a7a27e46ad1b24a547e Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Sun, 28 Jun 2026 11:22:19 +0000 Subject: [PATCH 09/22] Support creating sqlDatabase with optinal params --- .../unreleased/added-20260625-145755.yaml | 2 +- .../optimization-20260611-135540.yaml | 6 - src/fabric_cli/core/fab_constant.py | 5 + src/fabric_cli/errors/mkdir.py | 17 +- src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 100 ++++++++++-- tests/test_utils/test_fab_cmd_mkdir_utils.py | 147 ++++++++++++++---- 6 files changed, 213 insertions(+), 64 deletions(-) delete mode 100644 .changes/unreleased/optimization-20260611-135540.yaml diff --git a/.changes/unreleased/added-20260625-145755.yaml b/.changes/unreleased/added-20260625-145755.yaml index 095c41f5e..0d477e526 100644 --- a/.changes/unreleased/added-20260625-145755.yaml +++ b/.changes/unreleased/added-20260625-145755.yaml @@ -1,5 +1,5 @@ kind: added -body: Support creating sqlDatabase Item with creation payload +body: Support creating SQLDatabase Item with optional parameters (creation payload) time: 2026-06-25T14:57:55.03150683Z custom: Author: aviatco diff --git a/.changes/unreleased/optimization-20260611-135540.yaml b/.changes/unreleased/optimization-20260611-135540.yaml deleted file mode 100644 index 6dd9b1708..000000000 --- a/.changes/unreleased/optimization-20260611-135540.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: optimization -body: Validates format of the point-in-time restore on SQL DBs -time: 2026-06-11T13:55:40.307562924Z -custom: - Author: v-alexmoraru - AuthorLink: https://github.com/v-alexmoraru diff --git a/src/fabric_cli/core/fab_constant.py b/src/fabric_cli/core/fab_constant.py index eee59243b..531aa091f 100644 --- a/src/fabric_cli/core/fab_constant.py +++ b/src/fabric_cli/core/fab_constant.py @@ -351,3 +351,8 @@ # Invalid query parameters for set command across all fabric resources SET_COMMAND_INVALID_QUERIES = ["id", "type", "workspaceId", "folderId"] + +# SQLDatabase creation modes +SQL_DATABASE_CREATION_MODE_NEW = "New" +SQL_DATABASE_CREATION_MODE_RESTORE = "Restore" +SQL_DATABASE_CREATION_MODE_RESTORE_DELETED = "RestoreDeletedDatabase" diff --git a/src/fabric_cli/errors/mkdir.py b/src/fabric_cli/errors/mkdir.py index ddf23641d..5fffde026 100644 --- a/src/fabric_cli/errors/mkdir.py +++ b/src/fabric_cli/errors/mkdir.py @@ -20,25 +20,18 @@ def workspace_capacity_not_found() -> str: def folder_name_exists() -> str: return "A folder with the same name already exists" - @staticmethod - def invalid_restore_point_in_time() -> str: - return ( - "Invalid restorePointInTime format. " - "Please provide an ISO 8601 timestamp with timezone (e.g., '2024-01-15T10:30:00Z' or '2024-01-15T10:30:00+00:00')" - ) - @staticmethod def missing_restore_params() -> str: return ( "Missing required parameter(s) for restore mode. " "Required: restorePointInTime, itemId, workspaceId. " - "Example: -P mode=restore,restorePointInTime=2024-01-15T10:30:00Z,itemId=,workspaceId=" + "Example: -P mode=Restore,restorePointInTime=2024-01-15T10:30:00Z,itemId=,workspaceId=" ) @staticmethod - def invalid_creation_mode(mode: str) -> str: + def missing_restore_deleted_params() -> str: return ( - f"Invalid mode '{mode}' for SQLDatabase creation. " - "Supported modes: 'restore'. " - "Omit mode parameter for standard database creation." + "Missing required parameter(s) for RestoreDeletedDatabase mode. " + "Required: restorableDeletedDatabaseName, restorePointInTime. " + "Example: -P mode=RestoreDeletedDatabase,restorableDeletedDatabaseName=,restorePointInTime=2024-01-15T10:30:00Z" ) diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index ce5e7f62f..c45538cb8 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -346,7 +346,16 @@ def get_params_per_item_type(item: Item): required_params = ["subscriptionId", "resourceGroup", "factoryName"] case ItemType.SQL_DATABASE: - optional_params = ["mode", "backupRetentionDays", "collation"] + optional_params = [ + "mode", + "backupRetentionDays", + "collation", + "restorePointInTime", + "itemId", + "workspaceId", + "referenceType", + "restorableDeletedDatabaseName", + ] return required_params, optional_params @@ -787,30 +796,53 @@ def lowercase_keys(data): def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: """Build the optional creationPayload for SQLDatabase creation. - Maps the SQLDatabase-specific params to the creationPayload sent to the API. - Supported params include: - - mode: The creation mode for the SQLDatabase - - backupRetentionDays: The number of days to retain backups - - collation: The collation setting for the SQLDatabase + The payload is built based on the creation mode (params["mode"]): + - New: creationMode, backupRetentionDays, collation + - Restore: creationMode, restorePointInTime, sourceDatabaseReference + (itemId, referenceType, workspaceId) + - RestoreDeletedDatabase: creationMode, restorableDeletedDatabaseName, + restorePointInTime - Returns an empty dict when no SQLDatabase-specific - params are provided, since the creationPayload is optional. + Returns an empty dict when no mode is provided, since the creationPayload + is optional. """ mode = params.get("mode") + + if mode is None: + return {} + + mode_lower = str(mode).lower() + + if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE.lower(): + return _build_sql_database_restore_payload(params) + + if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED.lower(): + return _build_sql_database_restore_deleted_payload(params) + + return _build_sql_database_new_payload(params) + + +def _validate_required_params(params: dict, required: list, error_message: str) -> None: + """Raise a FabricCLIError when any required param is missing or empty. + + 'required' is a list of (key) param names to look up in 'params'. + """ + missing = [key for key in required if not params.get(key)] + if missing: + raise FabricCLIError(error_message, fab_constant.ERROR_INVALID_INPUT) + + +def _build_sql_database_new_payload(params: dict) -> dict: + """Build the creationPayload for the New SQLDatabase mode.""" backup_retention_days = params.get("backupretentiondays") collation = params.get("collation") - creation_payload: dict = {} - - if mode is not None: - creation_payload["creationMode"] = mode + creation_payload: dict = { + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW + } if backup_retention_days is not None: - try: - creation_payload["backupRetentionDays"] = int( - backup_retention_days) - except (ValueError, TypeError): - creation_payload["backupRetentionDays"] = backup_retention_days + creation_payload["backupRetentionDays"] = backup_retention_days if collation is not None: creation_payload["collation"] = collation @@ -818,6 +850,40 @@ def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: return creation_payload +def _build_sql_database_restore_payload(params: dict) -> dict: + """Build the creationPayload for the Restore SQLDatabase mode.""" + _validate_required_params( + params, + ["restorepointintime", "itemid", "workspaceid"], + ErrorMessages.Mkdir.missing_restore_params(), + ) + + return { + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE, + "restorePointInTime": params.get("restorepointintime"), + "sourceDatabaseReference": { + "itemId": params.get("itemid"), + "referenceType": params.get("referencetype", "ById"), + "workspaceId": params.get("workspaceid"), + }, + } + + +def _build_sql_database_restore_deleted_payload(params: dict) -> dict: + """Build the creationPayload for the RestoreDeletedDatabase SQLDatabase mode.""" + _validate_required_params( + params, + ["restorabledeleteddatabasename", "restorepointintime"], + ErrorMessages.Mkdir.missing_restore_deleted_params(), + ) + + return { + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, + "restorableDeletedDatabaseName": params.get("restorabledeleteddatabasename"), + "restorePointInTime": params.get("restorepointintime"), + } + + def validate_spark_pool_params(params): # Node size options allowed_node_sizes = {"small", "medium", "large", "xlarge", "xxlarge"} diff --git a/tests/test_utils/test_fab_cmd_mkdir_utils.py b/tests/test_utils/test_fab_cmd_mkdir_utils.py index 1ef084630..ef060ff95 100644 --- a/tests/test_utils/test_fab_cmd_mkdir_utils.py +++ b/tests/test_utils/test_fab_cmd_mkdir_utils.py @@ -228,10 +228,12 @@ class TestBuildSqlDatabaseCreationPayload: [ {}, {"description": "test"}, + {"backupretentiondays": "7"}, + {"collation": "SQL_Latin1_General_CP1_CI_AS"}, ], ) def test_build_sql_database_creation_payload_returns_empty_success(self, params): - """Test that an empty creationPayload is returned when no SQLDatabase params provided.""" + """Test that an empty creationPayload is returned when no mode is provided.""" result = _build_sql_database_creation_payload_if_exists(params) assert result == {} @@ -241,46 +243,45 @@ def test_build_sql_database_creation_payload_returns_empty_success(self, params) "new", "New", "NEW", - "restore", - "Restore", - "InvalidMode", ], ) def test_build_sql_database_creation_payload_mode_success(self, provided): - """Test that the mode param is set as provided by the user.""" + """Test that the New mode is normalized to its canonical value.""" result = _build_sql_database_creation_payload_if_exists( {"mode": provided}) assert result is not None - assert result["creationMode"] == provided + assert result["creationMode"] == fab_constant.SQL_DATABASE_CREATION_MODE_NEW @pytest.mark.parametrize( - "provided, expected", + "provided", [ - ("21", 21), - ("10", 10), - ("seven", "seven"), + "21", + "10", + "seven", ], ) def test_build_sql_database_creation_payload_backup_retention_success( - self, provided, expected + self, provided ): - """Test that backupRetentionDays is converted to int when numeric, else passed through.""" + """Test that backupRetentionDays is passed through as provided.""" result = _build_sql_database_creation_payload_if_exists( - {"backupretentiondays": provided} + {"mode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, + "backupretentiondays": provided} ) assert result is not None - assert "creationMode" not in result - assert result["backupRetentionDays"] == expected + assert result["creationMode"] == fab_constant.SQL_DATABASE_CREATION_MODE_NEW + assert result["backupRetentionDays"] == provided def test_build_sql_database_creation_payload_collation_only_success(self): - """Test that collation alone is set without a mode.""" - params = {"collation": "SQL_Latin1_General_CP1_CI_AS"} + """Test that collation is set for the New mode.""" + params = {"mode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, + "collation": "SQL_Latin1_General_CP1_CI_AS"} result = _build_sql_database_creation_payload_if_exists(params) assert result is not None - assert "creationMode" not in result + assert result["creationMode"] == fab_constant.SQL_DATABASE_CREATION_MODE_NEW assert result["collation"] == "SQL_Latin1_General_CP1_CI_AS" @pytest.mark.parametrize( @@ -288,26 +289,44 @@ def test_build_sql_database_creation_payload_collation_only_success(self): [ ( { - "mode": "New", + "mode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, "backupretentiondays": "7", "collation": "some_collation_value", }, { - "creationMode": "New", - "backupRetentionDays": 7, + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, + "backupRetentionDays": "7", "collation": "some_collation_value", }, ), ( { - "mode": "Restore", - "backupretentiondays": "21", - "collation": "some_collation_value", + "mode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE, + "restorepointintime": "2024-01-15T10:30:00Z", + "itemid": "11111111-1111-1111-1111-111111111111", + "workspaceid": "22222222-2222-2222-2222-222222222222", + "referencetype": "ByName", }, { - "creationMode": "Restore", - "backupRetentionDays": 21, - "collation": "some_collation_value", + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE, + "restorePointInTime": "2024-01-15T10:30:00Z", + "sourceDatabaseReference": { + "itemId": "11111111-1111-1111-1111-111111111111", + "referenceType": "ByName", + "workspaceId": "22222222-2222-2222-2222-222222222222", + }, + }, + ), + ( + { + "mode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, + "restorabledeleteddatabasename": "my-deleted-db", + "restorepointintime": "2024-01-15T10:30:00Z", + }, + { + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, + "restorableDeletedDatabaseName": "my-deleted-db", + "restorePointInTime": "2024-01-15T10:30:00Z", }, ), ], @@ -315,7 +334,79 @@ def test_build_sql_database_creation_payload_collation_only_success(self): def test_build_sql_database_creation_payload_all_properties_success( self, params, expected ): - """Test SQLDatabase creation with mode, backupRetentionDays and collation.""" + """Test SQLDatabase creation builds the correct payload for all modes.""" result = _build_sql_database_creation_payload_if_exists(params) assert result == expected + + def test_build_sql_database_creation_payload_restore_success(self): + """Test SQLDatabase creation in Restore mode builds the correct payload.""" + params = { + "mode": "Restore", + "restorepointintime": "2024-01-15T10:30:00Z", + "itemid": "11111111-1111-1111-1111-111111111111", + "workspaceid": "22222222-2222-2222-2222-222222222222", + } + + result = _build_sql_database_creation_payload_if_exists(params) + + assert result == { + "creationMode": "Restore", + "restorePointInTime": "2024-01-15T10:30:00Z", + "sourceDatabaseReference": { + "itemId": "11111111-1111-1111-1111-111111111111", + "referenceType": "ById", + "workspaceId": "22222222-2222-2222-2222-222222222222", + }, + } + + @pytest.mark.parametrize( + "params", + [ + { + "mode": "Restore", + "itemid": "11111111-1111-1111-1111-111111111111", + "workspaceid": "22222222-2222-2222-2222-222222222222", + }, + { + "mode": "Restore", + "restorepointintime": "2024-01-15T10:30:00Z", + "workspaceid": "22222222-2222-2222-2222-222222222222", + }, + { + "mode": "Restore", + "restorepointintime": "2024-01-15T10:30:00Z", + "itemid": "11111111-1111-1111-1111-111111111111", + }, + ], + ) + def test_build_sql_database_creation_payload_restore_missing_params_raises( + self, params + ): + """Test that Restore mode raises when required params are missing.""" + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload_if_exists(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + + @pytest.mark.parametrize( + "params", + [ + { + "mode": "RestoreDeletedDatabase", + "restorepointintime": "2024-01-15T10:30:00Z", + }, + { + "mode": "RestoreDeletedDatabase", + "restorabledeleteddatabasename": "my-deleted-db", + }, + ], + ) + def test_build_sql_database_creation_payload_restore_deleted_missing_params_raises( + self, params + ): + """Test that RestoreDeletedDatabase mode raises when required params are missing.""" + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload_if_exists(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT From afd5e28e91323ebc659c57efa8bc2eaf2cfaaded Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Sun, 28 Jun 2026 13:39:53 +0000 Subject: [PATCH 10/22] add tests recordings --- .../test_commands/test_mkdir/class_setup.yaml | 66 ++-- ...atabase_with_creation_payload_success.yaml | 292 ++++++++---------- 2 files changed, 158 insertions(+), 200 deletions(-) diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml index 430f66e57..c5a28a1e1 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.6.1 (get; Linux/6.12.76-linuxkit; Python/3.12.11) + - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: @@ -26,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2925' + - '3271' Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Jun 2026 07:59:40 GMT + - Sun, 28 Jun 2026 13:37:12 GMT Pragma: - no-cache RequestId: - - e823c12a-6a7a-49d5-a266-a712d1bc4e55 + - f427cb2d-7a39-4a02-b720-7c41ce091fe6 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -60,7 +60,7 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.6.1 (get; Linux/6.12.76-linuxkit; Python/3.12.11) + - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: @@ -75,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2925' + - '3271' Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Jun 2026 07:59:41 GMT + - Sun, 28 Jun 2026 13:37:13 GMT Pragma: - no-cache RequestId: - - c81c0f3e-f590-45b8-a260-1e9b3b686cab + - 4822dd36-325d-4354-ad1d-f6e4e22b7acf Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -109,7 +109,7 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.6.1 (get; Linux/6.12.76-linuxkit; Python/3.12.11) + - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET uri: https://api.fabric.microsoft.com/v1/capacities response: @@ -129,11 +129,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Jun 2026 07:59:46 GMT + - Sun, 28 Jun 2026 13:37:18 GMT Pragma: - no-cache RequestId: - - 93261e90-43d5-410e-b21d-86266c0f9327 + - cdc9b92c-69d9-4620-ba77-fd37ef3fd6f5 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -162,13 +162,14 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.6.1 (get; Linux/6.12.76-linuxkit; Python/3.12.11) + - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: POST uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "af1d582c-7f71-4ee0-b11f-1e5ddb941a0b", "displayName": "fabriccli_WorkspacePerTestclass_000001", - "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}' + string: '{"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", "displayName": "fabriccli_WorkspacePerTestclass_000001", + "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}' headers: Access-Control-Expose-Headers: - RequestId,Location @@ -177,17 +178,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '177' + - '196' Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Jun 2026 07:59:57 GMT + - Sun, 28 Jun 2026 13:37:25 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/af1d582c-7f71-4ee0-b11f-1e5ddb941a0b + - https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86 Pragma: - no-cache RequestId: - - 9932ca64-ebe4-4fb5-a947-00f6f09f2fbb + - 1fe7a597-bbc8-4ef7-9792-88756e340e12 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -213,15 +214,16 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.6.1 (mkdir; Linux/6.12.76-linuxkit; Python/3.12.11) + - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; 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": "af1d582c-7f71-4ee0-b11f-1e5ddb941a0b", + "My workspace", "description": "", "type": "Personal"}, {"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", - "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -230,15 +232,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2960' + - '3307' Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Jun 2026 08:00:37 GMT + - Sun, 28 Jun 2026 13:38:40 GMT Pragma: - no-cache RequestId: - - 70e0ae96-2c95-48c5-a1e3-85842038b7fc + - c9bd9f16-3e13-484f-aa48-749909637cf8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -264,9 +266,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.6.1 (mkdir; Linux/6.12.76-linuxkit; Python/3.12.11) + - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/af1d582c-7f71-4ee0-b11f-1e5ddb941a0b/items + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items response: body: string: '{"value": []}' @@ -282,11 +284,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Tue, 02 Jun 2026 08:00:38 GMT + - Sun, 28 Jun 2026 13:38:41 GMT Pragma: - no-cache RequestId: - - f95a6a6b-e640-41f7-a983-5c330b9132ea + - 0e8d46a9-21b8-4b60-ae66-fcfb0a923752 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -314,9 +316,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli/1.6.1 (mkdir; Linux/6.12.76-linuxkit; Python/3.12.11) + - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/af1d582c-7f71-4ee0-b11f-1e5ddb941a0b + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86 response: body: string: '' @@ -332,11 +334,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Tue, 02 Jun 2026 08:00:38 GMT + - Sun, 28 Jun 2026 13:38:41 GMT Pragma: - no-cache RequestId: - - 6f6ac5ab-5067-4530-b308-899386b5de30 + - fa940b5a-e003-48cd-9735-aaed9518552c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml index 9dbf4384b..f92216247 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml @@ -11,14 +11,16 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 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": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + "My workspace", "description": "", "type": "Personal"}, {"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -27,15 +29,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2303' + - '3307' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:45:52 GMT + - Sun, 28 Jun 2026 13:37:26 GMT Pragma: - no-cache RequestId: - - 6854eac4-cd26-4e1e-bfa2-1e3ee773d05f + - 71938062-fcf5-4e88-a84f-8e4d57e1d4cd Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -61,23 +63,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items response: body: - string: '{"value": [{"id": "8ff3aa09-ab5f-4bd0-8dfe-7e76102342f2", "type": "SemanticModel", - "displayName": "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "e452ddb1-e702-4539-a178-c2f645e9bfd8", "type": "SemanticModel", "displayName": - "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "ef2fc02e-6cb7-4813-b293-f5d5b98c5d9a", "type": "SQLEndpoint", "displayName": - "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "d74d91a8-7679-40a2-9962-55e3d3aefda2", - "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129084026", - "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "49b99e73-f31e-473d-9fe4-085031b70124", "type": "Lakehouse", "displayName": - "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}]}' + string: '{"value": []}' headers: Access-Control-Expose-Headers: - RequestId @@ -86,15 +77,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '366' + - '32' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:45:53 GMT + - Sun, 28 Jun 2026 13:37:27 GMT Pragma: - no-cache RequestId: - - b57c2b4e-4e24-4d91-976c-977a52686190 + - 832ece71-0dc4-4612-9e0f-86f472c44dd0 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -120,23 +111,12 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items response: body: - string: '{"value": [{"id": "8ff3aa09-ab5f-4bd0-8dfe-7e76102342f2", "type": "SemanticModel", - "displayName": "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "e452ddb1-e702-4539-a178-c2f645e9bfd8", "type": "SemanticModel", "displayName": - "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "ef2fc02e-6cb7-4813-b293-f5d5b98c5d9a", "type": "SQLEndpoint", "displayName": - "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "d74d91a8-7679-40a2-9962-55e3d3aefda2", - "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129084026", - "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "49b99e73-f31e-473d-9fe4-085031b70124", "type": "Lakehouse", "displayName": - "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}]}' + string: '{"value": []}' headers: Access-Control-Expose-Headers: - RequestId @@ -145,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '366' + - '32' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:45:53 GMT + - Sun, 28 Jun 2026 13:37:27 GMT Pragma: - no-cache RequestId: - - 48e6e5cc-32a9-4b92-878d-4a417b152d36 + - 4cb462a9-898c-469a-9482-201409973e0a Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -168,9 +148,8 @@ interactions: code: 200 message: OK - request: - body: '{"displayName": "fabcli000001", "type": "SQLDatabase", "folderId": null, - "creationPayload": {"creationMode": "New", "backupRetentionDays": 7, "collation": + "creationPayload": {"creationMode": "New", "backupRetentionDays": "7", "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Accept: @@ -180,14 +159,13 @@ interactions: Connection: - keep-alive Content-Length: - - '76' - + - '193' Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/sqlDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/sqlDatabases response: body: string: 'null' @@ -203,15 +181,15 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:45:55 GMT + - Sun, 28 Jun 2026 13:37:29 GMT ETag: - '""' Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f416ade0-33fd-4b85-857f-3a3a1bded32b + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/bfc8c40a-7762-4d4f-9283-9da32631862b Pragma: - no-cache RequestId: - - 3cf0647d-09c0-4421-b35a-89dc8ab21ac1 + - 454ec5b8-9b6d-461d-93e7-87de4939930c Retry-After: - '20' Strict-Transport-Security: @@ -225,7 +203,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - f416ade0-33fd-4b85-857f-3a3a1bded32b + - bfc8c40a-7762-4d4f-9283-9da32631862b status: code: 202 message: Accepted @@ -241,13 +219,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f416ade0-33fd-4b85-857f-3a3a1bded32b + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/bfc8c40a-7762-4d4f-9283-9da32631862b response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T08:45:54.7107629", - "lastUpdatedTimeUtc": "2026-01-29T08:46:09.3926068", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-06-28T13:37:28.512913", + "lastUpdatedTimeUtc": "2026-06-28T13:37:47.29377", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -257,17 +235,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '133' + - '130' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:46:17 GMT + - Sun, 28 Jun 2026 13:37:50 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f416ade0-33fd-4b85-857f-3a3a1bded32b/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/bfc8c40a-7762-4d4f-9283-9da32631862b/result Pragma: - no-cache RequestId: - - fec51eaa-1ff7-4bd6-9867-cb05f1dad0d5 + - c0364c50-6e00-4403-9725-edcc0a2cf107 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -275,7 +253,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - f416ade0-33fd-4b85-857f-3a3a1bded32b + - bfc8c40a-7762-4d4f-9283-9da32631862b status: code: 200 message: OK @@ -291,14 +269,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f416ade0-33fd-4b85-857f-3a3a1bded32b/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/bfc8c40a-7762-4d4f-9283-9da32631862b/result response: body: - string: '{"id": "4f96ce1a-743c-4120-9eb0-93d278a70dbe", "type": "SQLDatabase", - "displayName": "fabcli000001", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}' + string: '{"id": "6106e499-9470-4da1-b134-472ea457cbf5", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86"}' headers: Access-Control-Expose-Headers: - RequestId @@ -309,11 +286,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Jan 2026 08:46:18 GMT + - Sun, 28 Jun 2026 13:37:51 GMT Pragma: - no-cache RequestId: - - 0d8297d1-58ab-4c25-81c8-31a7ecc0acf7 + - 494e534b-5608-40ca-a4a4-035b6055826d Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -337,14 +314,16 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 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": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + "My workspace", "description": "", "type": "Personal"}, {"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -353,15 +332,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2303' + - '3307' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:46:19 GMT + - Sun, 28 Jun 2026 13:37:52 GMT Pragma: - no-cache RequestId: - - b9687f9c-1231-477e-9f96-d1a597e712a3 + - 7d132cab-e8e2-480f-8a01-8bbd5e4b2350 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -387,26 +366,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items response: body: - string: '{"value": [{"id": "8ff3aa09-ab5f-4bd0-8dfe-7e76102342f2", "type": "SemanticModel", - "displayName": "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "e452ddb1-e702-4539-a178-c2f645e9bfd8", "type": "SemanticModel", "displayName": - "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "ef2fc02e-6cb7-4813-b293-f5d5b98c5d9a", "type": "SQLEndpoint", "displayName": - "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "d74d91a8-7679-40a2-9962-55e3d3aefda2", - "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129084026", - "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "a663b076-e4ce-4a22-a37a-f94b1937cd41", "type": "SQLEndpoint", "displayName": - "fabcli000001", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "49b99e73-f31e-473d-9fe4-085031b70124", "type": "Lakehouse", "displayName": - "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "4f96ce1a-743c-4120-9eb0-93d278a70dbe", - "type": "SQLDatabase", "displayName": "fabcli000001", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}]}' + string: '{"value": [{"id": "6106e499-9470-4da1-b134-472ea457cbf5", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -415,15 +381,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '451' + - '170' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:46:20 GMT + - Sun, 28 Jun 2026 13:37:52 GMT Pragma: - no-cache RequestId: - - e037c230-6251-45b7-b649-15d9883d1f51 + - 21d194ee-1a56-4bce-b506-eee234090926 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -449,19 +415,18 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/sqlDatabases/4f96ce1a-743c-4120-9eb0-93d278a70dbe + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/sqlDatabases/6106e499-9470-4da1-b134-472ea457cbf5 response: body: - string: '{"id": "4f96ce1a-743c-4120-9eb0-93d278a70dbe", "type": "SQLDatabase", - "displayName": "fabcli000001", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e", "properties": {"connectionInfo": "Data - Source=vwbb4lsqmqqejdvenqo7wshysy-m2op2dhqhnbu5asxjn3kvbsydy.database.fabric.microsoft.com,1433;Initial - Catalog=fabcli000001-4f96ce1a-743c-4120-9eb0-93d278a70dbe;Multiple Active + string: '{"id": "6106e499-9470-4da1-b134-472ea457cbf5", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-fs3hhf3ys3bu3mjvhtgtdz5pqy.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000001-6106e499-9470-4da1-b134-472ea457cbf5;Multiple Active Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", - "connectionString": "mock_connection_string", "databaseName": "fabcli000001-4f96ce1a-743c-4120-9eb0-93d278a70dbe", - "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-m2op2dhqhnbu5asxjn3kvbsydy.database.fabric.microsoft.com,1433", + "connectionString": "mock_connection_string", "databaseName": "fabcli000001-6106e499-9470-4da1-b134-472ea457cbf5", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-fs3hhf3ys3bu3mjvhtgtdz5pqy.database.fabric.microsoft.com,1433", "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Access-Control-Expose-Headers: @@ -471,17 +436,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '438' + - '431' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:46:21 GMT + - Sun, 28 Jun 2026 13:37:54 GMT ETag: - '""' Pragma: - no-cache RequestId: - - 88f76b47-6267-41c9-b865-064c7b6f6a52 + - 48385f7e-5e91-40c6-9570-74356058ff2c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -509,9 +474,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items/4f96ce1a-743c-4120-9eb0-93d278a70dbe/getDefinition + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items/6106e499-9470-4da1-b134-472ea457cbf5/getDefinition response: body: string: 'null' @@ -527,13 +492,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:46:22 GMT + - Sun, 28 Jun 2026 13:37:54 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a Pragma: - no-cache RequestId: - - 859add98-ad48-431b-b1ba-f1d70476965e + - 1810e011-a188-451b-af66-7f774164bd37 Retry-After: - '20' Strict-Transport-Security: @@ -547,7 +512,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - 6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + - ee7a3ea2-234f-4ad7-8212-45f74b9ef28a status: code: 202 message: Accepted @@ -563,13 +528,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-01-29T08:46:22.691334", - "lastUpdatedTimeUtc": "2026-01-29T08:46:22.691334", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-06-28T13:37:54.8019662", + "lastUpdatedTimeUtc": "2026-06-28T13:37:54.8019662", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -579,17 +544,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '121' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:46:44 GMT + - Sun, 28 Jun 2026 13:38:15 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a Pragma: - no-cache RequestId: - - 2f0d447c-7d5a-4c21-897c-27639bcad215 + - 9b60dd9f-c6a0-4262-9e78-d1e9725210fa Retry-After: - '20' Strict-Transport-Security: @@ -599,7 +564,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + - ee7a3ea2-234f-4ad7-8212-45f74b9ef28a status: code: 200 message: OK @@ -615,13 +580,13 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-01-29T08:46:22.691334", - "lastUpdatedTimeUtc": "2026-01-29T08:46:51.5089905", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-06-28T13:37:54.8019662", + "lastUpdatedTimeUtc": "2026-06-28T13:38:23.7939986", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -631,17 +596,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '131' + - '133' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:47:06 GMT + - Sun, 28 Jun 2026 13:38:37 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a/result Pragma: - no-cache RequestId: - - 9a65e2c9-fb07-4c8c-bc8c-0d872e170ec7 + - fe895b60-77b9-4c4f-80d4-280e369ecc34 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -649,7 +614,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb + - ee7a3ea2-234f-4ad7-8212-45f74b9ef28a status: code: 200 message: OK @@ -665,14 +630,14 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/6fde6f81-d7f9-45e4-8d18-f416fe7ae4bb/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a/result response: body: string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000001.dacpac", - "payload": "UEsDBBQAAAAIANZFPVzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isR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AACADWRT1chiT0mqUAAADIAAAADwAAAAAAAAAAAAAAAADQAgAARGFjTWV0YWRhdGEueG1sUEsBAhQAFAAAAAgA1kU9XImOzHwuAgAAXQQAAAoAAAAAAAAAAAAAAAAAogMAAE9yaWdpbi54bWxQSwECFAAUAAAACADWRT1c7aHT4I8AAACvAAAAEwAAAAAAAAAAAAAAAAD4BQAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLBQYAAAAABAAEAO0AAAC4BgAAAAA=", - "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNRTERhdGFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiLAogICAgImRlc2NyaXB0aW9uIjogIkNyZWF0ZWQgYnkgZmFiIgogIH0sCiAgImNvbmZpZyI6IHsKICAgICJ2ZXJzaW9uIjogIjIuMCIsCiAgICAibG9naWNhbElkIjogIjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIKICB9Cn0=", + "payload": "UEsDBBQAAAAIAMls3FzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDhKWk2Wi3tw5Di0ChmWHPpNcHrtF16CcK3XHnxuTffF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S8CAABdBAAACgAAAAAAAAAAAAAAAACjAwAAT3JpZ2luLnhtbFBLAQIUABQAAAAIAMls3FztodPgjwAAAK8AAAATAAAAAAAAAAAAAAAAAPoFAABbQ29udGVudF9UeXBlc10ueG1sUEsFBgAAAAAEAAQA7QAAALoGAAAAAA==", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNRTERhdGFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", "payloadType": "InlineBase64"}]}}' headers: Access-Control-Expose-Headers: @@ -684,11 +649,11 @@ interactions: Content-Type: - application/json Date: - - Thu, 29 Jan 2026 08:47:07 GMT + - Sun, 28 Jun 2026 13:38:37 GMT Pragma: - no-cache RequestId: - - 3e2cd95e-55be-4b9e-8094-5029438474a3 + - b5103386-cadc-4fb1-af3d-810d30473bf9 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -712,9 +677,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items/4f96ce1a-743c-4120-9eb0-93d278a70dbe/connections + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items/6106e499-9470-4da1-b134-472ea457cbf5/connections response: body: string: '{"value": []}' @@ -730,11 +695,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:47:08 GMT + - Sun, 28 Jun 2026 13:38:38 GMT Pragma: - no-cache RequestId: - - 70b7d115-9445-4eb4-87a5-48a82ad895ee + - 63d4ae34-2672-4971-89af-06db754dd207 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -760,14 +725,16 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 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": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004"}]}' + "My workspace", "description": "", "type": "Personal"}, {"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -776,15 +743,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '2303' + - '3307' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:47:08 GMT + - Sun, 28 Jun 2026 13:38:39 GMT Pragma: - no-cache RequestId: - - c256aef2-410a-46be-816f-62fa9efe3106 + - 1e6b53bf-cd46-42a4-ae24-28ed5cade3c5 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -810,26 +777,15 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items response: body: - string: '{"value": [{"id": "8ff3aa09-ab5f-4bd0-8dfe-7e76102342f2", "type": "SemanticModel", - "displayName": "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "e452ddb1-e702-4539-a178-c2f645e9bfd8", "type": "SemanticModel", "displayName": - "fabcli000001_auto", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "ef2fc02e-6cb7-4813-b293-f5d5b98c5d9a", "type": "SQLEndpoint", "displayName": - "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "d74d91a8-7679-40a2-9962-55e3d3aefda2", - "type": "Warehouse", "displayName": "StagingWarehouseForDataflows_20260129084026", - "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "a663b076-e4ce-4a22-a37a-f94b1937cd41", "type": "SQLEndpoint", "displayName": - "fabcli000001", "description": "", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, - {"id": "49b99e73-f31e-473d-9fe4-085031b70124", "type": "Lakehouse", "displayName": - "StagingLakehouseForDataflows_20260129083942", "description": "", "workspaceId": - "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}, {"id": "4f96ce1a-743c-4120-9eb0-93d278a70dbe", - "type": "SQLDatabase", "displayName": "fabcli000001", "workspaceId": "0cfd9c66-3bf0-4e43-8257-4b76aa86581e"}]}' + string: '{"value": [{"id": "d709ae8d-f523-4777-8693-a69f78af1dfc", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86"}, + {"id": "6106e499-9470-4da1-b134-472ea457cbf5", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -838,15 +794,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '451' + - '214' Content-Type: - application/json; charset=utf-8 Date: - - Thu, 29 Jan 2026 08:47:09 GMT + - Sun, 28 Jun 2026 13:38:39 GMT Pragma: - no-cache RequestId: - - 78eae283-edca-4cdb-931c-0a68e250ce2b + - 08624283-00ab-4876-942e-221c92d7d3c4 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -874,9 +830,9 @@ interactions: Content-Type: - application/json User-Agent: - - ms-fabric-cli-test/1.3.1 + - ms-fabric-cli-test/1.6.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/0cfd9c66-3bf0-4e43-8257-4b76aa86581e/items/4f96ce1a-743c-4120-9eb0-93d278a70dbe + uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items/6106e499-9470-4da1-b134-472ea457cbf5 response: body: string: '' @@ -892,11 +848,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Thu, 29 Jan 2026 08:47:10 GMT + - Sun, 28 Jun 2026 13:38:40 GMT Pragma: - no-cache RequestId: - - 787fc156-9cf8-4d74-a4f8-f2c31d2cdb31 + - b6780050-ee9e-43ed-9ae1-cc59672bd4e4 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: From c8c6dafbd7474f0d5b2a49edb235b09480cda424 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Sun, 28 Jun 2026 16:26:48 +0000 Subject: [PATCH 11/22] resolve PR comments --- .../unreleased/added-20260625-145755.yaml | 2 +- src/fabric_cli/errors/mkdir.py | 11 +++ src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 24 +++++-- tests/test_utils/test_fab_cmd_mkdir_utils.py | 69 +++++++++++++++---- 4 files changed, 85 insertions(+), 21 deletions(-) diff --git a/.changes/unreleased/added-20260625-145755.yaml b/.changes/unreleased/added-20260625-145755.yaml index 0d477e526..2a2a2d248 100644 --- a/.changes/unreleased/added-20260625-145755.yaml +++ b/.changes/unreleased/added-20260625-145755.yaml @@ -1,5 +1,5 @@ kind: added -body: Support creating SQLDatabase Item with optional parameters (creation payload) +body: Support creating SQLDatabase with optional parameters time: 2026-06-25T14:57:55.03150683Z custom: Author: aviatco diff --git a/src/fabric_cli/errors/mkdir.py b/src/fabric_cli/errors/mkdir.py index 5fffde026..e02d49550 100644 --- a/src/fabric_cli/errors/mkdir.py +++ b/src/fabric_cli/errors/mkdir.py @@ -35,3 +35,14 @@ def missing_restore_deleted_params() -> str: "Required: restorableDeletedDatabaseName, restorePointInTime. " "Example: -P mode=RestoreDeletedDatabase,restorableDeletedDatabaseName=,restorePointInTime=2024-01-15T10:30:00Z" ) + + @staticmethod + def unsupported_creation_mode(mode: str) -> str: + return ( + f"Unsupported creation mode '{mode}'. " + "Supported modes: New, Restore, RestoreDeletedDatabase" + ) + + @staticmethod + def invalid_backup_retention_days(value: str) -> str: + return f"Invalid backupRetentionDays value '{value}'. It must be an integer" diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index c45538cb8..1d9502091 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -216,8 +216,7 @@ def add_type_specific_payload(item: Item, args, payload): } case ItemType.SQL_DATABASE: - creation_payload = _build_sql_database_creation_payload_if_exists( - params) + creation_payload = _build_sql_database_creation_payload_if_exists(params) if len(creation_payload) > 0: payload_dict["creationPayload"] = creation_payload @@ -343,8 +342,7 @@ def get_params_per_item_type(item: Item): case ItemType.REPORT: optional_params = ["semanticModelId"] case ItemType.MOUNTED_DATA_FACTORY: - required_params = ["subscriptionId", - "resourceGroup", "factoryName"] + required_params = ["subscriptionId", "resourceGroup", "factoryName"] case ItemType.SQL_DATABASE: optional_params = [ "mode", @@ -813,13 +811,19 @@ def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: mode_lower = str(mode).lower() + if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_NEW.lower(): + return _build_sql_database_new_payload(params) + if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE.lower(): return _build_sql_database_restore_payload(params) if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED.lower(): return _build_sql_database_restore_deleted_payload(params) - return _build_sql_database_new_payload(params) + raise FabricCLIError( + ErrorMessages.Mkdir.unsupported_creation_mode(mode), + fab_constant.ERROR_INVALID_INPUT, + ) def _validate_required_params(params: dict, required: list, error_message: str) -> None: @@ -842,7 +846,15 @@ def _build_sql_database_new_payload(params: dict) -> dict: } if backup_retention_days is not None: - creation_payload["backupRetentionDays"] = backup_retention_days + try: + creation_payload["backupRetentionDays"] = int(backup_retention_days) + except (ValueError, TypeError): + raise FabricCLIError( + ErrorMessages.Mkdir.invalid_backup_retention_days( + backup_retention_days + ), + fab_constant.ERROR_INVALID_INPUT, + ) if collation is not None: creation_payload["collation"] = collation diff --git a/tests/test_utils/test_fab_cmd_mkdir_utils.py b/tests/test_utils/test_fab_cmd_mkdir_utils.py index ef060ff95..95a06174f 100644 --- a/tests/test_utils/test_fab_cmd_mkdir_utils.py +++ b/tests/test_utils/test_fab_cmd_mkdir_utils.py @@ -254,30 +254,55 @@ def test_build_sql_database_creation_payload_mode_success(self, provided): assert result["creationMode"] == fab_constant.SQL_DATABASE_CREATION_MODE_NEW @pytest.mark.parametrize( - "provided", + "provided, expected", [ - "21", - "10", - "seven", + ("21", 21), + (7, 7), ], ) def test_build_sql_database_creation_payload_backup_retention_success( - self, provided + self, provided, expected ): - """Test that backupRetentionDays is passed through as provided.""" + """Test that a numeric backupRetentionDays is converted to an integer.""" result = _build_sql_database_creation_payload_if_exists( - {"mode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, - "backupretentiondays": provided} + { + "mode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, + "backupretentiondays": provided, + } ) assert result is not None assert result["creationMode"] == fab_constant.SQL_DATABASE_CREATION_MODE_NEW - assert result["backupRetentionDays"] == provided + assert result["backupRetentionDays"] == expected + + @pytest.mark.parametrize( + "provided", + [ + "seven", + "21days", + "3.5", + ], + ) + def test_build_sql_database_creation_payload_backup_retention_failure( + self, provided + ): + """Test that a non-numeric backupRetentionDays raises an error.""" + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload_if_exists( + { + "mode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, + "backupretentiondays": provided, + } + ) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT def test_build_sql_database_creation_payload_collation_only_success(self): """Test that collation is set for the New mode.""" - params = {"mode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, - "collation": "SQL_Latin1_General_CP1_CI_AS"} + params = { + "mode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, + "collation": "SQL_Latin1_General_CP1_CI_AS", + } result = _build_sql_database_creation_payload_if_exists(params) assert result is not None @@ -295,7 +320,7 @@ def test_build_sql_database_creation_payload_collation_only_success(self): }, { "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_NEW, - "backupRetentionDays": "7", + "backupRetentionDays": 7, "collation": "some_collation_value", }, ), @@ -380,7 +405,7 @@ def test_build_sql_database_creation_payload_restore_success(self): }, ], ) - def test_build_sql_database_creation_payload_restore_missing_params_raises( + def test_build_sql_database_creation_payload_restore_missing_params_failure( self, params ): """Test that Restore mode raises when required params are missing.""" @@ -402,7 +427,7 @@ def test_build_sql_database_creation_payload_restore_missing_params_raises( }, ], ) - def test_build_sql_database_creation_payload_restore_deleted_missing_params_raises( + def test_build_sql_database_creation_payload_restore_deleted_missing_params_failure( self, params ): """Test that RestoreDeletedDatabase mode raises when required params are missing.""" @@ -410,3 +435,19 @@ def test_build_sql_database_creation_payload_restore_deleted_missing_params_rais _build_sql_database_creation_payload_if_exists(params) assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + + @pytest.mark.parametrize( + "mode", + [ + "foo", + "Restored", + "", + "restore-deleted", + ], + ) + def test_build_sql_database_creation_payload_unsupported_mode_failure(self, mode): + """Test that an unsupported mode raises instead of defaulting to New.""" + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload_if_exists({"mode": mode}) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT From c0d062c0c889c69f972ff2033c0d426c2daf2fd6 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Sun, 28 Jun 2026 16:54:27 +0000 Subject: [PATCH 12/22] fix recording --- .../test_commands/test_mkdir/class_setup.yaml | 46 ++--- ...atabase_with_creation_payload_success.yaml | 184 +++++++++--------- 2 files changed, 115 insertions(+), 115 deletions(-) diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml index c5a28a1e1..3be8f3e04 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml @@ -26,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3271' + - '3308' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:12 GMT + - Sun, 28 Jun 2026 16:51:24 GMT Pragma: - no-cache RequestId: - - f427cb2d-7a39-4a02-b720-7c41ce091fe6 + - dcb781a7-ea8e-4df6-b26a-4fc0c238bcca Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -75,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3271' + - '3308' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:13 GMT + - Sun, 28 Jun 2026 16:51:25 GMT Pragma: - no-cache RequestId: - - 4822dd36-325d-4354-ad1d-f6e4e22b7acf + - 4471d79f-56e0-4cad-850e-44fb8c145dac Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -125,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '467' + - '466' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:18 GMT + - Sun, 28 Jun 2026 16:51:28 GMT Pragma: - no-cache RequestId: - - cdc9b92c-69d9-4620-ba77-fd37ef3fd6f5 + - 3101b40a-9b31-4436-bce0-154c8cb8ac9b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -167,7 +167,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}' headers: @@ -182,13 +182,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:25 GMT + - Sun, 28 Jun 2026 16:51:36 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86 + - https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38 Pragma: - no-cache RequestId: - - 1fe7a597-bbc8-4ef7-9792-88756e340e12 + - cf5695eb-8016-4321-ae09-e9bd7dee0d30 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -220,7 +220,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", + "My workspace", "description": "", "type": "Personal"}, {"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -232,15 +232,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3307' + - '3343' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:38:40 GMT + - Sun, 28 Jun 2026 16:52:54 GMT Pragma: - no-cache RequestId: - - c9bd9f16-3e13-484f-aa48-749909637cf8 + - 4f188b92-29d3-4c3b-8cac-ae64c33e4469 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -268,7 +268,7 @@ interactions: User-Agent: - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items response: body: string: '{"value": []}' @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:38:41 GMT + - Sun, 28 Jun 2026 16:52:55 GMT Pragma: - no-cache RequestId: - - 0e8d46a9-21b8-4b60-ae66-fcfb0a923752 + - 9cfc10a6-0a91-49f8-8d5d-37a7392f5a86 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -318,7 +318,7 @@ interactions: User-Agent: - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86 + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38 response: body: string: '' @@ -334,11 +334,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Sun, 28 Jun 2026 13:38:41 GMT + - Sun, 28 Jun 2026 16:52:56 GMT Pragma: - no-cache RequestId: - - fa940b5a-e003-48cd-9735-aaed9518552c + - cbea1108-8d54-4423-ba81-4f3f5906661d Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml index f92216247..09fac2cc3 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml @@ -17,7 +17,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", + "My workspace", "description": "", "type": "Personal"}, {"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -29,15 +29,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3307' + - '3343' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:26 GMT + - Sun, 28 Jun 2026 16:51:37 GMT Pragma: - no-cache RequestId: - - 71938062-fcf5-4e88-a84f-8e4d57e1d4cd + - 2ee5dffc-27cb-4a9d-ba7f-20bc115a9d28 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -65,7 +65,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items response: body: string: '{"value": []}' @@ -81,11 +81,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:27 GMT + - Sun, 28 Jun 2026 16:51:37 GMT Pragma: - no-cache RequestId: - - 832ece71-0dc4-4612-9e0f-86f472c44dd0 + - b61693e2-7863-42e4-b7e3-0b9dc3b608b4 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -113,7 +113,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items response: body: string: '{"value": []}' @@ -129,11 +129,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:27 GMT + - Sun, 28 Jun 2026 16:51:38 GMT Pragma: - no-cache RequestId: - - 4cb462a9-898c-469a-9482-201409973e0a + - adafedeb-fd8f-4969-9c0a-8319dbc0937f Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -149,7 +149,7 @@ interactions: message: OK - request: body: '{"displayName": "fabcli000001", "type": "SQLDatabase", "folderId": null, - "creationPayload": {"creationMode": "New", "backupRetentionDays": "7", "collation": + "creationPayload": {"creationMode": "New", "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Accept: @@ -159,13 +159,13 @@ interactions: Connection: - keep-alive Content-Length: - - '193' + - '191' Content-Type: - application/json User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/sqlDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/sqlDatabases response: body: string: 'null' @@ -181,15 +181,15 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:29 GMT + - Sun, 28 Jun 2026 16:51:41 GMT ETag: - '""' Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/bfc8c40a-7762-4d4f-9283-9da32631862b + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1cd751f-bc00-47a9-b74b-94b7285c2f3b Pragma: - no-cache RequestId: - - 454ec5b8-9b6d-461d-93e7-87de4939930c + - 12a0c4a9-89f8-4745-8873-a1138a88eeb4 Retry-After: - '20' Strict-Transport-Security: @@ -203,7 +203,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - bfc8c40a-7762-4d4f-9283-9da32631862b + - b1cd751f-bc00-47a9-b74b-94b7285c2f3b status: code: 202 message: Accepted @@ -221,11 +221,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/bfc8c40a-7762-4d4f-9283-9da32631862b + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1cd751f-bc00-47a9-b74b-94b7285c2f3b response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-06-28T13:37:28.512913", - "lastUpdatedTimeUtc": "2026-06-28T13:37:47.29377", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-06-28T16:51:39.2107945", + "lastUpdatedTimeUtc": "2026-06-28T16:52:00.3104391", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -235,17 +235,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '130' + - '133' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:50 GMT + - Sun, 28 Jun 2026 16:52:03 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/bfc8c40a-7762-4d4f-9283-9da32631862b/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1cd751f-bc00-47a9-b74b-94b7285c2f3b/result Pragma: - no-cache RequestId: - - c0364c50-6e00-4403-9725-edcc0a2cf107 + - 0fae950f-cbc9-48bc-9f78-4d65ab80ce6d Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -253,7 +253,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - bfc8c40a-7762-4d4f-9283-9da32631862b + - b1cd751f-bc00-47a9-b74b-94b7285c2f3b status: code: 200 message: OK @@ -271,11 +271,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/bfc8c40a-7762-4d4f-9283-9da32631862b/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1cd751f-bc00-47a9-b74b-94b7285c2f3b/result response: body: - string: '{"id": "6106e499-9470-4da1-b134-472ea457cbf5", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86"}' + string: '{"id": "53fcabd0-b0dd-4e96-874f-513916e18e7d", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38"}' headers: Access-Control-Expose-Headers: - RequestId @@ -286,11 +286,11 @@ interactions: Content-Type: - application/json Date: - - Sun, 28 Jun 2026 13:37:51 GMT + - Sun, 28 Jun 2026 16:52:04 GMT Pragma: - no-cache RequestId: - - 494e534b-5608-40ca-a4a4-035b6055826d + - c1deb79f-d6b1-4b54-b1c3-608211d286b6 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -320,7 +320,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", + "My workspace", "description": "", "type": "Personal"}, {"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -332,15 +332,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3307' + - '3343' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:52 GMT + - Sun, 28 Jun 2026 16:52:05 GMT Pragma: - no-cache RequestId: - - 7d132cab-e8e2-480f-8a01-8bbd5e4b2350 + - 6b019c12-1c4a-4b1e-953a-441c33b4faa9 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -368,11 +368,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items response: body: - string: '{"value": [{"id": "6106e499-9470-4da1-b134-472ea457cbf5", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86"}]}' + string: '{"value": [{"id": "53fcabd0-b0dd-4e96-874f-513916e18e7d", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -381,15 +381,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '170' + - '171' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:52 GMT + - Sun, 28 Jun 2026 16:52:05 GMT Pragma: - no-cache RequestId: - - 21d194ee-1a56-4bce-b506-eee234090926 + - 6a3dc57f-d739-4247-96cd-dad7ca76149e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -417,16 +417,16 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/sqlDatabases/6106e499-9470-4da1-b134-472ea457cbf5 + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/sqlDatabases/53fcabd0-b0dd-4e96-874f-513916e18e7d response: body: - string: '{"id": "6106e499-9470-4da1-b134-472ea457cbf5", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86", - "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-fs3hhf3ys3bu3mjvhtgtdz5pqy.database.fabric.microsoft.com,1433;Initial - Catalog=fabcli000001-6106e499-9470-4da1-b134-472ea457cbf5;Multiple Active + string: '{"id": "53fcabd0-b0dd-4e96-874f-513916e18e7d", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-h3c72r7wn43unerksongzexlha.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000001-53fcabd0-b0dd-4e96-874f-513916e18e7d;Multiple Active Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", - "connectionString": "mock_connection_string", "databaseName": "fabcli000001-6106e499-9470-4da1-b134-472ea457cbf5", - "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-fs3hhf3ys3bu3mjvhtgtdz5pqy.database.fabric.microsoft.com,1433", + "connectionString": "mock_connection_string", "databaseName": "fabcli000001-53fcabd0-b0dd-4e96-874f-513916e18e7d", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-h3c72r7wn43unerksongzexlha.database.fabric.microsoft.com,1433", "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Access-Control-Expose-Headers: @@ -436,17 +436,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '431' + - '430' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:54 GMT + - Sun, 28 Jun 2026 16:52:06 GMT ETag: - '""' Pragma: - no-cache RequestId: - - 48385f7e-5e91-40c6-9570-74356058ff2c + - b40aecd3-4758-4ef6-82ea-c33cc8f374ca Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -476,7 +476,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items/6106e499-9470-4da1-b134-472ea457cbf5/getDefinition + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items/53fcabd0-b0dd-4e96-874f-513916e18e7d/getDefinition response: body: string: 'null' @@ -492,13 +492,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:37:54 GMT + - Sun, 28 Jun 2026 16:52:07 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea Pragma: - no-cache RequestId: - - 1810e011-a188-451b-af66-7f774164bd37 + - c6b25ac8-da93-49b9-aaef-2f40a3e4481e Retry-After: - '20' Strict-Transport-Security: @@ -512,7 +512,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - ee7a3ea2-234f-4ad7-8212-45f74b9ef28a + - d943971c-0985-4387-9863-02eea4f17fea status: code: 202 message: Accepted @@ -530,11 +530,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-06-28T13:37:54.8019662", - "lastUpdatedTimeUtc": "2026-06-28T13:37:54.8019662", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-06-28T16:52:07.8934668", + "lastUpdatedTimeUtc": "2026-06-28T16:52:07.8934668", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -548,13 +548,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:38:15 GMT + - Sun, 28 Jun 2026 16:52:28 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea Pragma: - no-cache RequestId: - - 9b60dd9f-c6a0-4262-9e78-d1e9725210fa + - 7fded92c-3b96-47fc-91a1-346c9a1f9f5d Retry-After: - '20' Strict-Transport-Security: @@ -564,7 +564,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ee7a3ea2-234f-4ad7-8212-45f74b9ef28a + - d943971c-0985-4387-9863-02eea4f17fea status: code: 200 message: OK @@ -582,11 +582,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-06-28T13:37:54.8019662", - "lastUpdatedTimeUtc": "2026-06-28T13:38:23.7939986", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-06-28T16:52:07.8934668", + "lastUpdatedTimeUtc": "2026-06-28T16:52:46.8430079", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -596,17 +596,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '133' + - '132' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:38:37 GMT + - Sun, 28 Jun 2026 16:52:50 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea/result Pragma: - no-cache RequestId: - - fe895b60-77b9-4c4f-80d4-280e369ecc34 + - 0899b748-d6f0-4c62-9d2b-7cd7a9eacf9d Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -614,7 +614,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ee7a3ea2-234f-4ad7-8212-45f74b9ef28a + - d943971c-0985-4387-9863-02eea4f17fea status: code: 200 message: OK @@ -632,11 +632,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ee7a3ea2-234f-4ad7-8212-45f74b9ef28a/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea/result response: body: string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000001.dacpac", - "payload": "UEsDBBQAAAAIAMls3FzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDhKWk2Wi3tw5Di0ChmWHPpNcHrtF16CcK3XHnxuTffF+vGLWXVc0kMvP1E5UqGoSfQuJHqBhw9rIi9VuNZstvtFyaw1lwjUCN2MezICy0kZlt1QnB4EyqZce9IvnbgnO9qqeqIRpIbU05hPq98wi8oJNYFdSlX3L6Nek7IveFNJjepCgMmzIazNtae2X/IRnKLKd5TBhnZ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ulBv4AWaOjwiTBs6GDybC4/kFSyw/J/f7/PV53no1YvG1AU2sCsrUMQ+PDpuDExSF0c4W31/R0oqVzkZaEXiCTH5lgaXyhCJc1KHcXCS5dhgdP7pGsJ9VR3QBxZiKWT5AKuvVLupF3Wbs71h8xzUZestKANCs+Bqo9W44u0fUEsBAhQAFAAAAAgAkYbcXMbqoL+pAgAAvAcAAAkAAAAAAAAAAAAAAAAAAAAAAG1vZGVsLnhtbFBLAQIUABQAAAAIAJGG3FyUjQUepQAAAMgAAAAPAAAAAAAAAAAAAAAAANACAABEYWNNZXRhZGF0YS54bWxQSwECFAAUAAAACACRhtxcRfX6xDACAABdBAAACgAAAAAAAAAAAAAAAACiAwAAT3JpZ2luLnhtbFBLAQIUABQAAAAIAJGG3FztodPgjwAAAK8AAAATAAAAAAAAAAAAAAAAAPoFAABbQ29udGVudF9UeXBlc10ueG1sUEsFBgAAAAAEAAQA7QAAALoGAAAAAA==", "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNRTERhdGFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", "payloadType": "InlineBase64"}]}}' headers: @@ -649,11 +649,11 @@ interactions: Content-Type: - application/json Date: - - Sun, 28 Jun 2026 13:38:37 GMT + - Sun, 28 Jun 2026 16:52:51 GMT Pragma: - no-cache RequestId: - - b5103386-cadc-4fb1-af3d-810d30473bf9 + - 5dff57a9-fabd-42ba-aa6d-a2a9b3b72828 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -679,7 +679,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items/6106e499-9470-4da1-b134-472ea457cbf5/connections + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items/53fcabd0-b0dd-4e96-874f-513916e18e7d/connections response: body: string: '{"value": []}' @@ -695,11 +695,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:38:38 GMT + - Sun, 28 Jun 2026 16:52:51 GMT Pragma: - no-cache RequestId: - - 63d4ae34-2672-4971-89af-06db754dd207 + - aa532c03-9622-4b5e-8b4c-1f1ea64551f3 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -731,7 +731,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "9773b62c-9678-4dc3-b135-3ccd31e7af86", + "My workspace", "description": "", "type": "Personal"}, {"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -743,15 +743,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3307' + - '3343' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:38:39 GMT + - Sun, 28 Jun 2026 16:52:53 GMT Pragma: - no-cache RequestId: - - 1e6b53bf-cd46-42a4-ae24-28ed5cade3c5 + - 1e84a503-9e35-4987-9940-461162d2e6be Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -779,13 +779,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items response: body: - string: '{"value": [{"id": "d709ae8d-f523-4777-8693-a69f78af1dfc", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86"}, - {"id": "6106e499-9470-4da1-b134-472ea457cbf5", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "9773b62c-9678-4dc3-b135-3ccd31e7af86"}]}' + string: '{"value": [{"id": "ce95a7b2-b3d9-4942-ad63-552c06fa0dfe", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38"}, + {"id": "53fcabd0-b0dd-4e96-874f-513916e18e7d", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -794,15 +794,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '214' + - '213' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 13:38:39 GMT + - Sun, 28 Jun 2026 16:52:53 GMT Pragma: - no-cache RequestId: - - 08624283-00ab-4876-942e-221c92d7d3c4 + - dfcadbe3-e1fc-48ad-b563-9133e17109ab Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -832,7 +832,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/9773b62c-9678-4dc3-b135-3ccd31e7af86/items/6106e499-9470-4da1-b134-472ea457cbf5 + uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items/53fcabd0-b0dd-4e96-874f-513916e18e7d response: body: string: '' @@ -848,11 +848,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Sun, 28 Jun 2026 13:38:40 GMT + - Sun, 28 Jun 2026 16:52:54 GMT Pragma: - no-cache RequestId: - - b6780050-ee9e-43ed-9ae1-cc59672bd4e4 + - a122b142-25b6-4326-9ef6-571519700343 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: From c8a987682cc2673fdfd248a38fbf71b14f2d10df Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Mon, 29 Jun 2026 11:38:59 +0000 Subject: [PATCH 13/22] revert support for Restore and RestoreDeleted --- src/fabric_cli/core/fab_constant.py | 2 - src/fabric_cli/errors/mkdir.py | 18 +- src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 59 ----- tests/test_commands/test_mkdir.py | 230 ++++++++----------- tests/test_utils/test_fab_cmd_mkdir_utils.py | 104 --------- 5 files changed, 97 insertions(+), 316 deletions(-) diff --git a/src/fabric_cli/core/fab_constant.py b/src/fabric_cli/core/fab_constant.py index 531aa091f..eb893e7a4 100644 --- a/src/fabric_cli/core/fab_constant.py +++ b/src/fabric_cli/core/fab_constant.py @@ -354,5 +354,3 @@ # SQLDatabase creation modes SQL_DATABASE_CREATION_MODE_NEW = "New" -SQL_DATABASE_CREATION_MODE_RESTORE = "Restore" -SQL_DATABASE_CREATION_MODE_RESTORE_DELETED = "RestoreDeletedDatabase" diff --git a/src/fabric_cli/errors/mkdir.py b/src/fabric_cli/errors/mkdir.py index e02d49550..9b27ac8ba 100644 --- a/src/fabric_cli/errors/mkdir.py +++ b/src/fabric_cli/errors/mkdir.py @@ -20,27 +20,11 @@ def workspace_capacity_not_found() -> str: def folder_name_exists() -> str: return "A folder with the same name already exists" - @staticmethod - def missing_restore_params() -> str: - return ( - "Missing required parameter(s) for restore mode. " - "Required: restorePointInTime, itemId, workspaceId. " - "Example: -P mode=Restore,restorePointInTime=2024-01-15T10:30:00Z,itemId=,workspaceId=" - ) - - @staticmethod - def missing_restore_deleted_params() -> str: - return ( - "Missing required parameter(s) for RestoreDeletedDatabase mode. " - "Required: restorableDeletedDatabaseName, restorePointInTime. " - "Example: -P mode=RestoreDeletedDatabase,restorableDeletedDatabaseName=,restorePointInTime=2024-01-15T10:30:00Z" - ) - @staticmethod def unsupported_creation_mode(mode: str) -> str: return ( f"Unsupported creation mode '{mode}'. " - "Supported modes: New, Restore, RestoreDeletedDatabase" + "Supported modes: New" ) @staticmethod diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index 1d9502091..3137a1448 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -348,11 +348,6 @@ def get_params_per_item_type(item: Item): "mode", "backupRetentionDays", "collation", - "restorePointInTime", - "itemId", - "workspaceId", - "referenceType", - "restorableDeletedDatabaseName", ] return required_params, optional_params @@ -796,10 +791,6 @@ def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: The payload is built based on the creation mode (params["mode"]): - New: creationMode, backupRetentionDays, collation - - Restore: creationMode, restorePointInTime, sourceDatabaseReference - (itemId, referenceType, workspaceId) - - RestoreDeletedDatabase: creationMode, restorableDeletedDatabaseName, - restorePointInTime Returns an empty dict when no mode is provided, since the creationPayload is optional. @@ -814,28 +805,12 @@ def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_NEW.lower(): return _build_sql_database_new_payload(params) - if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE.lower(): - return _build_sql_database_restore_payload(params) - - if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED.lower(): - return _build_sql_database_restore_deleted_payload(params) - raise FabricCLIError( ErrorMessages.Mkdir.unsupported_creation_mode(mode), fab_constant.ERROR_INVALID_INPUT, ) -def _validate_required_params(params: dict, required: list, error_message: str) -> None: - """Raise a FabricCLIError when any required param is missing or empty. - - 'required' is a list of (key) param names to look up in 'params'. - """ - missing = [key for key in required if not params.get(key)] - if missing: - raise FabricCLIError(error_message, fab_constant.ERROR_INVALID_INPUT) - - def _build_sql_database_new_payload(params: dict) -> dict: """Build the creationPayload for the New SQLDatabase mode.""" backup_retention_days = params.get("backupretentiondays") @@ -862,40 +837,6 @@ def _build_sql_database_new_payload(params: dict) -> dict: return creation_payload -def _build_sql_database_restore_payload(params: dict) -> dict: - """Build the creationPayload for the Restore SQLDatabase mode.""" - _validate_required_params( - params, - ["restorepointintime", "itemid", "workspaceid"], - ErrorMessages.Mkdir.missing_restore_params(), - ) - - return { - "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE, - "restorePointInTime": params.get("restorepointintime"), - "sourceDatabaseReference": { - "itemId": params.get("itemid"), - "referenceType": params.get("referencetype", "ById"), - "workspaceId": params.get("workspaceid"), - }, - } - - -def _build_sql_database_restore_deleted_payload(params: dict) -> dict: - """Build the creationPayload for the RestoreDeletedDatabase SQLDatabase mode.""" - _validate_required_params( - params, - ["restorabledeleteddatabasename", "restorepointintime"], - ErrorMessages.Mkdir.missing_restore_deleted_params(), - ) - - return { - "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, - "restorableDeletedDatabaseName": params.get("restorabledeleteddatabasename"), - "restorePointInTime": params.get("restorepointintime"), - } - - def validate_spark_pool_params(params): # Node size options allowed_node_sizes = {"small", "medium", "large", "xlarge", "xxlarge"} diff --git a/tests/test_commands/test_mkdir.py b/tests/test_commands/test_mkdir.py index 0c859ae54..dfa8ba968 100644 --- a/tests/test_commands/test_mkdir.py +++ b/tests/test_commands/test_mkdir.py @@ -100,9 +100,7 @@ def test_mkdir_unsupported_item_failure( workspace = workspace_factory() # Create unsupported item - item_display_name = generate_random_string( - vcr_instance, cassette_name - ) + item_display_name = generate_random_string(vcr_instance, cassette_name) item_name = f"{item_display_name}.{unsupported_item_type}" item_full_path = cli_path_join(workspace.full_path, item_name) @@ -128,15 +126,13 @@ def test_mkdir_lakehouse_with_creation_payload_success( cassette_name, upsert_item_to_cache, ): - lakehouse_display_name = generate_random_string( - vcr_instance, cassette_name) + lakehouse_display_name = generate_random_string(vcr_instance, cassette_name) lakehouse_full_path = cli_path_join( workspace.full_path, f"{lakehouse_display_name}.{ItemType.LAKEHOUSE}" ) # Execute command - cli_executor.exec_command( - f"mkdir {lakehouse_full_path} -P enableSchemas=true") + cli_executor.exec_command(f"mkdir {lakehouse_full_path} -P enableSchemas=true") # Assert upsert_item_to_cache.assert_called_once() @@ -170,8 +166,7 @@ def test_mkdir_kqldatabase_with_creation_payload_success( eventhouse_id = mock_questionary_print.call_args[0][0] mock_print_done.reset_mock() upsert_item_to_cache.reset_mock() - kqldatabase_display_name = generate_random_string( - vcr_instance, cassette_name) + kqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) kqldatabase_full_path = cli_path_join( workspace.full_path, f"{kqldatabase_display_name}.{ItemType.KQL_DATABASE}" ) @@ -206,8 +201,7 @@ def test_mkdir_kqldatabase_without_creation_payload_success( upsert_item_to_cache, ): # Setup - kqldatabase_display_name = generate_random_string( - vcr_instance, cassette_name) + kqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) kqldatabase_full_path = cli_path_join( workspace.full_path, f"{kqldatabase_display_name}.{ItemType.KQL_DATABASE}" ) @@ -227,8 +221,7 @@ def test_mkdir_kqldatabase_without_creation_payload_success( mock_questionary_print.reset_mock() eventhouse_full_path = ( - kqldatabase_full_path.removesuffix( - ".KQLDatabase") + "_auto.Eventhouse" + kqldatabase_full_path.removesuffix(".KQLDatabase") + "_auto.Eventhouse" ) get(eventhouse_full_path, query="id") eventhouse_id = mock_questionary_print.call_args[0][0] @@ -253,8 +246,7 @@ def test_mkdir_sqldatabase_with_creation_payload_success( upsert_item_to_cache, ): # Setup - sqldatabase_display_name = generate_random_string( - vcr_instance, cassette_name) + sqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) sqldatabase_full_path = cli_path_join( workspace.full_path, f"{sqldatabase_display_name}.{ItemType.SQL_DATABASE}" ) @@ -428,16 +420,14 @@ def test_mkdir_workspace_with_default_capacity_not_set_failure( self, cli_executor, assert_fabric_cli_error, vcr_instance, cassette_name ): # Setup - fab_default_capacity = state_config.get_config( - constant.FAB_DEFAULT_CAPACITY) + fab_default_capacity = state_config.get_config(constant.FAB_DEFAULT_CAPACITY) fab_default_capacity_id = state_config.get_config( constant.FAB_DEFAULT_CAPACITY_ID ) state_config.set_config(constant.FAB_DEFAULT_CAPACITY, "") state_config.set_config(constant.FAB_DEFAULT_CAPACITY_ID, "") - workspace_display_name = generate_random_string( - vcr_instance, cassette_name) + workspace_display_name = generate_random_string(vcr_instance, cassette_name) workspace_full_path = f"/{workspace_display_name}.Workspace" # Execute command @@ -450,8 +440,7 @@ def test_mkdir_workspace_with_default_capacity_not_set_failure( ) # Cleanup - state_config.set_config( - constant.FAB_DEFAULT_CAPACITY, fab_default_capacity) + state_config.set_config(constant.FAB_DEFAULT_CAPACITY, fab_default_capacity) state_config.set_config( constant.FAB_DEFAULT_CAPACITY_ID, fab_default_capacity_id ) @@ -531,14 +520,11 @@ def _mkdir_workspace_success( ): # Setup - workspace_display_name = generate_random_string( - vcr_instance, cassette_name) + workspace_display_name = generate_random_string(vcr_instance, cassette_name) workspace_full_path = f"/{workspace_display_name}.Workspace" - fab_capacity_name = state_config.get_config( - constant.FAB_DEFAULT_CAPACITY) - fab_capacity_name_id = state_config.get_config( - constant.FAB_DEFAULT_CAPACITY_ID) + fab_capacity_name = state_config.get_config(constant.FAB_DEFAULT_CAPACITY) + fab_capacity_name_id = state_config.get_config(constant.FAB_DEFAULT_CAPACITY_ID) # Execute command if capacity_name: @@ -564,10 +550,8 @@ def _mkdir_workspace_success( assert workspace_display_name in mock_questionary_print.call_args[0][0] # Cleanup - state_config.set_config( - constant.FAB_DEFAULT_CAPACITY, fab_capacity_name) - state_config.set_config( - constant.FAB_DEFAULT_CAPACITY_ID, fab_capacity_name_id) + state_config.set_config(constant.FAB_DEFAULT_CAPACITY, fab_capacity_name) + state_config.set_config(constant.FAB_DEFAULT_CAPACITY_ID, fab_capacity_name_id) rm(workspace_full_path) # endregion @@ -579,8 +563,7 @@ def test_mkdir_onelake_success( # Setup lakehouse = item_factory(ItemType.LAKEHOUSE) mock_print_done.reset_mock() - onelake_display_name = generate_random_string( - vcr_instance, cassette_name) + onelake_display_name = generate_random_string(vcr_instance, cassette_name) onelake_full_path = cli_path_join( lakehouse.full_path, "Files", f"{onelake_display_name}" ) @@ -674,8 +657,7 @@ def test_mkdir_sparkpool_with_params_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string( - vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -714,8 +696,7 @@ def test_mkdir_sparkpool_without_params_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string( - vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -752,8 +733,7 @@ def test_mkdir_sparkpool_with_params_without_maxNodeCount_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string( - vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -794,8 +774,7 @@ def test_mkdir_sparkpool_with_params_without_minNodeCount_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string( - vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -888,8 +867,7 @@ def test_mkdir_capacity_missing_resource_group_failure( fab_default_az_resource_group = state_config.get_config( constant.FAB_DEFAULT_AZ_RESOURCE_GROUP ) - state_config.set_config( - constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") state_config.set_config(constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "") capacity_display_name = "invalidcapacity" capacity_full_path = cli_path_join( @@ -923,10 +901,8 @@ def test_mkdir_capacity_missing_location_failure( fab_default_az_location = state_config.get_config( constant.FAB_DEFAULT_AZ_LOCATION ) - state_config.set_config( - constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") - state_config.set_config( - constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") state_config.set_config(constant.FAB_DEFAULT_AZ_LOCATION, "") capacity_display_name = "invalidcapacity" capacity_full_path = cli_path_join( @@ -963,14 +939,10 @@ def test_mkdir_capacity_missing_admin_failure( fab_default_az_location = state_config.get_config( constant.FAB_DEFAULT_AZ_LOCATION ) - fab_default_az_admin = state_config.get_config( - constant.FAB_DEFAULT_AZ_ADMIN) - state_config.set_config( - constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") - state_config.set_config( - constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") - state_config.set_config( - constant.FAB_DEFAULT_AZ_LOCATION, "placeholder") + fab_default_az_admin = state_config.get_config(constant.FAB_DEFAULT_AZ_ADMIN) + state_config.set_config(constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_LOCATION, "placeholder") state_config.set_config(constant.FAB_DEFAULT_AZ_ADMIN, "") capacity_display_name = "invalidcapacity" capacity_full_path = cli_path_join( @@ -993,8 +965,7 @@ def test_mkdir_capacity_missing_admin_failure( state_config.set_config( constant.FAB_DEFAULT_AZ_LOCATION, fab_default_az_location ) - state_config.set_config( - constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) + state_config.set_config(constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) def test_mkdir_capacity_with_params_success( self, @@ -1007,8 +978,7 @@ def test_mkdir_capacity_with_params_success( test_data: StaticTestData, ): # Setup - capacity_display_name = generate_random_string( - vcr_instance, cassette_name) + capacity_display_name = generate_random_string(vcr_instance, cassette_name) capacity_full_path = cli_path_join( ".capacities", capacity_display_name + ".Capacity" ) @@ -1045,8 +1015,7 @@ def test_mkdir_capacity_success( test_data: StaticTestData, ): # Setup - capacity_display_name = generate_random_string( - vcr_instance, cassette_name) + capacity_display_name = generate_random_string(vcr_instance, cassette_name) capacity_full_path = cli_path_join( ".capacities", capacity_display_name + ".Capacity" ) @@ -1139,10 +1108,8 @@ def test_mkdir_domain_without_params_success( upsert_domain_to_cache, ): # Setup - domain_display_name = generate_random_string( - vcr_instance, cassette_name) - domain_full_path = cli_path_join( - ".domains", domain_display_name + ".Domain") + domain_display_name = generate_random_string(vcr_instance, cassette_name) + domain_full_path = cli_path_join(".domains", domain_display_name + ".Domain") # Execute command cli_executor.exec_command(f"mkdir {domain_full_path}") @@ -1170,16 +1137,13 @@ def test_mkdir_domain_with_params_success( upsert_domain_to_cache, ): # Setup - parent_domain = virtual_workspace_item_factory( - VirtualWorkspaceType.DOMAIN) + parent_domain = virtual_workspace_item_factory(VirtualWorkspaceType.DOMAIN) get(parent_domain.full_path, query="id") parent_domain_id = mock_questionary_print.call_args[0][0] mock_print_done.reset_mock() upsert_domain_to_cache.reset_mock() - domain_display_name = generate_random_string( - vcr_instance, cassette_name) - domain_full_path = cli_path_join( - ".domains", domain_display_name + ".Domain") + domain_display_name = generate_random_string(vcr_instance, cassette_name) + domain_full_path = cli_path_join(".domains", domain_display_name + ".Domain") # Execute command cli_executor.exec_command( @@ -1210,8 +1174,7 @@ def test_mkdir_domain_without_params_failure( ): domain_display_name = "domainNoParams" - domain_full_path = cli_path_join( - ".domains", domain_display_name + ".Domain") + domain_full_path = cli_path_join(".domains", domain_display_name + ".Domain") # with params=[] we simulate -P without args cli_executor.exec_command(f"mkdir {domain_full_path} -P") @@ -1402,8 +1365,7 @@ def test_mkdir_managed_private_endpoint_without_params_fail( ) # Execute command - cli_executor.exec_command( - f"mkdir {managed_private_endpoint_full_path}") + cli_executor.exec_command(f"mkdir {managed_private_endpoint_full_path}") # Assert assert_fabric_cli_error(constant.ERROR_INVALID_INPUT) @@ -1485,8 +1447,7 @@ def test_mkdir_external_data_share_with_params_success( eds_display_name = generate_random_string(vcr_instance, cassette_name) type = VirtualItemContainerType.EXTERNAL_DATA_SHARE eds_full_path = cli_path_join( - workspace.full_path, str( - type), f"{eds_display_name}.{str(VICMap[type])}" + workspace.full_path, str(type), f"{eds_display_name}.{str(VICMap[type])}" ) # Execute command @@ -1512,8 +1473,7 @@ def test_mkdir_external_data_share_with_params_success( generated_name = ".".join(parts[:2]) eds_full_path = cli_path_join( - workspace.full_path, str( - type), f"{generated_name}.{str(VICMap[type])}" + workspace.full_path, str(type), f"{generated_name}.{str(VICMap[type])}" ) # Cleanup @@ -1535,8 +1495,7 @@ def test_mkdir_external_data_share_without_params_fail( eds_display_name = generate_random_string(vcr_instance, cassette_name) type = VirtualItemContainerType.EXTERNAL_DATA_SHARE eds_full_path = cli_path_join( - workspace.full_path, str( - type), f"{eds_display_name}.{str(VICMap[type])}" + workspace.full_path, str(type), f"{eds_display_name}.{str(VICMap[type])}" ) # Execute command @@ -1561,8 +1520,7 @@ def test_mkdir_connection_with_params_success( cassette_name, ): # Setup - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1603,8 +1561,7 @@ def test_mkdir_connection_with_onpremises_gateway_params_success( cassette_name, ): # Setup - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1637,8 +1594,7 @@ def test_mkdir_connection_with_onpremises_gateway_params_ignore_params_success( cassette_name, ): # Setup - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1657,7 +1613,10 @@ def test_mkdir_connection_with_onpremises_gateway_params_ignore_params_success( mock_print_warning.assert_called() assert mock_print_warning.call_count == 1 - assert f"Ignoring unsupported parameters for on-premises gateway: ['ignoreparameters']" == mock_print_warning.call_args[0][0] + assert ( + f"Ignoring unsupported parameters for on-premises gateway: ['ignoreparameters']" + == mock_print_warning.call_args[0][0] + ) # Cleanup rm(connection_full_path) @@ -1671,8 +1630,7 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( cassette_name, ): # Setup - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1685,8 +1643,10 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][ - 0].message == "Missing parameters for credential type Basic: ['values']" + assert ( + mock_fab_ui_print_error.call_args[0][0].message + == "Missing parameters for credential type Basic: ['values']" + ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" mock_fab_ui_print_error.reset_mock() @@ -1699,8 +1659,11 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.missing_onpremises_gateway_parameters([ - 'encryptedCredentials']) + assert mock_fab_ui_print_error.call_args[0][ + 0 + ].message == ErrorMessages.Common.missing_onpremises_gateway_parameters( + ["encryptedCredentials"] + ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" mock_fab_ui_print_error.reset_mock() @@ -1713,8 +1676,11 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.missing_onpremises_gateway_parameters([ - 'gatewayId']) + assert mock_fab_ui_print_error.call_args[0][ + 0 + ].message == ErrorMessages.Common.missing_onpremises_gateway_parameters( + ["gatewayId"] + ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" mock_fab_ui_print_error.reset_mock() @@ -1727,7 +1693,9 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.invalid_onpremises_gateway_values( + assert ( + mock_fab_ui_print_error.call_args[0][0].message + == ErrorMessages.Common.invalid_onpremises_gateway_values() ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" @@ -1741,7 +1709,9 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.invalid_onpremises_gateway_values( + assert ( + mock_fab_ui_print_error.call_args[0][0].message + == ErrorMessages.Common.invalid_onpremises_gateway_values() ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" @@ -1755,8 +1725,7 @@ def test_mkdir_connection_with_gateway_params_success( cassette_name, ): # Setup - gateway_display_name = generate_random_string( - vcr_instance, cassette_name) + gateway_display_name = generate_random_string(vcr_instance, cassette_name) gateway_full_path = cli_path_join( ".gateways", gateway_display_name + ".Gateway" ) @@ -1766,8 +1735,7 @@ def test_mkdir_connection_with_gateway_params_success( f"capacity={test_data.capacity.name},virtualNetworkName={test_data.vnet.name},subnetName={test_data.vnet.subnet}" ], ) - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1827,8 +1795,7 @@ def test_mkdir_connection_case_sensitivity_scenario_success( cassette_name, test_data: StaticTestData, ): - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1855,8 +1822,7 @@ def test_mkdir_connection_case_insensitive_parameter_matching_success( test_data: StaticTestData, ): """Test that parameter name matching is case-insensitive for creation method inference.""" - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1903,8 +1869,7 @@ def test_mkdir_connection_parameter_name_none_safety_success( test_data: StaticTestData, ): """Test that parameter name None safety doesn't break normal operation.""" - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1934,8 +1899,7 @@ def test_mkdir_gateway_with_params_success( cassette_name, ): # Setup - gateway_display_name = generate_random_string( - vcr_instance, cassette_name) + gateway_display_name = generate_random_string(vcr_instance, cassette_name) gateway_full_path = cli_path_join( ".gateways", gateway_display_name + ".Gateway" ) @@ -2026,8 +1990,7 @@ def test_mkdir_workspace_verify_stderr_stdout_messages_text_format_success( cassette_name, test_data: StaticTestData, ): - workspace_display_name = generate_random_string( - vcr_instance, cassette_name) + workspace_display_name = generate_random_string(vcr_instance, cassette_name) captured, workspace_full_path = self._verify_mkdir_workspace_output( cli_executor, workspace_display_name, @@ -2053,8 +2016,7 @@ def test_mkdir_workspace_verify_stderr_stdout_messages_json_format_success( ): # Set output format to json mock_fab_set_state_config(constant.FAB_OUTPUT_FORMAT, "json") - workspace_display_name = generate_random_string( - vcr_instance, cassette_name) + workspace_display_name = generate_random_string(vcr_instance, cassette_name) captured, workspace_full_path = self._verify_mkdir_workspace_output( cli_executor, workspace_display_name, @@ -2080,7 +2042,14 @@ def test_mkdir_workspace_verify_stderr_stdout_messages_json_format_success( # region Folders def test_mkdir_item_in_folder_listing_success( - self, workspace, cli_executor, mock_print_done, mock_questionary_print, mock_fab_set_state_config, vcr_instance, cassette_name + self, + workspace, + cli_executor, + mock_print_done, + mock_questionary_print, + mock_fab_set_state_config, + vcr_instance, + cassette_name, ): # Enable folder listing mock_fab_set_state_config(constant.FAB_FOLDER_LISTING_ENABLED, "true") @@ -2095,7 +2064,9 @@ def test_mkdir_item_in_folder_listing_success( mock_print_done.reset_mock() # Create notebook in folder - notebook_name = f"{generate_random_string(vcr_instance, cassette_name)}.Notebook" + notebook_name = ( + f"{generate_random_string(vcr_instance, cassette_name)}.Notebook" + ) notebook_full_path = cli_path_join(folder_full_path, notebook_name) cli_executor.exec_command(f"mkdir {notebook_full_path}") @@ -2111,8 +2082,7 @@ def test_mkdir_item_in_folder_listing_success( def test_mkdir_folder_success(self, workspace, cli_executor, mock_print_done): # Setup folder_display_name = "folder" - folder_full_path = cli_path_join( - workspace.full_path, folder_display_name) + folder_full_path = cli_path_join(workspace.full_path, folder_display_name) # Execute command cli_executor.exec_command(f"mkdir {folder_full_path}") @@ -2172,8 +2142,7 @@ def test_mkdir_single_item_creation_batch_output_structure_success( ): """Test that single item creation uses batched output structure.""" # Setup - lakehouse_display_name = generate_random_string( - vcr_instance, cassette_name) + lakehouse_display_name = generate_random_string(vcr_instance, cassette_name) lakehouse_full_path = cli_path_join( workspace.full_path, f"{lakehouse_display_name}.{ItemType.LAKEHOUSE}" ) @@ -2189,8 +2158,7 @@ def test_mkdir_single_item_creation_batch_output_structure_success( # Verify headers and values in mock_questionary_print.mock_calls # Look for the table output with headers - output_calls = [str(call) - for call in mock_questionary_print.mock_calls] + output_calls = [str(call) for call in mock_questionary_print.mock_calls] table_output = "\n".join(output_calls) # Check for standard table headers @@ -2217,8 +2185,7 @@ def test_mkdir_dependency_creation_batched_output_kql_database_success( ): """Test that KQL Database creation with EventHouse dependency produces batched output.""" # Setup - kqldatabase_display_name = generate_random_string( - vcr_instance, cassette_name) + kqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) kqldatabase_full_path = cli_path_join( workspace.full_path, f"{kqldatabase_display_name}.{ItemType.KQL_DATABASE}" ) @@ -2239,8 +2206,7 @@ def test_mkdir_dependency_creation_batched_output_kql_database_success( ) # Verify headers and values in mock_questionary_print.mock_calls for batched output - output_calls = [str(call) - for call in mock_questionary_print.mock_calls] + output_calls = [str(call) for call in mock_questionary_print.mock_calls] table_output = "\n".join(output_calls) # Check for standard table headers (should appear once for consolidated table) @@ -2259,8 +2225,7 @@ def test_mkdir_dependency_creation_batched_output_kql_database_success( # Cleanup - removing parent eventhouse removes the kqldatabase as well eventhouse_full_path = ( - kqldatabase_full_path.removesuffix( - ".KQLDatabase") + "_auto.Eventhouse" + kqldatabase_full_path.removesuffix(".KQLDatabase") + "_auto.Eventhouse" ) rm(eventhouse_full_path) @@ -2340,8 +2305,7 @@ def test_mkdir_digitaltwinbuilderflow_without_creation_payload_success( mock_questionary_print.reset_mock() digital_twin_builder_full_path = ( - flow_full_path.removesuffix( - f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + flow_full_path.removesuffix(f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + f"_auto.{ItemType.DIGITAL_TWIN_BUILDER}" ) get(digital_twin_builder_full_path, query="id") @@ -2389,8 +2353,7 @@ def test_mkdir_dependency_creation_batched_output_digitaltwinbuilderflow_success ) # Verify headers and values in table output - output_calls = [str(call) - for call in mock_questionary_print.mock_calls] + output_calls = [str(call) for call in mock_questionary_print.mock_calls] table_output = "\n".join(output_calls) assert "id" in table_output or "ID" in table_output @@ -2411,8 +2374,7 @@ def test_mkdir_dependency_creation_batched_output_digitaltwinbuilderflow_success # Cleanup - removing parent DigitalTwinBuilder removes the flow as well digital_twin_builder_full_path = ( - flow_full_path.removesuffix( - f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + flow_full_path.removesuffix(f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + f"_auto.{ItemType.DIGITAL_TWIN_BUILDER}" ) rm(digital_twin_builder_full_path) diff --git a/tests/test_utils/test_fab_cmd_mkdir_utils.py b/tests/test_utils/test_fab_cmd_mkdir_utils.py index 95a06174f..abd0d564d 100644 --- a/tests/test_utils/test_fab_cmd_mkdir_utils.py +++ b/tests/test_utils/test_fab_cmd_mkdir_utils.py @@ -324,36 +324,6 @@ def test_build_sql_database_creation_payload_collation_only_success(self): "collation": "some_collation_value", }, ), - ( - { - "mode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE, - "restorepointintime": "2024-01-15T10:30:00Z", - "itemid": "11111111-1111-1111-1111-111111111111", - "workspaceid": "22222222-2222-2222-2222-222222222222", - "referencetype": "ByName", - }, - { - "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE, - "restorePointInTime": "2024-01-15T10:30:00Z", - "sourceDatabaseReference": { - "itemId": "11111111-1111-1111-1111-111111111111", - "referenceType": "ByName", - "workspaceId": "22222222-2222-2222-2222-222222222222", - }, - }, - ), - ( - { - "mode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, - "restorabledeleteddatabasename": "my-deleted-db", - "restorepointintime": "2024-01-15T10:30:00Z", - }, - { - "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, - "restorableDeletedDatabaseName": "my-deleted-db", - "restorePointInTime": "2024-01-15T10:30:00Z", - }, - ), ], ) def test_build_sql_database_creation_payload_all_properties_success( @@ -364,85 +334,11 @@ def test_build_sql_database_creation_payload_all_properties_success( assert result == expected - def test_build_sql_database_creation_payload_restore_success(self): - """Test SQLDatabase creation in Restore mode builds the correct payload.""" - params = { - "mode": "Restore", - "restorepointintime": "2024-01-15T10:30:00Z", - "itemid": "11111111-1111-1111-1111-111111111111", - "workspaceid": "22222222-2222-2222-2222-222222222222", - } - - result = _build_sql_database_creation_payload_if_exists(params) - - assert result == { - "creationMode": "Restore", - "restorePointInTime": "2024-01-15T10:30:00Z", - "sourceDatabaseReference": { - "itemId": "11111111-1111-1111-1111-111111111111", - "referenceType": "ById", - "workspaceId": "22222222-2222-2222-2222-222222222222", - }, - } - - @pytest.mark.parametrize( - "params", - [ - { - "mode": "Restore", - "itemid": "11111111-1111-1111-1111-111111111111", - "workspaceid": "22222222-2222-2222-2222-222222222222", - }, - { - "mode": "Restore", - "restorepointintime": "2024-01-15T10:30:00Z", - "workspaceid": "22222222-2222-2222-2222-222222222222", - }, - { - "mode": "Restore", - "restorepointintime": "2024-01-15T10:30:00Z", - "itemid": "11111111-1111-1111-1111-111111111111", - }, - ], - ) - def test_build_sql_database_creation_payload_restore_missing_params_failure( - self, params - ): - """Test that Restore mode raises when required params are missing.""" - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload_if_exists(params) - - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - - @pytest.mark.parametrize( - "params", - [ - { - "mode": "RestoreDeletedDatabase", - "restorepointintime": "2024-01-15T10:30:00Z", - }, - { - "mode": "RestoreDeletedDatabase", - "restorabledeleteddatabasename": "my-deleted-db", - }, - ], - ) - def test_build_sql_database_creation_payload_restore_deleted_missing_params_failure( - self, params - ): - """Test that RestoreDeletedDatabase mode raises when required params are missing.""" - with pytest.raises(FabricCLIError) as exc_info: - _build_sql_database_creation_payload_if_exists(params) - - assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT - @pytest.mark.parametrize( "mode", [ "foo", - "Restored", "", - "restore-deleted", ], ) def test_build_sql_database_creation_payload_unsupported_mode_failure(self, mode): From cf710c23ddc576bcb21a08f327f7e38d7eca248e Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Mon, 29 Jun 2026 12:13:47 +0000 Subject: [PATCH 14/22] Support restore and restoreDeteledDatabase mode --- src/fabric_cli/core/fab_constant.py | 2 + src/fabric_cli/errors/mkdir.py | 18 +- src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 59 +++++ tests/test_commands/test_mkdir.py | 230 +++++++++++-------- tests/test_utils/test_fab_cmd_mkdir_utils.py | 104 +++++++++ 5 files changed, 316 insertions(+), 97 deletions(-) diff --git a/src/fabric_cli/core/fab_constant.py b/src/fabric_cli/core/fab_constant.py index eb893e7a4..531aa091f 100644 --- a/src/fabric_cli/core/fab_constant.py +++ b/src/fabric_cli/core/fab_constant.py @@ -354,3 +354,5 @@ # SQLDatabase creation modes SQL_DATABASE_CREATION_MODE_NEW = "New" +SQL_DATABASE_CREATION_MODE_RESTORE = "Restore" +SQL_DATABASE_CREATION_MODE_RESTORE_DELETED = "RestoreDeletedDatabase" diff --git a/src/fabric_cli/errors/mkdir.py b/src/fabric_cli/errors/mkdir.py index 9b27ac8ba..e02d49550 100644 --- a/src/fabric_cli/errors/mkdir.py +++ b/src/fabric_cli/errors/mkdir.py @@ -20,11 +20,27 @@ def workspace_capacity_not_found() -> str: def folder_name_exists() -> str: return "A folder with the same name already exists" + @staticmethod + def missing_restore_params() -> str: + return ( + "Missing required parameter(s) for restore mode. " + "Required: restorePointInTime, itemId, workspaceId. " + "Example: -P mode=Restore,restorePointInTime=2024-01-15T10:30:00Z,itemId=,workspaceId=" + ) + + @staticmethod + def missing_restore_deleted_params() -> str: + return ( + "Missing required parameter(s) for RestoreDeletedDatabase mode. " + "Required: restorableDeletedDatabaseName, restorePointInTime. " + "Example: -P mode=RestoreDeletedDatabase,restorableDeletedDatabaseName=,restorePointInTime=2024-01-15T10:30:00Z" + ) + @staticmethod def unsupported_creation_mode(mode: str) -> str: return ( f"Unsupported creation mode '{mode}'. " - "Supported modes: New" + "Supported modes: New, Restore, RestoreDeletedDatabase" ) @staticmethod diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index 3137a1448..1d9502091 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -348,6 +348,11 @@ def get_params_per_item_type(item: Item): "mode", "backupRetentionDays", "collation", + "restorePointInTime", + "itemId", + "workspaceId", + "referenceType", + "restorableDeletedDatabaseName", ] return required_params, optional_params @@ -791,6 +796,10 @@ def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: The payload is built based on the creation mode (params["mode"]): - New: creationMode, backupRetentionDays, collation + - Restore: creationMode, restorePointInTime, sourceDatabaseReference + (itemId, referenceType, workspaceId) + - RestoreDeletedDatabase: creationMode, restorableDeletedDatabaseName, + restorePointInTime Returns an empty dict when no mode is provided, since the creationPayload is optional. @@ -805,12 +814,28 @@ def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_NEW.lower(): return _build_sql_database_new_payload(params) + if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE.lower(): + return _build_sql_database_restore_payload(params) + + if mode_lower == fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED.lower(): + return _build_sql_database_restore_deleted_payload(params) + raise FabricCLIError( ErrorMessages.Mkdir.unsupported_creation_mode(mode), fab_constant.ERROR_INVALID_INPUT, ) +def _validate_required_params(params: dict, required: list, error_message: str) -> None: + """Raise a FabricCLIError when any required param is missing or empty. + + 'required' is a list of (key) param names to look up in 'params'. + """ + missing = [key for key in required if not params.get(key)] + if missing: + raise FabricCLIError(error_message, fab_constant.ERROR_INVALID_INPUT) + + def _build_sql_database_new_payload(params: dict) -> dict: """Build the creationPayload for the New SQLDatabase mode.""" backup_retention_days = params.get("backupretentiondays") @@ -837,6 +862,40 @@ def _build_sql_database_new_payload(params: dict) -> dict: return creation_payload +def _build_sql_database_restore_payload(params: dict) -> dict: + """Build the creationPayload for the Restore SQLDatabase mode.""" + _validate_required_params( + params, + ["restorepointintime", "itemid", "workspaceid"], + ErrorMessages.Mkdir.missing_restore_params(), + ) + + return { + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE, + "restorePointInTime": params.get("restorepointintime"), + "sourceDatabaseReference": { + "itemId": params.get("itemid"), + "referenceType": params.get("referencetype", "ById"), + "workspaceId": params.get("workspaceid"), + }, + } + + +def _build_sql_database_restore_deleted_payload(params: dict) -> dict: + """Build the creationPayload for the RestoreDeletedDatabase SQLDatabase mode.""" + _validate_required_params( + params, + ["restorabledeleteddatabasename", "restorepointintime"], + ErrorMessages.Mkdir.missing_restore_deleted_params(), + ) + + return { + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, + "restorableDeletedDatabaseName": params.get("restorabledeleteddatabasename"), + "restorePointInTime": params.get("restorepointintime"), + } + + def validate_spark_pool_params(params): # Node size options allowed_node_sizes = {"small", "medium", "large", "xlarge", "xxlarge"} diff --git a/tests/test_commands/test_mkdir.py b/tests/test_commands/test_mkdir.py index dfa8ba968..0c859ae54 100644 --- a/tests/test_commands/test_mkdir.py +++ b/tests/test_commands/test_mkdir.py @@ -100,7 +100,9 @@ def test_mkdir_unsupported_item_failure( workspace = workspace_factory() # Create unsupported item - item_display_name = generate_random_string(vcr_instance, cassette_name) + item_display_name = generate_random_string( + vcr_instance, cassette_name + ) item_name = f"{item_display_name}.{unsupported_item_type}" item_full_path = cli_path_join(workspace.full_path, item_name) @@ -126,13 +128,15 @@ def test_mkdir_lakehouse_with_creation_payload_success( cassette_name, upsert_item_to_cache, ): - lakehouse_display_name = generate_random_string(vcr_instance, cassette_name) + lakehouse_display_name = generate_random_string( + vcr_instance, cassette_name) lakehouse_full_path = cli_path_join( workspace.full_path, f"{lakehouse_display_name}.{ItemType.LAKEHOUSE}" ) # Execute command - cli_executor.exec_command(f"mkdir {lakehouse_full_path} -P enableSchemas=true") + cli_executor.exec_command( + f"mkdir {lakehouse_full_path} -P enableSchemas=true") # Assert upsert_item_to_cache.assert_called_once() @@ -166,7 +170,8 @@ def test_mkdir_kqldatabase_with_creation_payload_success( eventhouse_id = mock_questionary_print.call_args[0][0] mock_print_done.reset_mock() upsert_item_to_cache.reset_mock() - kqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) + kqldatabase_display_name = generate_random_string( + vcr_instance, cassette_name) kqldatabase_full_path = cli_path_join( workspace.full_path, f"{kqldatabase_display_name}.{ItemType.KQL_DATABASE}" ) @@ -201,7 +206,8 @@ def test_mkdir_kqldatabase_without_creation_payload_success( upsert_item_to_cache, ): # Setup - kqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) + kqldatabase_display_name = generate_random_string( + vcr_instance, cassette_name) kqldatabase_full_path = cli_path_join( workspace.full_path, f"{kqldatabase_display_name}.{ItemType.KQL_DATABASE}" ) @@ -221,7 +227,8 @@ def test_mkdir_kqldatabase_without_creation_payload_success( mock_questionary_print.reset_mock() eventhouse_full_path = ( - kqldatabase_full_path.removesuffix(".KQLDatabase") + "_auto.Eventhouse" + kqldatabase_full_path.removesuffix( + ".KQLDatabase") + "_auto.Eventhouse" ) get(eventhouse_full_path, query="id") eventhouse_id = mock_questionary_print.call_args[0][0] @@ -246,7 +253,8 @@ def test_mkdir_sqldatabase_with_creation_payload_success( upsert_item_to_cache, ): # Setup - sqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) + sqldatabase_display_name = generate_random_string( + vcr_instance, cassette_name) sqldatabase_full_path = cli_path_join( workspace.full_path, f"{sqldatabase_display_name}.{ItemType.SQL_DATABASE}" ) @@ -420,14 +428,16 @@ def test_mkdir_workspace_with_default_capacity_not_set_failure( self, cli_executor, assert_fabric_cli_error, vcr_instance, cassette_name ): # Setup - fab_default_capacity = state_config.get_config(constant.FAB_DEFAULT_CAPACITY) + fab_default_capacity = state_config.get_config( + constant.FAB_DEFAULT_CAPACITY) fab_default_capacity_id = state_config.get_config( constant.FAB_DEFAULT_CAPACITY_ID ) state_config.set_config(constant.FAB_DEFAULT_CAPACITY, "") state_config.set_config(constant.FAB_DEFAULT_CAPACITY_ID, "") - workspace_display_name = generate_random_string(vcr_instance, cassette_name) + workspace_display_name = generate_random_string( + vcr_instance, cassette_name) workspace_full_path = f"/{workspace_display_name}.Workspace" # Execute command @@ -440,7 +450,8 @@ def test_mkdir_workspace_with_default_capacity_not_set_failure( ) # Cleanup - state_config.set_config(constant.FAB_DEFAULT_CAPACITY, fab_default_capacity) + state_config.set_config( + constant.FAB_DEFAULT_CAPACITY, fab_default_capacity) state_config.set_config( constant.FAB_DEFAULT_CAPACITY_ID, fab_default_capacity_id ) @@ -520,11 +531,14 @@ def _mkdir_workspace_success( ): # Setup - workspace_display_name = generate_random_string(vcr_instance, cassette_name) + workspace_display_name = generate_random_string( + vcr_instance, cassette_name) workspace_full_path = f"/{workspace_display_name}.Workspace" - fab_capacity_name = state_config.get_config(constant.FAB_DEFAULT_CAPACITY) - fab_capacity_name_id = state_config.get_config(constant.FAB_DEFAULT_CAPACITY_ID) + fab_capacity_name = state_config.get_config( + constant.FAB_DEFAULT_CAPACITY) + fab_capacity_name_id = state_config.get_config( + constant.FAB_DEFAULT_CAPACITY_ID) # Execute command if capacity_name: @@ -550,8 +564,10 @@ def _mkdir_workspace_success( assert workspace_display_name in mock_questionary_print.call_args[0][0] # Cleanup - state_config.set_config(constant.FAB_DEFAULT_CAPACITY, fab_capacity_name) - state_config.set_config(constant.FAB_DEFAULT_CAPACITY_ID, fab_capacity_name_id) + state_config.set_config( + constant.FAB_DEFAULT_CAPACITY, fab_capacity_name) + state_config.set_config( + constant.FAB_DEFAULT_CAPACITY_ID, fab_capacity_name_id) rm(workspace_full_path) # endregion @@ -563,7 +579,8 @@ def test_mkdir_onelake_success( # Setup lakehouse = item_factory(ItemType.LAKEHOUSE) mock_print_done.reset_mock() - onelake_display_name = generate_random_string(vcr_instance, cassette_name) + onelake_display_name = generate_random_string( + vcr_instance, cassette_name) onelake_full_path = cli_path_join( lakehouse.full_path, "Files", f"{onelake_display_name}" ) @@ -657,7 +674,8 @@ def test_mkdir_sparkpool_with_params_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string( + vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -696,7 +714,8 @@ def test_mkdir_sparkpool_without_params_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string( + vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -733,7 +752,8 @@ def test_mkdir_sparkpool_with_params_without_maxNodeCount_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string( + vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -774,7 +794,8 @@ def test_mkdir_sparkpool_with_params_without_minNodeCount_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string( + vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -867,7 +888,8 @@ def test_mkdir_capacity_missing_resource_group_failure( fab_default_az_resource_group = state_config.get_config( constant.FAB_DEFAULT_AZ_RESOURCE_GROUP ) - state_config.set_config(constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") + state_config.set_config( + constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") state_config.set_config(constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "") capacity_display_name = "invalidcapacity" capacity_full_path = cli_path_join( @@ -901,8 +923,10 @@ def test_mkdir_capacity_missing_location_failure( fab_default_az_location = state_config.get_config( constant.FAB_DEFAULT_AZ_LOCATION ) - state_config.set_config(constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") - state_config.set_config(constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") + state_config.set_config( + constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") + state_config.set_config( + constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") state_config.set_config(constant.FAB_DEFAULT_AZ_LOCATION, "") capacity_display_name = "invalidcapacity" capacity_full_path = cli_path_join( @@ -939,10 +963,14 @@ def test_mkdir_capacity_missing_admin_failure( fab_default_az_location = state_config.get_config( constant.FAB_DEFAULT_AZ_LOCATION ) - fab_default_az_admin = state_config.get_config(constant.FAB_DEFAULT_AZ_ADMIN) - state_config.set_config(constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") - state_config.set_config(constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") - state_config.set_config(constant.FAB_DEFAULT_AZ_LOCATION, "placeholder") + fab_default_az_admin = state_config.get_config( + constant.FAB_DEFAULT_AZ_ADMIN) + state_config.set_config( + constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") + state_config.set_config( + constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") + state_config.set_config( + constant.FAB_DEFAULT_AZ_LOCATION, "placeholder") state_config.set_config(constant.FAB_DEFAULT_AZ_ADMIN, "") capacity_display_name = "invalidcapacity" capacity_full_path = cli_path_join( @@ -965,7 +993,8 @@ def test_mkdir_capacity_missing_admin_failure( state_config.set_config( constant.FAB_DEFAULT_AZ_LOCATION, fab_default_az_location ) - state_config.set_config(constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) + state_config.set_config( + constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) def test_mkdir_capacity_with_params_success( self, @@ -978,7 +1007,8 @@ def test_mkdir_capacity_with_params_success( test_data: StaticTestData, ): # Setup - capacity_display_name = generate_random_string(vcr_instance, cassette_name) + capacity_display_name = generate_random_string( + vcr_instance, cassette_name) capacity_full_path = cli_path_join( ".capacities", capacity_display_name + ".Capacity" ) @@ -1015,7 +1045,8 @@ def test_mkdir_capacity_success( test_data: StaticTestData, ): # Setup - capacity_display_name = generate_random_string(vcr_instance, cassette_name) + capacity_display_name = generate_random_string( + vcr_instance, cassette_name) capacity_full_path = cli_path_join( ".capacities", capacity_display_name + ".Capacity" ) @@ -1108,8 +1139,10 @@ def test_mkdir_domain_without_params_success( upsert_domain_to_cache, ): # Setup - domain_display_name = generate_random_string(vcr_instance, cassette_name) - domain_full_path = cli_path_join(".domains", domain_display_name + ".Domain") + domain_display_name = generate_random_string( + vcr_instance, cassette_name) + domain_full_path = cli_path_join( + ".domains", domain_display_name + ".Domain") # Execute command cli_executor.exec_command(f"mkdir {domain_full_path}") @@ -1137,13 +1170,16 @@ def test_mkdir_domain_with_params_success( upsert_domain_to_cache, ): # Setup - parent_domain = virtual_workspace_item_factory(VirtualWorkspaceType.DOMAIN) + parent_domain = virtual_workspace_item_factory( + VirtualWorkspaceType.DOMAIN) get(parent_domain.full_path, query="id") parent_domain_id = mock_questionary_print.call_args[0][0] mock_print_done.reset_mock() upsert_domain_to_cache.reset_mock() - domain_display_name = generate_random_string(vcr_instance, cassette_name) - domain_full_path = cli_path_join(".domains", domain_display_name + ".Domain") + domain_display_name = generate_random_string( + vcr_instance, cassette_name) + domain_full_path = cli_path_join( + ".domains", domain_display_name + ".Domain") # Execute command cli_executor.exec_command( @@ -1174,7 +1210,8 @@ def test_mkdir_domain_without_params_failure( ): domain_display_name = "domainNoParams" - domain_full_path = cli_path_join(".domains", domain_display_name + ".Domain") + domain_full_path = cli_path_join( + ".domains", domain_display_name + ".Domain") # with params=[] we simulate -P without args cli_executor.exec_command(f"mkdir {domain_full_path} -P") @@ -1365,7 +1402,8 @@ def test_mkdir_managed_private_endpoint_without_params_fail( ) # Execute command - cli_executor.exec_command(f"mkdir {managed_private_endpoint_full_path}") + cli_executor.exec_command( + f"mkdir {managed_private_endpoint_full_path}") # Assert assert_fabric_cli_error(constant.ERROR_INVALID_INPUT) @@ -1447,7 +1485,8 @@ def test_mkdir_external_data_share_with_params_success( eds_display_name = generate_random_string(vcr_instance, cassette_name) type = VirtualItemContainerType.EXTERNAL_DATA_SHARE eds_full_path = cli_path_join( - workspace.full_path, str(type), f"{eds_display_name}.{str(VICMap[type])}" + workspace.full_path, str( + type), f"{eds_display_name}.{str(VICMap[type])}" ) # Execute command @@ -1473,7 +1512,8 @@ def test_mkdir_external_data_share_with_params_success( generated_name = ".".join(parts[:2]) eds_full_path = cli_path_join( - workspace.full_path, str(type), f"{generated_name}.{str(VICMap[type])}" + workspace.full_path, str( + type), f"{generated_name}.{str(VICMap[type])}" ) # Cleanup @@ -1495,7 +1535,8 @@ def test_mkdir_external_data_share_without_params_fail( eds_display_name = generate_random_string(vcr_instance, cassette_name) type = VirtualItemContainerType.EXTERNAL_DATA_SHARE eds_full_path = cli_path_join( - workspace.full_path, str(type), f"{eds_display_name}.{str(VICMap[type])}" + workspace.full_path, str( + type), f"{eds_display_name}.{str(VICMap[type])}" ) # Execute command @@ -1520,7 +1561,8 @@ def test_mkdir_connection_with_params_success( cassette_name, ): # Setup - connection_display_name = generate_random_string(vcr_instance, cassette_name) + connection_display_name = generate_random_string( + vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1561,7 +1603,8 @@ def test_mkdir_connection_with_onpremises_gateway_params_success( cassette_name, ): # Setup - connection_display_name = generate_random_string(vcr_instance, cassette_name) + connection_display_name = generate_random_string( + vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1594,7 +1637,8 @@ def test_mkdir_connection_with_onpremises_gateway_params_ignore_params_success( cassette_name, ): # Setup - connection_display_name = generate_random_string(vcr_instance, cassette_name) + connection_display_name = generate_random_string( + vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1613,10 +1657,7 @@ def test_mkdir_connection_with_onpremises_gateway_params_ignore_params_success( mock_print_warning.assert_called() assert mock_print_warning.call_count == 1 - assert ( - f"Ignoring unsupported parameters for on-premises gateway: ['ignoreparameters']" - == mock_print_warning.call_args[0][0] - ) + assert f"Ignoring unsupported parameters for on-premises gateway: ['ignoreparameters']" == mock_print_warning.call_args[0][0] # Cleanup rm(connection_full_path) @@ -1630,7 +1671,8 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( cassette_name, ): # Setup - connection_display_name = generate_random_string(vcr_instance, cassette_name) + connection_display_name = generate_random_string( + vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1643,10 +1685,8 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert ( - mock_fab_ui_print_error.call_args[0][0].message - == "Missing parameters for credential type Basic: ['values']" - ) + assert mock_fab_ui_print_error.call_args[0][ + 0].message == "Missing parameters for credential type Basic: ['values']" assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" mock_fab_ui_print_error.reset_mock() @@ -1659,11 +1699,8 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][ - 0 - ].message == ErrorMessages.Common.missing_onpremises_gateway_parameters( - ["encryptedCredentials"] - ) + assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.missing_onpremises_gateway_parameters([ + 'encryptedCredentials']) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" mock_fab_ui_print_error.reset_mock() @@ -1676,11 +1713,8 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][ - 0 - ].message == ErrorMessages.Common.missing_onpremises_gateway_parameters( - ["gatewayId"] - ) + assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.missing_onpremises_gateway_parameters([ + 'gatewayId']) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" mock_fab_ui_print_error.reset_mock() @@ -1693,9 +1727,7 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert ( - mock_fab_ui_print_error.call_args[0][0].message - == ErrorMessages.Common.invalid_onpremises_gateway_values() + assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.invalid_onpremises_gateway_values( ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" @@ -1709,9 +1741,7 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert ( - mock_fab_ui_print_error.call_args[0][0].message - == ErrorMessages.Common.invalid_onpremises_gateway_values() + assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.invalid_onpremises_gateway_values( ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" @@ -1725,7 +1755,8 @@ def test_mkdir_connection_with_gateway_params_success( cassette_name, ): # Setup - gateway_display_name = generate_random_string(vcr_instance, cassette_name) + gateway_display_name = generate_random_string( + vcr_instance, cassette_name) gateway_full_path = cli_path_join( ".gateways", gateway_display_name + ".Gateway" ) @@ -1735,7 +1766,8 @@ def test_mkdir_connection_with_gateway_params_success( f"capacity={test_data.capacity.name},virtualNetworkName={test_data.vnet.name},subnetName={test_data.vnet.subnet}" ], ) - connection_display_name = generate_random_string(vcr_instance, cassette_name) + connection_display_name = generate_random_string( + vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1795,7 +1827,8 @@ def test_mkdir_connection_case_sensitivity_scenario_success( cassette_name, test_data: StaticTestData, ): - connection_display_name = generate_random_string(vcr_instance, cassette_name) + connection_display_name = generate_random_string( + vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1822,7 +1855,8 @@ def test_mkdir_connection_case_insensitive_parameter_matching_success( test_data: StaticTestData, ): """Test that parameter name matching is case-insensitive for creation method inference.""" - connection_display_name = generate_random_string(vcr_instance, cassette_name) + connection_display_name = generate_random_string( + vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1869,7 +1903,8 @@ def test_mkdir_connection_parameter_name_none_safety_success( test_data: StaticTestData, ): """Test that parameter name None safety doesn't break normal operation.""" - connection_display_name = generate_random_string(vcr_instance, cassette_name) + connection_display_name = generate_random_string( + vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1899,7 +1934,8 @@ def test_mkdir_gateway_with_params_success( cassette_name, ): # Setup - gateway_display_name = generate_random_string(vcr_instance, cassette_name) + gateway_display_name = generate_random_string( + vcr_instance, cassette_name) gateway_full_path = cli_path_join( ".gateways", gateway_display_name + ".Gateway" ) @@ -1990,7 +2026,8 @@ def test_mkdir_workspace_verify_stderr_stdout_messages_text_format_success( cassette_name, test_data: StaticTestData, ): - workspace_display_name = generate_random_string(vcr_instance, cassette_name) + workspace_display_name = generate_random_string( + vcr_instance, cassette_name) captured, workspace_full_path = self._verify_mkdir_workspace_output( cli_executor, workspace_display_name, @@ -2016,7 +2053,8 @@ def test_mkdir_workspace_verify_stderr_stdout_messages_json_format_success( ): # Set output format to json mock_fab_set_state_config(constant.FAB_OUTPUT_FORMAT, "json") - workspace_display_name = generate_random_string(vcr_instance, cassette_name) + workspace_display_name = generate_random_string( + vcr_instance, cassette_name) captured, workspace_full_path = self._verify_mkdir_workspace_output( cli_executor, workspace_display_name, @@ -2042,14 +2080,7 @@ def test_mkdir_workspace_verify_stderr_stdout_messages_json_format_success( # region Folders def test_mkdir_item_in_folder_listing_success( - self, - workspace, - cli_executor, - mock_print_done, - mock_questionary_print, - mock_fab_set_state_config, - vcr_instance, - cassette_name, + self, workspace, cli_executor, mock_print_done, mock_questionary_print, mock_fab_set_state_config, vcr_instance, cassette_name ): # Enable folder listing mock_fab_set_state_config(constant.FAB_FOLDER_LISTING_ENABLED, "true") @@ -2064,9 +2095,7 @@ def test_mkdir_item_in_folder_listing_success( mock_print_done.reset_mock() # Create notebook in folder - notebook_name = ( - f"{generate_random_string(vcr_instance, cassette_name)}.Notebook" - ) + notebook_name = f"{generate_random_string(vcr_instance, cassette_name)}.Notebook" notebook_full_path = cli_path_join(folder_full_path, notebook_name) cli_executor.exec_command(f"mkdir {notebook_full_path}") @@ -2082,7 +2111,8 @@ def test_mkdir_item_in_folder_listing_success( def test_mkdir_folder_success(self, workspace, cli_executor, mock_print_done): # Setup folder_display_name = "folder" - folder_full_path = cli_path_join(workspace.full_path, folder_display_name) + folder_full_path = cli_path_join( + workspace.full_path, folder_display_name) # Execute command cli_executor.exec_command(f"mkdir {folder_full_path}") @@ -2142,7 +2172,8 @@ def test_mkdir_single_item_creation_batch_output_structure_success( ): """Test that single item creation uses batched output structure.""" # Setup - lakehouse_display_name = generate_random_string(vcr_instance, cassette_name) + lakehouse_display_name = generate_random_string( + vcr_instance, cassette_name) lakehouse_full_path = cli_path_join( workspace.full_path, f"{lakehouse_display_name}.{ItemType.LAKEHOUSE}" ) @@ -2158,7 +2189,8 @@ def test_mkdir_single_item_creation_batch_output_structure_success( # Verify headers and values in mock_questionary_print.mock_calls # Look for the table output with headers - output_calls = [str(call) for call in mock_questionary_print.mock_calls] + output_calls = [str(call) + for call in mock_questionary_print.mock_calls] table_output = "\n".join(output_calls) # Check for standard table headers @@ -2185,7 +2217,8 @@ def test_mkdir_dependency_creation_batched_output_kql_database_success( ): """Test that KQL Database creation with EventHouse dependency produces batched output.""" # Setup - kqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) + kqldatabase_display_name = generate_random_string( + vcr_instance, cassette_name) kqldatabase_full_path = cli_path_join( workspace.full_path, f"{kqldatabase_display_name}.{ItemType.KQL_DATABASE}" ) @@ -2206,7 +2239,8 @@ def test_mkdir_dependency_creation_batched_output_kql_database_success( ) # Verify headers and values in mock_questionary_print.mock_calls for batched output - output_calls = [str(call) for call in mock_questionary_print.mock_calls] + output_calls = [str(call) + for call in mock_questionary_print.mock_calls] table_output = "\n".join(output_calls) # Check for standard table headers (should appear once for consolidated table) @@ -2225,7 +2259,8 @@ def test_mkdir_dependency_creation_batched_output_kql_database_success( # Cleanup - removing parent eventhouse removes the kqldatabase as well eventhouse_full_path = ( - kqldatabase_full_path.removesuffix(".KQLDatabase") + "_auto.Eventhouse" + kqldatabase_full_path.removesuffix( + ".KQLDatabase") + "_auto.Eventhouse" ) rm(eventhouse_full_path) @@ -2305,7 +2340,8 @@ def test_mkdir_digitaltwinbuilderflow_without_creation_payload_success( mock_questionary_print.reset_mock() digital_twin_builder_full_path = ( - flow_full_path.removesuffix(f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + flow_full_path.removesuffix( + f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + f"_auto.{ItemType.DIGITAL_TWIN_BUILDER}" ) get(digital_twin_builder_full_path, query="id") @@ -2353,7 +2389,8 @@ def test_mkdir_dependency_creation_batched_output_digitaltwinbuilderflow_success ) # Verify headers and values in table output - output_calls = [str(call) for call in mock_questionary_print.mock_calls] + output_calls = [str(call) + for call in mock_questionary_print.mock_calls] table_output = "\n".join(output_calls) assert "id" in table_output or "ID" in table_output @@ -2374,7 +2411,8 @@ def test_mkdir_dependency_creation_batched_output_digitaltwinbuilderflow_success # Cleanup - removing parent DigitalTwinBuilder removes the flow as well digital_twin_builder_full_path = ( - flow_full_path.removesuffix(f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + flow_full_path.removesuffix( + f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + f"_auto.{ItemType.DIGITAL_TWIN_BUILDER}" ) rm(digital_twin_builder_full_path) diff --git a/tests/test_utils/test_fab_cmd_mkdir_utils.py b/tests/test_utils/test_fab_cmd_mkdir_utils.py index abd0d564d..95a06174f 100644 --- a/tests/test_utils/test_fab_cmd_mkdir_utils.py +++ b/tests/test_utils/test_fab_cmd_mkdir_utils.py @@ -324,6 +324,36 @@ def test_build_sql_database_creation_payload_collation_only_success(self): "collation": "some_collation_value", }, ), + ( + { + "mode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE, + "restorepointintime": "2024-01-15T10:30:00Z", + "itemid": "11111111-1111-1111-1111-111111111111", + "workspaceid": "22222222-2222-2222-2222-222222222222", + "referencetype": "ByName", + }, + { + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE, + "restorePointInTime": "2024-01-15T10:30:00Z", + "sourceDatabaseReference": { + "itemId": "11111111-1111-1111-1111-111111111111", + "referenceType": "ByName", + "workspaceId": "22222222-2222-2222-2222-222222222222", + }, + }, + ), + ( + { + "mode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, + "restorabledeleteddatabasename": "my-deleted-db", + "restorepointintime": "2024-01-15T10:30:00Z", + }, + { + "creationMode": fab_constant.SQL_DATABASE_CREATION_MODE_RESTORE_DELETED, + "restorableDeletedDatabaseName": "my-deleted-db", + "restorePointInTime": "2024-01-15T10:30:00Z", + }, + ), ], ) def test_build_sql_database_creation_payload_all_properties_success( @@ -334,11 +364,85 @@ def test_build_sql_database_creation_payload_all_properties_success( assert result == expected + def test_build_sql_database_creation_payload_restore_success(self): + """Test SQLDatabase creation in Restore mode builds the correct payload.""" + params = { + "mode": "Restore", + "restorepointintime": "2024-01-15T10:30:00Z", + "itemid": "11111111-1111-1111-1111-111111111111", + "workspaceid": "22222222-2222-2222-2222-222222222222", + } + + result = _build_sql_database_creation_payload_if_exists(params) + + assert result == { + "creationMode": "Restore", + "restorePointInTime": "2024-01-15T10:30:00Z", + "sourceDatabaseReference": { + "itemId": "11111111-1111-1111-1111-111111111111", + "referenceType": "ById", + "workspaceId": "22222222-2222-2222-2222-222222222222", + }, + } + + @pytest.mark.parametrize( + "params", + [ + { + "mode": "Restore", + "itemid": "11111111-1111-1111-1111-111111111111", + "workspaceid": "22222222-2222-2222-2222-222222222222", + }, + { + "mode": "Restore", + "restorepointintime": "2024-01-15T10:30:00Z", + "workspaceid": "22222222-2222-2222-2222-222222222222", + }, + { + "mode": "Restore", + "restorepointintime": "2024-01-15T10:30:00Z", + "itemid": "11111111-1111-1111-1111-111111111111", + }, + ], + ) + def test_build_sql_database_creation_payload_restore_missing_params_failure( + self, params + ): + """Test that Restore mode raises when required params are missing.""" + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload_if_exists(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + + @pytest.mark.parametrize( + "params", + [ + { + "mode": "RestoreDeletedDatabase", + "restorepointintime": "2024-01-15T10:30:00Z", + }, + { + "mode": "RestoreDeletedDatabase", + "restorabledeleteddatabasename": "my-deleted-db", + }, + ], + ) + def test_build_sql_database_creation_payload_restore_deleted_missing_params_failure( + self, params + ): + """Test that RestoreDeletedDatabase mode raises when required params are missing.""" + with pytest.raises(FabricCLIError) as exc_info: + _build_sql_database_creation_payload_if_exists(params) + + assert exc_info.value.status_code == fab_constant.ERROR_INVALID_INPUT + @pytest.mark.parametrize( "mode", [ "foo", + "Restored", "", + "restore-deleted", ], ) def test_build_sql_database_creation_payload_unsupported_mode_failure(self, mode): From d97161b49953afa2e3e51136f9685a125c16ea0f Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Wed, 1 Jul 2026 09:04:43 +0000 Subject: [PATCH 15/22] Support creationMode Resotre and RestoreDeletedDatabase --- .../test_commands/test_mkdir/class_setup.yaml | 46 +- ...deleted_with_creation_payload_success.yaml | 4339 +++++++++++++++++ tests/test_commands/test_mkdir.py | 339 +- 3 files changed, 4567 insertions(+), 157 deletions(-) create mode 100644 tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml index 3be8f3e04..a1b10148c 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml @@ -26,15 +26,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3308' + - '3467' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:51:24 GMT + - Wed, 01 Jul 2026 08:35:55 GMT Pragma: - no-cache RequestId: - - dcb781a7-ea8e-4df6-b26a-4fc0c238bcca + - f68bb4cf-9824-43c9-9deb-e0d0506b6e17 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -75,15 +75,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3308' + - '3467' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:51:25 GMT + - Wed, 01 Jul 2026 08:35:57 GMT Pragma: - no-cache RequestId: - - 4471d79f-56e0-4cad-850e-44fb8c145dac + - c48a8c61-1145-44d5-9fb6-537744dbf684 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -125,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '466' + - '467' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:51:28 GMT + - Wed, 01 Jul 2026 08:36:02 GMT Pragma: - no-cache RequestId: - - 3101b40a-9b31-4436-bce0-154c8cb8ac9b + - a49e3dc9-4984-41a3-beb7-96c431985c67 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -167,7 +167,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}' headers: @@ -182,13 +182,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:51:36 GMT + - Wed, 01 Jul 2026 08:36:07 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38 + - https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe Pragma: - no-cache RequestId: - - cf5695eb-8016-4321-ae09-e9bd7dee0d30 + - 53c14794-6a4a-411c-8a1b-e93d0ee3f00e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -220,7 +220,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", + "My workspace", "description": "", "type": "Personal"}, {"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -232,15 +232,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3343' + - '3499' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:54 GMT + - Wed, 01 Jul 2026 09:01:18 GMT Pragma: - no-cache RequestId: - - 4f188b92-29d3-4c3b-8cac-ae64c33e4469 + - c3f5c508-a4fd-4a92-912b-36a060c48ea8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -268,7 +268,7 @@ interactions: User-Agent: - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items response: body: string: '{"value": []}' @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:55 GMT + - Wed, 01 Jul 2026 09:01:18 GMT Pragma: - no-cache RequestId: - - 9cfc10a6-0a91-49f8-8d5d-37a7392f5a86 + - 105a696c-3e1e-4cee-bccf-ff6e2f7c023b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -318,7 +318,7 @@ interactions: User-Agent: - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38 + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe response: body: string: '' @@ -334,11 +334,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Sun, 28 Jun 2026 16:52:56 GMT + - Wed, 01 Jul 2026 09:01:19 GMT Pragma: - no-cache RequestId: - - cbea1108-8d54-4423-ba81-4f3f5906661d + - b0596e0f-2b76-4964-bcef-d7396dfd1a14 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml new file mode 100644 index 000000000..88e1aa1c2 --- /dev/null +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml @@ -0,0 +1,4339 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:36:09 GMT + Pragma: + - no-cache + RequestId: + - b35f1e03-7333-42e5-9d45-a74881c102f0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:36:09 GMT + Pragma: + - no-cache + RequestId: + - f83d00da-0bb6-4935-a8c6-f2fc4f14c3ab + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:36:10 GMT + Pragma: + - no-cache + RequestId: + - 3c44c1e7-11eb-4daf-94ea-4fc9088d663e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000001", "type": "SQLDatabase", "folderId": null, + "creationPayload": {"creationMode": "New"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '120' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:36:13 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5049fdc6-a68e-469f-973c-061971466fa5 + Pragma: + - no-cache + RequestId: + - a1299a84-f0a6-4783-97d9-c470a62c82c4 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 5049fdc6-a68e-469f-973c-061971466fa5 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5049fdc6-a68e-469f-973c-061971466fa5 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:36:11.8642532", + "lastUpdatedTimeUtc": "2026-07-01T08:36:28.9974469", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:36:34 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5049fdc6-a68e-469f-973c-061971466fa5/result + Pragma: + - no-cache + RequestId: + - 7fa6702c-7d37-4bfb-8311-ef9df3599b8f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 5049fdc6-a68e-469f-973c-061971466fa5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5049fdc6-a68e-469f-973c-061971466fa5/result + response: + body: + string: '{"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 01 Jul 2026 08:36:35 GMT + Pragma: + - no-cache + RequestId: + - 13a647ed-1e66-4a4c-b376-aa4698576d76 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:41:54 GMT + Pragma: + - no-cache + RequestId: + - 882ebf2e-97f7-41ec-ae70-6a475512af02 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:41:55 GMT + Pragma: + - no-cache + RequestId: + - e788850e-34d1-4ae0-8d3b-6605cd96097c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases/35de8b81-7021-46df-8005-99dc692d4512 + response: + body: + string: '{"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000001-35de8b81-7021-46df-8005-99dc692d4512;Multiple Active + Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", + "connectionString": "mock_connection_string", "databaseName": "fabcli000001-35de8b81-7021-46df-8005-99dc692d4512", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433", + "earliestRestorePoint": "2026-07-01T08:40:48Z", "latestRestorePoint": "2026-07-01T08:40:48Z", + "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '471' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:41:57 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 1e5dffa0-ecc4-46ba-9bf4-9812c824643e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/35de8b81-7021-46df-8005-99dc692d4512/getDefinition + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:41:57 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + Pragma: + - no-cache + RequestId: + - 2b5dec96-abf5-417a-ae27-95083a65cfd1 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 207f7dbf-7941-4f94-8ef2-82b0ef62e77d + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:41:57.8529623", + "lastUpdatedTimeUtc": "2026-07-01T08:41:57.8529623", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:42:18 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + Pragma: + - no-cache + RequestId: + - c15c6deb-73ce-40d6-83fd-3275bad2c704 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 207f7dbf-7941-4f94-8ef2-82b0ef62e77d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:41:57.8529623", + "lastUpdatedTimeUtc": "2026-07-01T08:41:57.8529623", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:42:40 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + Pragma: + - no-cache + RequestId: + - a5f39010-b396-4b4f-a8aa-bf870d3b36d3 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 207f7dbf-7941-4f94-8ef2-82b0ef62e77d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:41:57.8529623", + "lastUpdatedTimeUtc": "2026-07-01T08:42:46.7472053", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '134' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:43:01 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d/result + Pragma: + - no-cache + RequestId: + - 0ae56914-07d9-4e03-a2d7-404e572773d2 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 207f7dbf-7941-4f94-8ef2-82b0ef62e77d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d/result + response: + body: + string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000001.dacpac", + "payload": "UEsDBBQAAAAIAFJF4VzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDhKWk2Wi3tw5Di0ChmWHPpNcHrtF16CcK3XHnxuTffF+vGLWXVc0kMvP1E5UqGoSfQuJHqBhw9rIi9VuNZstvtFyaw1lwjUCN2MezICy0kZlt1QnB4EyqZce9IvnbgnO9qqeqIRpIbU05hPq98wi8oJNYFdSlX3L6Nek7IveFNJjepCgMmzIazNtae2X/IRnKLKd5TBhnZmlNcEBzv24j2jxvnKj5gFNU5EfiiJc5UZBDSkccELe2tE+VJm3aoPJoqTkkG/U92EDOWAL8H5C9BRUJ4CNQpt7orxL8+yAsKvJcodZDpjVFrYs5CtpSwlD3lJKqplp7+KSx0ZTCLH0EMvGEo94a3tbxmjPwa0cHq2yXxD2OGdmmhm4SeZfbUFTupmjmqMyy2v46itUPiO4H4wEdieb4OwpUwMfhqDkOb8ZX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GFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 01 Jul 2026 08:43:02 GMT + Pragma: + - no-cache + RequestId: + - a7edad8b-3cc8-4c34-a2c3-eb0e90a89cf1 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/35de8b81-7021-46df-8005-99dc692d4512/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:43:03 GMT + Pragma: + - no-cache + RequestId: + - 3fd9f908-b659-4c04-92da-1d868aa21a2d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:43:04 GMT + Pragma: + - no-cache + RequestId: + - a04b77b1-85f8-4b9b-ac63-7f5443ae4bff + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:43:05 GMT + Pragma: + - no-cache + RequestId: + - 529ae1a9-2ce2-4f1c-91b0-024cc52f943e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:43:06 GMT + Pragma: + - no-cache + RequestId: + - 3bc4d85d-0841-498b-ad26-029e9cdc1e1c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000002", "type": "SQLDatabase", "folderId": null, + "creationPayload": {"creationMode": "Restore", "restorePointInTime": "2026-07-01T08:40:48Z", + "sourceDatabaseReference": {"itemId": "35de8b81-7021-46df-8005-99dc692d4512", + "referenceType": "ById", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '329' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:43:07 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 23f0029b-024c-44bc-b84a-5108c7a8b6b4 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:43:29 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 45372df6-6633-4280-ae6b-473ee7aaa159 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:43:50 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - f884ed36-524c-4573-9c30-a4c083a1ee87 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:44:11 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 0ba6817a-2738-47a6-8208-3407d055fc47 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:44:32 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - d9eb7349-38c4-4a94-b746-a703991a894f + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:44:54 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 80746861-c59f-4163-871c-eaa576782501 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:45:16 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 358144a7-b699-40d6-b965-3bcaf800e87b + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:45:37 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 40eed110-1c6a-45bb-9acc-316c9bb05954 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:45:59 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - d698fbe6-9c16-401d-a218-fc0e2648130c + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:46:20 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 6c10cf50-d726-4e23-bd30-c18319ae90fd + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:46:41 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 34387c64-4f1a-405b-8205-5f86fbf157f2 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:47:03 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 5aa61179-a343-4a78-b871-8b845b80ffe4 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:47:24 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 02dbef25-4123-4d09-9b4f-f21dd86ebdca + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:47:46 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - cd24a837-4a26-4d0e-9280-d08d516e5398 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:48:07 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 420bd32f-c094-427f-be2e-24b4d077ef09 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:48:29 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + Pragma: + - no-cache + RequestId: + - 12afa602-5efa-4218-a0ea-3d3ea652425e + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:43:06.8842031", + "lastUpdatedTimeUtc": "2026-07-01T08:48:46.2707374", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:48:50 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45/result + Pragma: + - no-cache + RequestId: + - cc931811-bdbb-404d-a25c-f3bd36f936e9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 947dd0c3-7c84-4771-8c71-6bd660675d45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45/result + response: + body: + string: '{"id": "85a4300b-d48f-404f-8c83-0c94eba25f9e", "type": "SQLDatabase", + "displayName": "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 01 Jul 2026 08:48:51 GMT + Pragma: + - no-cache + RequestId: + - c1296cff-72f7-49a2-aaec-23405e8e0d1b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:48:52 GMT + Pragma: + - no-cache + RequestId: + - 14a9c5a0-2d0f-4198-b207-9c8ca6fd7c92 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "cb3d8f5c-fb77-49a6-b145-195790a0e09b", "type": "SQLEndpoint", "displayName": + "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "85a4300b-d48f-404f-8c83-0c94eba25f9e", "type": "SQLDatabase", "displayName": + "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '277' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:48:53 GMT + Pragma: + - no-cache + RequestId: + - 9fa241db-d1c9-49a0-9b05-6c65405e0de0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases/85a4300b-d48f-404f-8c83-0c94eba25f9e + response: + body: + string: '{"id": "85a4300b-d48f-404f-8c83-0c94eba25f9e", "type": "SQLDatabase", + "displayName": "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000002-85a4300b-d48f-404f-8c83-0c94eba25f9e;Multiple Active + Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", + "connectionString": "mock_connection_string", "databaseName": "fabcli000002-85a4300b-d48f-404f-8c83-0c94eba25f9e", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433", + "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '430' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:48:54 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - ebb9be72-33de-4625-af63-dd5d4a910c6b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/85a4300b-d48f-404f-8c83-0c94eba25f9e/getDefinition + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:48:55 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + Pragma: + - no-cache + RequestId: + - fa3f217f-1653-4b1f-8914-6da76afc71a8 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - fb52f94b-4819-4344-a85c-37327177717e + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:48:55.2583921", + "lastUpdatedTimeUtc": "2026-07-01T08:48:55.2583921", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '124' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:49:15 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + Pragma: + - no-cache + RequestId: + - 23c34ef7-8a53-401a-a14c-82a9cad6561d + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - fb52f94b-4819-4344-a85c-37327177717e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:48:55.2583921", + "lastUpdatedTimeUtc": "2026-07-01T08:48:55.2583921", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '124' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:49:38 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + Pragma: + - no-cache + RequestId: + - a2f337ec-eda9-433d-8c38-8d9de5bfce88 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - fb52f94b-4819-4344-a85c-37327177717e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:48:55.2583921", + "lastUpdatedTimeUtc": "2026-07-01T08:49:54.3918114", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '133' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:49:58 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e/result + Pragma: + - no-cache + RequestId: + - 021519c7-4c64-41db-85bf-17354bf80c6c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - fb52f94b-4819-4344-a85c-37327177717e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e/result + response: + body: + string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000002.dacpac", + "payload": "UEsDBBQAAAAIADhG4VzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDhKWk2Wi3tw5Di0ChmWHPpNcHrtF16CcK3XHnxuTffF+vGLWXVc0kMvP1E5UqGoSfQuJHqBhw9rIi9VuNZstvtFyaw1lwjUCN2MezICy0kZlt1QnB4EyqZce9IvnbgnO9qqeqIRpIbU05hPq98wi8oJNYFdSlX3L6Nek7IveFNJjepCgMmzIazNtae2X/IRnKLKd5TBhnZmlNcEBzv24j2jxvnKj5gFNU5EfiiJc5UZBDSkccELe2tE+VJm3aoPJoqTkkG/U92EDOWAL8H5C9BRUJ4CNQpt7orxL8+yAsKvJcodZDpjVFrYs5CtpSwlD3lJKqplp7+KSx0ZTCLH0EMvGEo94a3tbxmjPwa0cHq2yXxD2OGdmmhm4SeZfbUFTupmjmqMyy2v46itUPiO4H4wEdieb4OwpUwMfhqDkOb8ZXUT2fHZobvYlJF6dQcHMn3vTuO0B9GuQHKEGbOAWl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F5TmFtZSI6ICJmYWJjbGkwMDAwMDIiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 01 Jul 2026 08:49:59 GMT + Pragma: + - no-cache + RequestId: + - 14203d4a-1ca9-4547-90c7-d1cae1b4d9fe + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/85a4300b-d48f-404f-8c83-0c94eba25f9e/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:50:00 GMT + Pragma: + - no-cache + RequestId: + - ef882ded-e04b-4d17-9340-219868e70cdb + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:50:01 GMT + Pragma: + - no-cache + RequestId: + - 8604f582-3299-4b2d-a132-6deb7559f692 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "cb3d8f5c-fb77-49a6-b145-195790a0e09b", "type": "SQLEndpoint", "displayName": + "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "85a4300b-d48f-404f-8c83-0c94eba25f9e", "type": "SQLDatabase", "displayName": + "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '277' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:50:02 GMT + Pragma: + - no-cache + RequestId: + - f1c955e1-9faa-4e9e-be6b-6c61fabce118 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/85a4300b-d48f-404f-8c83-0c94eba25f9e + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 01 Jul 2026 08:50:03 GMT + Pragma: + - no-cache + RequestId: + - 6b47198f-e29b-438b-85dd-0ad5356200f5 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:50:04 GMT + Pragma: + - no-cache + RequestId: + - 5a627020-7019-40d5-b23b-3d12b0ac1482 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '214' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:50:03 GMT + Pragma: + - no-cache + RequestId: + - 39068b65-7f56-45c2-901f-1a978d095e0a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/35de8b81-7021-46df-8005-99dc692d4512 + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 01 Jul 2026 08:50:05 GMT + Pragma: + - no-cache + RequestId: + - bff6f284-cab6-41eb-b0e8-4d235982316f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases/restorableDeletedDatabases + response: + body: + string: '{"value": [{"displayName": "fabcli000001-35de8b81-7021-46df-8005-99dc692d4512", + "properties": {"restorableDeletedDatabaseName": "fabcli000001-35de8b81-7021-46df-8005-99dc692d4512,134273694076170000", + "earliestRestorePoint": "2026-07-01T08:40:48.0000000Z", "latestRestorePoint": + "2026-07-01T08:50:07.6170000Z", "deletionTimestamp": "2026-07-01T08:50:07.6170000Z"}}, + {"displayName": "fabcli000002-85a4300b-d48f-404f-8c83-0c94eba25f9e", "properties": + {"restorableDeletedDatabaseName": "fabcli000002-85a4300b-d48f-404f-8c83-0c94eba25f9e,134273694057800000", + "earliestRestorePoint": "2026-07-01T08:50:05.7800000Z", "latestRestorePoint": + "2026-07-01T08:50:05.7800000Z", "deletionTimestamp": "2026-07-01T08:50:05.7800000Z"}}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Content-Length: + - '713' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:53:20 GMT + RequestId: + - 097f64a4-d800-4274-ad34-9125d8b4f025 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:54:31 GMT + Pragma: + - no-cache + RequestId: + - 908ae6aa-eddc-44a5-856d-1ce4ebca2a7b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:54:31 GMT + Pragma: + - no-cache + RequestId: + - d1da16c4-3447-436a-977c-2c58c7708e81 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:54:32 GMT + Pragma: + - no-cache + RequestId: + - 8c596d3a-8f17-4e80-85f9-99fc22c82d79 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "fabcli000003", "type": "SQLDatabase", "folderId": null, + "creationPayload": {"creationMode": "RestoreDeletedDatabase", "restorableDeletedDatabaseName": + "fabcli000001-35de8b81-7021-46df-8005-99dc692d4512,134273694076170000", "restorePointInTime": + "2026-07-01T08:40:48Z"}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '294' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,ETag,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:54:35 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - bf7c1ba8-dfcd-4cb3-8e61-255b12fdc9e9 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:54:55 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - b688e77d-fe82-4c1b-97be-2f92928daa9b + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:55:17 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - 52bb9324-4aa8-4ddf-aa1c-6ac83017d312 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:55:39 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - fad83e3d-d4ab-4cd0-a67f-2c6ecfed3fbe + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:56:00 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - f2c62abb-a611-445b-af10-b33df62f467c + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:56:22 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - 119669b0-874d-47bf-9914-1c5ca928d118 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:56:43 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - 6e46549b-2d5f-4bb5-b232-b147217cbb08 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:57:05 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - 7a565fae-00df-41a9-9ee9-2f3f8c98751f + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:57:27 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - 2f3099b2-bdc5-482d-b6b2-2f40c59ba916 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:57:48 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - a2086fe8-011c-4bc5-8ccc-8375df20f54d + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:58:09 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - d7a315c9-d581-4b88-a9ed-a020f91cbf4e + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:58:31 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - 6a7c6f21-5a2a-4f8c-a097-94c729c27011 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:58:52 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - f1157605-8059-4a6a-b8c9-c154217d479e + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:59:14 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - 1d21f7ce-7bf6-4ff5-b9bb-a70f44911f7d + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:59:36 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - c50698f5-bc68-4f6f-9635-cec39bed00c9 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 08:59:57 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + Pragma: + - no-cache + RequestId: + - 118f460c-4568-47e0-b08c-29e118e76bd4 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:54:33.7722069", + "lastUpdatedTimeUtc": "2026-07-01T09:00:00.6252576", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '134' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:00:18 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7/result + Pragma: + - no-cache + RequestId: + - 92734799-6a43-46e6-96cf-13488a95909c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - a8731715-45c1-4d86-b9dd-e0c19120dda7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7/result + response: + body: + string: '{"id": "7e2a9ba3-20d3-4328-82eb-704e84ef973e", "type": "SQLDatabase", + "displayName": "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 01 Jul 2026 09:00:19 GMT + Pragma: + - no-cache + RequestId: + - d535cf3a-d40c-4a0c-aa91-cb2397af56ac + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:00:25 GMT + Pragma: + - no-cache + RequestId: + - 2ac0a3eb-aca6-4922-80b3-80f24c3c930a + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": [{"id": "6026eded-9875-4e66-aaff-8f7c0142adad", "type": "SQLEndpoint", + "displayName": "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "7e2a9ba3-20d3-4328-82eb-704e84ef973e", "type": "SQLDatabase", "displayName": + "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '213' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:00:26 GMT + Pragma: + - no-cache + RequestId: + - 0cf36dc7-0f4c-451d-8200-231845d94dc9 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases/7e2a9ba3-20d3-4328-82eb-704e84ef973e + response: + body: + string: '{"id": "7e2a9ba3-20d3-4328-82eb-704e84ef973e", "type": "SQLDatabase", + "displayName": "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000003-7e2a9ba3-20d3-4328-82eb-704e84ef973e;Multiple Active + Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", + "connectionString": "mock_connection_string", "databaseName": "fabcli000003-7e2a9ba3-20d3-4328-82eb-704e84ef973e", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433", + "earliestRestorePoint": "2026-07-01T08:59:10Z", "latestRestorePoint": "2026-07-01T08:59:10Z", + "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '468' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:00:28 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - 68ec8c8d-133e-40b7-993f-3485ca5ad56f + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/7e2a9ba3-20d3-4328-82eb-704e84ef973e/getDefinition + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:00:28 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23 + Pragma: + - no-cache + RequestId: + - f5e8f63a-c581-4f61-bbc5-b80637207f49 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - 2630456d-1a94-46f3-989e-eb36ddb5ed23 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T09:00:28.8798549", + "lastUpdatedTimeUtc": "2026-07-01T09:00:28.8798549", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:00:49 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23 + Pragma: + - no-cache + RequestId: + - d82400ba-0aa1-4a9f-be9e-2c69b11ff7b1 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 2630456d-1a94-46f3-989e-eb36ddb5ed23 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T09:00:28.8798549", + "lastUpdatedTimeUtc": "2026-07-01T09:00:57.8389345", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '132' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:01:11 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23/result + Pragma: + - no-cache + RequestId: + - 48abadd9-6f28-46e0-b81c-54d212063153 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 2630456d-1a94-46f3-989e-eb36ddb5ed23 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23/result + response: + body: + string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000003.dacpac", + "payload": "UEsDBBQAAAAIABtI4VzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDh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NNZXRhZGF0YS54bWxQSwECFAAUAAAACAAbSOFcrjl4cC0CAABdBAAACgAAAAAAAAAAAAAAAACiAwAAT3JpZ2luLnhtbFBLAQIUABQAAAAIABtI4VztodPgjwAAAK8AAAATAAAAAAAAAAAAAAAAAPcFAABbQ29udGVudF9UeXBlc10ueG1sUEsFBgAAAAAEAAQA7QAAALcGAAAAAA==", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNRTERhdGFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDMiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 01 Jul 2026 09:01:12 GMT + Pragma: + - no-cache + RequestId: + - f87037af-b55f-42c5-b971-e9fe07e11a13 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/7e2a9ba3-20d3-4328-82eb-704e84ef973e/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:01:13 GMT + Pragma: + - no-cache + RequestId: + - 0db9c450-821d-4123-95cd-d2528fb38d2c + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3499' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:01:16 GMT + Pragma: + - no-cache + RequestId: + - 0eb0aa3f-dac4-4e5d-bcde-1eb7f3c0a298 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + response: + body: + string: '{"value": [{"id": "6026eded-9875-4e66-aaff-8f7c0142adad", "type": "SQLEndpoint", + "displayName": "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, + {"id": "7e2a9ba3-20d3-4328-82eb-704e84ef973e", "type": "SQLDatabase", "displayName": + "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '213' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 09:01:16 GMT + Pragma: + - no-cache + RequestId: + - ff3d04e1-7327-40ce-bd1e-1f8a57a21486 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/7e2a9ba3-20d3-4328-82eb-704e84ef973e + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 01 Jul 2026 09:01:17 GMT + Pragma: + - no-cache + RequestId: + - cd5971ae-9d84-4312-a1b6-16679def6fbd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +version: 1 diff --git a/tests/test_commands/test_mkdir.py b/tests/test_commands/test_mkdir.py index 0c859ae54..de92c1b77 100644 --- a/tests/test_commands/test_mkdir.py +++ b/tests/test_commands/test_mkdir.py @@ -100,9 +100,7 @@ def test_mkdir_unsupported_item_failure( workspace = workspace_factory() # Create unsupported item - item_display_name = generate_random_string( - vcr_instance, cassette_name - ) + item_display_name = generate_random_string(vcr_instance, cassette_name) item_name = f"{item_display_name}.{unsupported_item_type}" item_full_path = cli_path_join(workspace.full_path, item_name) @@ -128,15 +126,13 @@ def test_mkdir_lakehouse_with_creation_payload_success( cassette_name, upsert_item_to_cache, ): - lakehouse_display_name = generate_random_string( - vcr_instance, cassette_name) + lakehouse_display_name = generate_random_string(vcr_instance, cassette_name) lakehouse_full_path = cli_path_join( workspace.full_path, f"{lakehouse_display_name}.{ItemType.LAKEHOUSE}" ) # Execute command - cli_executor.exec_command( - f"mkdir {lakehouse_full_path} -P enableSchemas=true") + cli_executor.exec_command(f"mkdir {lakehouse_full_path} -P enableSchemas=true") # Assert upsert_item_to_cache.assert_called_once() @@ -170,8 +166,7 @@ def test_mkdir_kqldatabase_with_creation_payload_success( eventhouse_id = mock_questionary_print.call_args[0][0] mock_print_done.reset_mock() upsert_item_to_cache.reset_mock() - kqldatabase_display_name = generate_random_string( - vcr_instance, cassette_name) + kqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) kqldatabase_full_path = cli_path_join( workspace.full_path, f"{kqldatabase_display_name}.{ItemType.KQL_DATABASE}" ) @@ -206,8 +201,7 @@ def test_mkdir_kqldatabase_without_creation_payload_success( upsert_item_to_cache, ): # Setup - kqldatabase_display_name = generate_random_string( - vcr_instance, cassette_name) + kqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) kqldatabase_full_path = cli_path_join( workspace.full_path, f"{kqldatabase_display_name}.{ItemType.KQL_DATABASE}" ) @@ -227,8 +221,7 @@ def test_mkdir_kqldatabase_without_creation_payload_success( mock_questionary_print.reset_mock() eventhouse_full_path = ( - kqldatabase_full_path.removesuffix( - ".KQLDatabase") + "_auto.Eventhouse" + kqldatabase_full_path.removesuffix(".KQLDatabase") + "_auto.Eventhouse" ) get(eventhouse_full_path, query="id") eventhouse_id = mock_questionary_print.call_args[0][0] @@ -253,8 +246,7 @@ def test_mkdir_sqldatabase_with_creation_payload_success( upsert_item_to_cache, ): # Setup - sqldatabase_display_name = generate_random_string( - vcr_instance, cassette_name) + sqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) sqldatabase_full_path = cli_path_join( workspace.full_path, f"{sqldatabase_display_name}.{ItemType.SQL_DATABASE}" ) @@ -280,6 +272,115 @@ def test_mkdir_sqldatabase_with_creation_payload_success( # Cleanup rm(sqldatabase_full_path) + def test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success( + self, + workspace, + cli_executor, + mock_print_done, + mock_questionary_print, + vcr_instance, + cassette_name, + upsert_item_to_cache, + ): + # Setup - create a source SQLDatabase (mode=New) to restore from + source_display_name = generate_random_string(vcr_instance, cassette_name) + source_full_path = cli_path_join( + workspace.full_path, f"{source_display_name}.{ItemType.SQL_DATABASE}" + ) + cli_executor.exec_command(f"mkdir {source_full_path} -P mode=New") + + # The restore window opens a few minutes after creation. Wait for it to be + # populated, then read the source database to capture the item id, workspace + # id, and latest restore point (guaranteed to fall inside the valid window). + # Wait for 3 minutes to ensure restore point is available. when recording the test, + # if 5 minutes is not enough, increase the sleep time to 5 minutes. + time.sleep(300) + get(source_full_path, query=".") + source_details = json.loads(mock_questionary_print.call_args[0][0]) + source_item_id = source_details["id"] + source_workspace_id = source_details["workspaceId"] + restore_point_in_time = source_details["properties"]["latestRestorePoint"] + + mock_print_done.reset_mock() + upsert_item_to_cache.reset_mock() + + restored_display_name = generate_random_string(vcr_instance, cassette_name) + restored_full_path = cli_path_join( + workspace.full_path, f"{restored_display_name}.{ItemType.SQL_DATABASE}" + ) + + # Execute command - restore using the source database as the reference + cli_executor.exec_command( + f"mkdir {restored_full_path} " + f"-P mode=Restore,restorePointInTime={restore_point_in_time}," + f"itemId={source_item_id}," + f"workspaceId={source_workspace_id}" + ) + + # Assert + upsert_item_to_cache.assert_called_once() + mock_print_done.assert_called_once() + assert restored_display_name in mock_print_done.call_args[0][0] + + mock_questionary_print.reset_mock() + get(restored_full_path, query=".") + mock_questionary_print.assert_called_once() + assert restored_display_name in mock_questionary_print.call_args[0][0] + + # Cleanup the restored database and delete the source so it becomes a + # restorable deleted database for the RestoreDeletedDatabase scenario below. + rm(restored_full_path) + rm(source_full_path) + + # RestoreDeletedDatabase - the deleted database may take a short time to + # appear in the restorable deleted databases list. + time.sleep(60) + + # List the workspace's restorable deleted databases and read the + # restorableDeletedDatabaseName of the just-deleted source. + mock_questionary_print.reset_mock() + cli_executor.exec_command( + f"api workspaces/{source_workspace_id}/sqlDatabases/restorableDeletedDatabases" + ) + restorable_deleted = json.loads(mock_questionary_print.call_args[0][0])["text"][ + "value" + ] + restorable_deleted_database_name = restorable_deleted[0]["properties"][ + "restorableDeletedDatabaseName" + ] + + mock_print_done.reset_mock() + upsert_item_to_cache.reset_mock() + + restored_deleted_display_name = generate_random_string( + vcr_instance, cassette_name + ) + restored_deleted_full_path = cli_path_join( + workspace.full_path, + f"{restored_deleted_display_name}.{ItemType.SQL_DATABASE}", + ) + + # Execute command - restore the deleted source database. restorableDeletedDatabaseName + # is kept last because its value contains a comma (name,). + cli_executor.exec_command( + f"mkdir {restored_deleted_full_path} " + f"-P mode=RestoreDeletedDatabase,restorePointInTime={restore_point_in_time}," + f"restorableDeletedDatabaseName={restorable_deleted_database_name}" + ) + + # Assert + upsert_item_to_cache.assert_called_once() + mock_print_done.assert_called_once() + assert restored_deleted_display_name in mock_print_done.call_args[0][0] + + mock_questionary_print.reset_mock() + get(restored_deleted_full_path, query=".") + mock_questionary_print.assert_called_once() + assert restored_deleted_display_name in mock_questionary_print.call_args[0][0] + + # Cleanup + rm(restored_deleted_full_path) + @mkdir_item_with_creation_payload_success_params def test_mkdir_item_with_creation_payload_success( self, @@ -428,16 +529,14 @@ def test_mkdir_workspace_with_default_capacity_not_set_failure( self, cli_executor, assert_fabric_cli_error, vcr_instance, cassette_name ): # Setup - fab_default_capacity = state_config.get_config( - constant.FAB_DEFAULT_CAPACITY) + fab_default_capacity = state_config.get_config(constant.FAB_DEFAULT_CAPACITY) fab_default_capacity_id = state_config.get_config( constant.FAB_DEFAULT_CAPACITY_ID ) state_config.set_config(constant.FAB_DEFAULT_CAPACITY, "") state_config.set_config(constant.FAB_DEFAULT_CAPACITY_ID, "") - workspace_display_name = generate_random_string( - vcr_instance, cassette_name) + workspace_display_name = generate_random_string(vcr_instance, cassette_name) workspace_full_path = f"/{workspace_display_name}.Workspace" # Execute command @@ -450,8 +549,7 @@ def test_mkdir_workspace_with_default_capacity_not_set_failure( ) # Cleanup - state_config.set_config( - constant.FAB_DEFAULT_CAPACITY, fab_default_capacity) + state_config.set_config(constant.FAB_DEFAULT_CAPACITY, fab_default_capacity) state_config.set_config( constant.FAB_DEFAULT_CAPACITY_ID, fab_default_capacity_id ) @@ -531,14 +629,11 @@ def _mkdir_workspace_success( ): # Setup - workspace_display_name = generate_random_string( - vcr_instance, cassette_name) + workspace_display_name = generate_random_string(vcr_instance, cassette_name) workspace_full_path = f"/{workspace_display_name}.Workspace" - fab_capacity_name = state_config.get_config( - constant.FAB_DEFAULT_CAPACITY) - fab_capacity_name_id = state_config.get_config( - constant.FAB_DEFAULT_CAPACITY_ID) + fab_capacity_name = state_config.get_config(constant.FAB_DEFAULT_CAPACITY) + fab_capacity_name_id = state_config.get_config(constant.FAB_DEFAULT_CAPACITY_ID) # Execute command if capacity_name: @@ -564,10 +659,8 @@ def _mkdir_workspace_success( assert workspace_display_name in mock_questionary_print.call_args[0][0] # Cleanup - state_config.set_config( - constant.FAB_DEFAULT_CAPACITY, fab_capacity_name) - state_config.set_config( - constant.FAB_DEFAULT_CAPACITY_ID, fab_capacity_name_id) + state_config.set_config(constant.FAB_DEFAULT_CAPACITY, fab_capacity_name) + state_config.set_config(constant.FAB_DEFAULT_CAPACITY_ID, fab_capacity_name_id) rm(workspace_full_path) # endregion @@ -579,8 +672,7 @@ def test_mkdir_onelake_success( # Setup lakehouse = item_factory(ItemType.LAKEHOUSE) mock_print_done.reset_mock() - onelake_display_name = generate_random_string( - vcr_instance, cassette_name) + onelake_display_name = generate_random_string(vcr_instance, cassette_name) onelake_full_path = cli_path_join( lakehouse.full_path, "Files", f"{onelake_display_name}" ) @@ -674,8 +766,7 @@ def test_mkdir_sparkpool_with_params_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string( - vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -714,8 +805,7 @@ def test_mkdir_sparkpool_without_params_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string( - vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -752,8 +842,7 @@ def test_mkdir_sparkpool_with_params_without_maxNodeCount_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string( - vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -794,8 +883,7 @@ def test_mkdir_sparkpool_with_params_without_minNodeCount_success( upsert_spark_pool_to_cache, ): # Setup - sparkpool_display_name = generate_random_string( - vcr_instance, cassette_name) + sparkpool_display_name = generate_random_string(vcr_instance, cassette_name) sparkpool_full_path = cli_path_join( workspace.full_path, ".sparkpools", sparkpool_display_name + ".SparkPool" ) @@ -888,8 +976,7 @@ def test_mkdir_capacity_missing_resource_group_failure( fab_default_az_resource_group = state_config.get_config( constant.FAB_DEFAULT_AZ_RESOURCE_GROUP ) - state_config.set_config( - constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") state_config.set_config(constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "") capacity_display_name = "invalidcapacity" capacity_full_path = cli_path_join( @@ -923,10 +1010,8 @@ def test_mkdir_capacity_missing_location_failure( fab_default_az_location = state_config.get_config( constant.FAB_DEFAULT_AZ_LOCATION ) - state_config.set_config( - constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") - state_config.set_config( - constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") state_config.set_config(constant.FAB_DEFAULT_AZ_LOCATION, "") capacity_display_name = "invalidcapacity" capacity_full_path = cli_path_join( @@ -963,14 +1048,10 @@ def test_mkdir_capacity_missing_admin_failure( fab_default_az_location = state_config.get_config( constant.FAB_DEFAULT_AZ_LOCATION ) - fab_default_az_admin = state_config.get_config( - constant.FAB_DEFAULT_AZ_ADMIN) - state_config.set_config( - constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") - state_config.set_config( - constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") - state_config.set_config( - constant.FAB_DEFAULT_AZ_LOCATION, "placeholder") + fab_default_az_admin = state_config.get_config(constant.FAB_DEFAULT_AZ_ADMIN) + state_config.set_config(constant.FAB_DEFAULT_AZ_SUBSCRIPTION_ID, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_RESOURCE_GROUP, "placeholder") + state_config.set_config(constant.FAB_DEFAULT_AZ_LOCATION, "placeholder") state_config.set_config(constant.FAB_DEFAULT_AZ_ADMIN, "") capacity_display_name = "invalidcapacity" capacity_full_path = cli_path_join( @@ -993,8 +1074,7 @@ def test_mkdir_capacity_missing_admin_failure( state_config.set_config( constant.FAB_DEFAULT_AZ_LOCATION, fab_default_az_location ) - state_config.set_config( - constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) + state_config.set_config(constant.FAB_DEFAULT_AZ_ADMIN, fab_default_az_admin) def test_mkdir_capacity_with_params_success( self, @@ -1007,8 +1087,7 @@ def test_mkdir_capacity_with_params_success( test_data: StaticTestData, ): # Setup - capacity_display_name = generate_random_string( - vcr_instance, cassette_name) + capacity_display_name = generate_random_string(vcr_instance, cassette_name) capacity_full_path = cli_path_join( ".capacities", capacity_display_name + ".Capacity" ) @@ -1045,8 +1124,7 @@ def test_mkdir_capacity_success( test_data: StaticTestData, ): # Setup - capacity_display_name = generate_random_string( - vcr_instance, cassette_name) + capacity_display_name = generate_random_string(vcr_instance, cassette_name) capacity_full_path = cli_path_join( ".capacities", capacity_display_name + ".Capacity" ) @@ -1139,10 +1217,8 @@ def test_mkdir_domain_without_params_success( upsert_domain_to_cache, ): # Setup - domain_display_name = generate_random_string( - vcr_instance, cassette_name) - domain_full_path = cli_path_join( - ".domains", domain_display_name + ".Domain") + domain_display_name = generate_random_string(vcr_instance, cassette_name) + domain_full_path = cli_path_join(".domains", domain_display_name + ".Domain") # Execute command cli_executor.exec_command(f"mkdir {domain_full_path}") @@ -1170,16 +1246,13 @@ def test_mkdir_domain_with_params_success( upsert_domain_to_cache, ): # Setup - parent_domain = virtual_workspace_item_factory( - VirtualWorkspaceType.DOMAIN) + parent_domain = virtual_workspace_item_factory(VirtualWorkspaceType.DOMAIN) get(parent_domain.full_path, query="id") parent_domain_id = mock_questionary_print.call_args[0][0] mock_print_done.reset_mock() upsert_domain_to_cache.reset_mock() - domain_display_name = generate_random_string( - vcr_instance, cassette_name) - domain_full_path = cli_path_join( - ".domains", domain_display_name + ".Domain") + domain_display_name = generate_random_string(vcr_instance, cassette_name) + domain_full_path = cli_path_join(".domains", domain_display_name + ".Domain") # Execute command cli_executor.exec_command( @@ -1210,8 +1283,7 @@ def test_mkdir_domain_without_params_failure( ): domain_display_name = "domainNoParams" - domain_full_path = cli_path_join( - ".domains", domain_display_name + ".Domain") + domain_full_path = cli_path_join(".domains", domain_display_name + ".Domain") # with params=[] we simulate -P without args cli_executor.exec_command(f"mkdir {domain_full_path} -P") @@ -1402,8 +1474,7 @@ def test_mkdir_managed_private_endpoint_without_params_fail( ) # Execute command - cli_executor.exec_command( - f"mkdir {managed_private_endpoint_full_path}") + cli_executor.exec_command(f"mkdir {managed_private_endpoint_full_path}") # Assert assert_fabric_cli_error(constant.ERROR_INVALID_INPUT) @@ -1485,8 +1556,7 @@ def test_mkdir_external_data_share_with_params_success( eds_display_name = generate_random_string(vcr_instance, cassette_name) type = VirtualItemContainerType.EXTERNAL_DATA_SHARE eds_full_path = cli_path_join( - workspace.full_path, str( - type), f"{eds_display_name}.{str(VICMap[type])}" + workspace.full_path, str(type), f"{eds_display_name}.{str(VICMap[type])}" ) # Execute command @@ -1512,8 +1582,7 @@ def test_mkdir_external_data_share_with_params_success( generated_name = ".".join(parts[:2]) eds_full_path = cli_path_join( - workspace.full_path, str( - type), f"{generated_name}.{str(VICMap[type])}" + workspace.full_path, str(type), f"{generated_name}.{str(VICMap[type])}" ) # Cleanup @@ -1535,8 +1604,7 @@ def test_mkdir_external_data_share_without_params_fail( eds_display_name = generate_random_string(vcr_instance, cassette_name) type = VirtualItemContainerType.EXTERNAL_DATA_SHARE eds_full_path = cli_path_join( - workspace.full_path, str( - type), f"{eds_display_name}.{str(VICMap[type])}" + workspace.full_path, str(type), f"{eds_display_name}.{str(VICMap[type])}" ) # Execute command @@ -1561,8 +1629,7 @@ def test_mkdir_connection_with_params_success( cassette_name, ): # Setup - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1603,8 +1670,7 @@ def test_mkdir_connection_with_onpremises_gateway_params_success( cassette_name, ): # Setup - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1637,8 +1703,7 @@ def test_mkdir_connection_with_onpremises_gateway_params_ignore_params_success( cassette_name, ): # Setup - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1657,7 +1722,10 @@ def test_mkdir_connection_with_onpremises_gateway_params_ignore_params_success( mock_print_warning.assert_called() assert mock_print_warning.call_count == 1 - assert f"Ignoring unsupported parameters for on-premises gateway: ['ignoreparameters']" == mock_print_warning.call_args[0][0] + assert ( + f"Ignoring unsupported parameters for on-premises gateway: ['ignoreparameters']" + == mock_print_warning.call_args[0][0] + ) # Cleanup rm(connection_full_path) @@ -1671,8 +1739,7 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( cassette_name, ): # Setup - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1685,8 +1752,10 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][ - 0].message == "Missing parameters for credential type Basic: ['values']" + assert ( + mock_fab_ui_print_error.call_args[0][0].message + == "Missing parameters for credential type Basic: ['values']" + ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" mock_fab_ui_print_error.reset_mock() @@ -1699,8 +1768,11 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.missing_onpremises_gateway_parameters([ - 'encryptedCredentials']) + assert mock_fab_ui_print_error.call_args[0][ + 0 + ].message == ErrorMessages.Common.missing_onpremises_gateway_parameters( + ["encryptedCredentials"] + ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" mock_fab_ui_print_error.reset_mock() @@ -1713,8 +1785,11 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.missing_onpremises_gateway_parameters([ - 'gatewayId']) + assert mock_fab_ui_print_error.call_args[0][ + 0 + ].message == ErrorMessages.Common.missing_onpremises_gateway_parameters( + ["gatewayId"] + ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" mock_fab_ui_print_error.reset_mock() @@ -1727,7 +1802,9 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.invalid_onpremises_gateway_values( + assert ( + mock_fab_ui_print_error.call_args[0][0].message + == ErrorMessages.Common.invalid_onpremises_gateway_values() ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" @@ -1741,7 +1818,9 @@ def test_mkdir_connection_with_onpremises_gateway_params_failure( # Assert mock_fab_ui_print_error.assert_called() assert mock_fab_ui_print_error.call_count == 1 - assert mock_fab_ui_print_error.call_args[0][0].message == ErrorMessages.Common.invalid_onpremises_gateway_values( + assert ( + mock_fab_ui_print_error.call_args[0][0].message + == ErrorMessages.Common.invalid_onpremises_gateway_values() ) assert mock_fab_ui_print_error.call_args[0][0].status_code == "InvalidInput" @@ -1755,8 +1834,7 @@ def test_mkdir_connection_with_gateway_params_success( cassette_name, ): # Setup - gateway_display_name = generate_random_string( - vcr_instance, cassette_name) + gateway_display_name = generate_random_string(vcr_instance, cassette_name) gateway_full_path = cli_path_join( ".gateways", gateway_display_name + ".Gateway" ) @@ -1766,8 +1844,7 @@ def test_mkdir_connection_with_gateway_params_success( f"capacity={test_data.capacity.name},virtualNetworkName={test_data.vnet.name},subnetName={test_data.vnet.subnet}" ], ) - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1827,8 +1904,7 @@ def test_mkdir_connection_case_sensitivity_scenario_success( cassette_name, test_data: StaticTestData, ): - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1855,8 +1931,7 @@ def test_mkdir_connection_case_insensitive_parameter_matching_success( test_data: StaticTestData, ): """Test that parameter name matching is case-insensitive for creation method inference.""" - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1903,8 +1978,7 @@ def test_mkdir_connection_parameter_name_none_safety_success( test_data: StaticTestData, ): """Test that parameter name None safety doesn't break normal operation.""" - connection_display_name = generate_random_string( - vcr_instance, cassette_name) + connection_display_name = generate_random_string(vcr_instance, cassette_name) connection_full_path = cli_path_join( ".connections", connection_display_name + ".Connection" ) @@ -1934,8 +2008,7 @@ def test_mkdir_gateway_with_params_success( cassette_name, ): # Setup - gateway_display_name = generate_random_string( - vcr_instance, cassette_name) + gateway_display_name = generate_random_string(vcr_instance, cassette_name) gateway_full_path = cli_path_join( ".gateways", gateway_display_name + ".Gateway" ) @@ -2026,8 +2099,7 @@ def test_mkdir_workspace_verify_stderr_stdout_messages_text_format_success( cassette_name, test_data: StaticTestData, ): - workspace_display_name = generate_random_string( - vcr_instance, cassette_name) + workspace_display_name = generate_random_string(vcr_instance, cassette_name) captured, workspace_full_path = self._verify_mkdir_workspace_output( cli_executor, workspace_display_name, @@ -2053,8 +2125,7 @@ def test_mkdir_workspace_verify_stderr_stdout_messages_json_format_success( ): # Set output format to json mock_fab_set_state_config(constant.FAB_OUTPUT_FORMAT, "json") - workspace_display_name = generate_random_string( - vcr_instance, cassette_name) + workspace_display_name = generate_random_string(vcr_instance, cassette_name) captured, workspace_full_path = self._verify_mkdir_workspace_output( cli_executor, workspace_display_name, @@ -2080,7 +2151,14 @@ def test_mkdir_workspace_verify_stderr_stdout_messages_json_format_success( # region Folders def test_mkdir_item_in_folder_listing_success( - self, workspace, cli_executor, mock_print_done, mock_questionary_print, mock_fab_set_state_config, vcr_instance, cassette_name + self, + workspace, + cli_executor, + mock_print_done, + mock_questionary_print, + mock_fab_set_state_config, + vcr_instance, + cassette_name, ): # Enable folder listing mock_fab_set_state_config(constant.FAB_FOLDER_LISTING_ENABLED, "true") @@ -2095,7 +2173,9 @@ def test_mkdir_item_in_folder_listing_success( mock_print_done.reset_mock() # Create notebook in folder - notebook_name = f"{generate_random_string(vcr_instance, cassette_name)}.Notebook" + notebook_name = ( + f"{generate_random_string(vcr_instance, cassette_name)}.Notebook" + ) notebook_full_path = cli_path_join(folder_full_path, notebook_name) cli_executor.exec_command(f"mkdir {notebook_full_path}") @@ -2111,8 +2191,7 @@ def test_mkdir_item_in_folder_listing_success( def test_mkdir_folder_success(self, workspace, cli_executor, mock_print_done): # Setup folder_display_name = "folder" - folder_full_path = cli_path_join( - workspace.full_path, folder_display_name) + folder_full_path = cli_path_join(workspace.full_path, folder_display_name) # Execute command cli_executor.exec_command(f"mkdir {folder_full_path}") @@ -2172,8 +2251,7 @@ def test_mkdir_single_item_creation_batch_output_structure_success( ): """Test that single item creation uses batched output structure.""" # Setup - lakehouse_display_name = generate_random_string( - vcr_instance, cassette_name) + lakehouse_display_name = generate_random_string(vcr_instance, cassette_name) lakehouse_full_path = cli_path_join( workspace.full_path, f"{lakehouse_display_name}.{ItemType.LAKEHOUSE}" ) @@ -2189,8 +2267,7 @@ def test_mkdir_single_item_creation_batch_output_structure_success( # Verify headers and values in mock_questionary_print.mock_calls # Look for the table output with headers - output_calls = [str(call) - for call in mock_questionary_print.mock_calls] + output_calls = [str(call) for call in mock_questionary_print.mock_calls] table_output = "\n".join(output_calls) # Check for standard table headers @@ -2217,8 +2294,7 @@ def test_mkdir_dependency_creation_batched_output_kql_database_success( ): """Test that KQL Database creation with EventHouse dependency produces batched output.""" # Setup - kqldatabase_display_name = generate_random_string( - vcr_instance, cassette_name) + kqldatabase_display_name = generate_random_string(vcr_instance, cassette_name) kqldatabase_full_path = cli_path_join( workspace.full_path, f"{kqldatabase_display_name}.{ItemType.KQL_DATABASE}" ) @@ -2239,8 +2315,7 @@ def test_mkdir_dependency_creation_batched_output_kql_database_success( ) # Verify headers and values in mock_questionary_print.mock_calls for batched output - output_calls = [str(call) - for call in mock_questionary_print.mock_calls] + output_calls = [str(call) for call in mock_questionary_print.mock_calls] table_output = "\n".join(output_calls) # Check for standard table headers (should appear once for consolidated table) @@ -2259,8 +2334,7 @@ def test_mkdir_dependency_creation_batched_output_kql_database_success( # Cleanup - removing parent eventhouse removes the kqldatabase as well eventhouse_full_path = ( - kqldatabase_full_path.removesuffix( - ".KQLDatabase") + "_auto.Eventhouse" + kqldatabase_full_path.removesuffix(".KQLDatabase") + "_auto.Eventhouse" ) rm(eventhouse_full_path) @@ -2340,8 +2414,7 @@ def test_mkdir_digitaltwinbuilderflow_without_creation_payload_success( mock_questionary_print.reset_mock() digital_twin_builder_full_path = ( - flow_full_path.removesuffix( - f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + flow_full_path.removesuffix(f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + f"_auto.{ItemType.DIGITAL_TWIN_BUILDER}" ) get(digital_twin_builder_full_path, query="id") @@ -2389,8 +2462,7 @@ def test_mkdir_dependency_creation_batched_output_digitaltwinbuilderflow_success ) # Verify headers and values in table output - output_calls = [str(call) - for call in mock_questionary_print.mock_calls] + output_calls = [str(call) for call in mock_questionary_print.mock_calls] table_output = "\n".join(output_calls) assert "id" in table_output or "ID" in table_output @@ -2411,8 +2483,7 @@ def test_mkdir_dependency_creation_batched_output_digitaltwinbuilderflow_success # Cleanup - removing parent DigitalTwinBuilder removes the flow as well digital_twin_builder_full_path = ( - flow_full_path.removesuffix( - f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + flow_full_path.removesuffix(f".{ItemType.DIGITAL_TWIN_BUILDER_FLOW}") + f"_auto.{ItemType.DIGITAL_TWIN_BUILDER}" ) rm(digital_twin_builder_full_path) From 5244079da80729f4cea17bae5c59c1b1f722c002 Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Wed, 1 Jul 2026 10:02:23 +0000 Subject: [PATCH 16/22] add changie --- .../\342\234\250 New Functionality-20260701-100039.yaml" | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ".changes/unreleased/\342\234\250 New Functionality-20260701-100039.yaml" diff --git "a/.changes/unreleased/\342\234\250 New Functionality-20260701-100039.yaml" "b/.changes/unreleased/\342\234\250 New Functionality-20260701-100039.yaml" new file mode 100644 index 000000000..36789d250 --- /dev/null +++ "b/.changes/unreleased/\342\234\250 New Functionality-20260701-100039.yaml" @@ -0,0 +1,6 @@ +kind: ✨ New Functionality +body: Support Restore and RestoreDeletedDatabase creationMode in SqlDatabase +time: 2026-07-01T10:00:39.756281592Z +custom: + Author: aviatco + AuthorLink: https://github.com/aviatco From 80a63d6bfb9ee9b17d58348b6d5766d162c53599 Mon Sep 17 00:00:00 2001 From: aviatco <32952699+aviatco@users.noreply.github.com> Date: Wed, 1 Jul 2026 20:26:07 +0300 Subject: [PATCH 17/22] Update src/fabric_cli/errors/mkdir.py Co-authored-by: Alon Yeshurun <98805507+ayeshurun@users.noreply.github.com> --- src/fabric_cli/errors/mkdir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fabric_cli/errors/mkdir.py b/src/fabric_cli/errors/mkdir.py index e02d49550..572340e30 100644 --- a/src/fabric_cli/errors/mkdir.py +++ b/src/fabric_cli/errors/mkdir.py @@ -25,7 +25,7 @@ def missing_restore_params() -> str: return ( "Missing required parameter(s) for restore mode. " "Required: restorePointInTime, itemId, workspaceId. " - "Example: -P mode=Restore,restorePointInTime=2024-01-15T10:30:00Z,itemId=,workspaceId=" + "Example: -P mode=Restore,restorePointInTime=2024-01-15T10:30:00Z,itemId=,workspaceId=" ) @staticmethod From 96e4e2db3c0f3c6be468550218351c14d3ba0daa Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Wed, 1 Jul 2026 17:29:05 +0000 Subject: [PATCH 18/22] update changie --- .changes/unreleased/added-20260625-145755.yaml | 2 +- .../\342\234\250 New Functionality-20260701-100039.yaml" | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 ".changes/unreleased/\342\234\250 New Functionality-20260701-100039.yaml" diff --git a/.changes/unreleased/added-20260625-145755.yaml b/.changes/unreleased/added-20260625-145755.yaml index a207b46b4..768759c25 100644 --- a/.changes/unreleased/added-20260625-145755.yaml +++ b/.changes/unreleased/added-20260625-145755.yaml @@ -1,5 +1,5 @@ kind: added -body: Support creating SQLDatabase with optional parameters. Only `CreationMode` of type `New` is supported. +body: Support creating SQLDatabase with optional parameters. Support `creationMode` of type `New`, `Restore` and `RestoreDeletedDatabase`. time: 2026-06-25T14:57:55.03150683Z custom: Author: aviatco diff --git "a/.changes/unreleased/\342\234\250 New Functionality-20260701-100039.yaml" "b/.changes/unreleased/\342\234\250 New Functionality-20260701-100039.yaml" deleted file mode 100644 index 36789d250..000000000 --- "a/.changes/unreleased/\342\234\250 New Functionality-20260701-100039.yaml" +++ /dev/null @@ -1,6 +0,0 @@ -kind: ✨ New Functionality -body: Support Restore and RestoreDeletedDatabase creationMode in SqlDatabase -time: 2026-07-01T10:00:39.756281592Z -custom: - Author: aviatco - AuthorLink: https://github.com/aviatco From ba5121456a23636121faf5cac152c08304595aab Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Wed, 1 Jul 2026 18:04:34 +0000 Subject: [PATCH 19/22] resolve PR commets --- src/fabric_cli/errors/mkdir.py | 4 +- src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 5 +- .../test_commands/test_mkdir/class_setup.yaml | 51 +- ...deleted_with_creation_payload_success.yaml | 2309 +++-------------- ...atabase_with_creation_payload_success.yaml | 180 +- tests/test_commands/test_mkdir.py | 8 +- tests/test_utils/test_fab_cmd_mkdir_utils.py | 3 - 7 files changed, 475 insertions(+), 2085 deletions(-) diff --git a/src/fabric_cli/errors/mkdir.py b/src/fabric_cli/errors/mkdir.py index 572340e30..7113fba9c 100644 --- a/src/fabric_cli/errors/mkdir.py +++ b/src/fabric_cli/errors/mkdir.py @@ -25,7 +25,7 @@ def missing_restore_params() -> str: return ( "Missing required parameter(s) for restore mode. " "Required: restorePointInTime, itemId, workspaceId. " - "Example: -P mode=Restore,restorePointInTime=2024-01-15T10:30:00Z,itemId=,workspaceId=" + "Example: -P creationMode=Restore,restorePointInTime=2024-01-15T10:30:00Z,itemId=,workspaceId=" ) @staticmethod @@ -33,7 +33,7 @@ def missing_restore_deleted_params() -> str: return ( "Missing required parameter(s) for RestoreDeletedDatabase mode. " "Required: restorableDeletedDatabaseName, restorePointInTime. " - "Example: -P mode=RestoreDeletedDatabase,restorableDeletedDatabaseName=,restorePointInTime=2024-01-15T10:30:00Z" + "Example: -P creationMode=RestoreDeletedDatabase,restorableDeletedDatabaseName=,restorePointInTime=2024-01-15T10:30:00Z" ) @staticmethod diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index 9391b202b..7ef40b4da 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -794,7 +794,8 @@ def lowercase_keys(data): def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: """Build the optional creationPayload for SQLDatabase creation. - The payload is built based on the creation mode (params["mode"]): + The payload is built based on the creation mode (params["creationMode"]) and the provided parameters. + The supported modes are: - New: creationMode, backupRetentionDays, collation - Restore: creationMode, restorePointInTime, sourceDatabaseReference (itemId, referenceType, workspaceId) @@ -827,7 +828,7 @@ def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: ) -def _validate_required_params(params: dict, required: list, error_message: str) -> None: +def _validate_required_params(params: dict[str, object], required: list[str], error_message: str) -> None: """Raise a FabricCLIError when any required param is missing or empty. 'required' is a list of (key) param names to look up in 'params'. diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml index c718436c1..84eded8d8 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml @@ -12,7 +12,6 @@ interactions: - application/json User-Agent: - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) - - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: @@ -31,11 +30,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:35:55 GMT + - Wed, 01 Jul 2026 17:47:54 GMT Pragma: - no-cache RequestId: - - f68bb4cf-9824-43c9-9deb-e0d0506b6e17 + - b9e9d7ad-c93d-453e-8c76-bf10a93760a5 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -62,7 +61,6 @@ interactions: - application/json User-Agent: - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) - - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET uri: https://api.fabric.microsoft.com/v1/workspaces response: @@ -81,11 +79,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:35:57 GMT + - Wed, 01 Jul 2026 17:47:55 GMT Pragma: - no-cache RequestId: - - c48a8c61-1145-44d5-9fb6-537744dbf684 + - 670707c1-3144-4939-9e81-4cb74c906279 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -112,7 +110,6 @@ interactions: - application/json User-Agent: - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) - - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET uri: https://api.fabric.microsoft.com/v1/capacities response: @@ -128,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '467' + - '466' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:36:02 GMT + - Wed, 01 Jul 2026 17:48:00 GMT Pragma: - no-cache RequestId: - - a49e3dc9-4984-41a3-beb7-96c431985c67 + - a3828420-3ee3-49b6-a06d-4333af272e8e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -166,12 +163,11 @@ interactions: - application/json User-Agent: - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) - - ms-fabric-cli/1.6.1 (None; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: POST uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}' headers: @@ -186,13 +182,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:36:07 GMT + - Wed, 01 Jul 2026 17:48:08 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe + - https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6 Pragma: - no-cache RequestId: - - 53c14794-6a4a-411c-8a1b-e93d0ee3f00e + - c377fcc6-6abb-4819-8a7e-f288f20ae51f Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -219,18 +215,15 @@ interactions: - application/json User-Agent: - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) - - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' - "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", - "capacityRegion": "Central US"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -239,15 +232,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3499' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 09:01:18 GMT + - Wed, 01 Jul 2026 18:02:26 GMT Pragma: - no-cache RequestId: - - c3f5c508-a4fd-4a92-912b-36a060c48ea8 + - 3441f7ca-46ce-49fe-9791-3887c2bda0f8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -274,9 +267,8 @@ interactions: - application/json User-Agent: - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) - - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: string: '{"value": []}' @@ -292,11 +284,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 09:01:18 GMT + - Wed, 01 Jul 2026 18:02:27 GMT Pragma: - no-cache RequestId: - - 105a696c-3e1e-4cee-bccf-ff6e2f7c023b + - d51303e9-6318-447b-88e0-8ab976c90d81 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -325,9 +317,8 @@ interactions: - application/json User-Agent: - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) - - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6 response: body: string: '' @@ -343,11 +334,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 01 Jul 2026 09:01:19 GMT + - Wed, 01 Jul 2026 18:02:28 GMT Pragma: - no-cache RequestId: - - b0596e0f-2b76-4964-bcef-d7396dfd1a14 + - cb40ccc2-6b39-4947-aa36-ec48217d4240 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml index 88e1aa1c2..597552eef 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml @@ -17,7 +17,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -29,15 +29,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3499' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:36:09 GMT + - Wed, 01 Jul 2026 17:48:09 GMT Pragma: - no-cache RequestId: - - b35f1e03-7333-42e5-9d45-a74881c102f0 + - 9c312499-b314-435a-aebd-466f01d62060 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -65,7 +65,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: string: '{"value": []}' @@ -81,11 +81,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:36:09 GMT + - Wed, 01 Jul 2026 17:48:10 GMT Pragma: - no-cache RequestId: - - f83d00da-0bb6-4935-a8c6-f2fc4f14c3ab + - 05ad58b0-464f-4bc5-982f-5386234d9aea Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -113,7 +113,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: string: '{"value": []}' @@ -129,11 +129,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:36:10 GMT + - Wed, 01 Jul 2026 17:48:10 GMT Pragma: - no-cache RequestId: - - 3c44c1e7-11eb-4daf-94ea-4fc9088d663e + - 49a1bac3-47a4-471b-a995-067b94a76708 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -164,7 +164,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases response: body: string: 'null' @@ -180,15 +180,15 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:36:13 GMT + - Wed, 01 Jul 2026 17:48:12 GMT ETag: - '""' Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5049fdc6-a68e-469f-973c-061971466fa5 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2104e63d-44d6-4e09-959d-869ca07452cc Pragma: - no-cache RequestId: - - a1299a84-f0a6-4783-97d9-c470a62c82c4 + - 16eb2d8d-7385-47ca-997b-e4824f12b9cf Retry-After: - '20' Strict-Transport-Security: @@ -202,7 +202,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - 5049fdc6-a68e-469f-973c-061971466fa5 + - 2104e63d-44d6-4e09-959d-869ca07452cc status: code: 202 message: Accepted @@ -220,11 +220,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5049fdc6-a68e-469f-973c-061971466fa5 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2104e63d-44d6-4e09-959d-869ca07452cc response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:36:11.8642532", - "lastUpdatedTimeUtc": "2026-07-01T08:36:28.9974469", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T17:48:11.6469358", + "lastUpdatedTimeUtc": "2026-07-01T17:48:29.4867769", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -238,13 +238,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:36:34 GMT + - Wed, 01 Jul 2026 17:48:34 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5049fdc6-a68e-469f-973c-061971466fa5/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2104e63d-44d6-4e09-959d-869ca07452cc/result Pragma: - no-cache RequestId: - - 7fa6702c-7d37-4bfb-8311-ef9df3599b8f + - 02c2e2ae-67b5-4467-8485-cc3de80f7500 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -252,7 +252,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 5049fdc6-a68e-469f-973c-061971466fa5 + - 2104e63d-44d6-4e09-959d-869ca07452cc status: code: 200 message: OK @@ -270,11 +270,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/5049fdc6-a68e-469f-973c-061971466fa5/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2104e63d-44d6-4e09-959d-869ca07452cc/result response: body: - string: '{"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}' + string: '{"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}' headers: Access-Control-Expose-Headers: - RequestId @@ -285,11 +285,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 01 Jul 2026 08:36:35 GMT + - Wed, 01 Jul 2026 17:48:35 GMT Pragma: - no-cache RequestId: - - 13a647ed-1e66-4a4c-b376-aa4698576d76 + - d2498aad-eac4-4bc3-81d8-873c4ba42799 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -319,7 +319,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -331,15 +331,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3499' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:41:54 GMT + - Wed, 01 Jul 2026 17:53:54 GMT Pragma: - no-cache RequestId: - - 882ebf2e-97f7-41ec-ae70-6a475512af02 + - 39db71f1-35c7-4d0f-b4fc-bee24faed236 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -367,13 +367,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: - string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -386,11 +386,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:41:55 GMT + - Wed, 01 Jul 2026 17:53:56 GMT Pragma: - no-cache RequestId: - - e788850e-34d1-4ae0-8d3b-6605cd96097c + - 5d006cf6-4767-4af0-89ff-cee3597c1c2b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -418,17 +418,17 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases/35de8b81-7021-46df-8005-99dc692d4512 + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases/3853ea13-13a1-42e9-a823-ad8d78666012 response: body: - string: '{"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", - "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433;Initial - Catalog=fabcli000001-35de8b81-7021-46df-8005-99dc692d4512;Multiple Active + string: '{"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-uvzix2ltvpdexegcyfq63gzt6y.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000001-3853ea13-13a1-42e9-a823-ad8d78666012;Multiple Active Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", - "connectionString": "mock_connection_string", "databaseName": "fabcli000001-35de8b81-7021-46df-8005-99dc692d4512", - "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433", - "earliestRestorePoint": "2026-07-01T08:40:48Z", "latestRestorePoint": "2026-07-01T08:40:48Z", + "connectionString": "mock_connection_string", "databaseName": "fabcli000001-3853ea13-13a1-42e9-a823-ad8d78666012", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-uvzix2ltvpdexegcyfq63gzt6y.database.fabric.microsoft.com,1433", + "earliestRestorePoint": "2026-07-01T17:51:15Z", "latestRestorePoint": "2026-07-01T17:51:15Z", "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Access-Control-Expose-Headers: @@ -438,17 +438,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '471' + - '470' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:41:57 GMT + - Wed, 01 Jul 2026 17:53:56 GMT ETag: - '""' Pragma: - no-cache RequestId: - - 1e5dffa0-ecc4-46ba-9bf4-9812c824643e + - 355d0674-0e8b-4254-b25a-b6b29dd6ced1 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -478,7 +478,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/35de8b81-7021-46df-8005-99dc692d4512/getDefinition + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/3853ea13-13a1-42e9-a823-ad8d78666012/getDefinition response: body: string: 'null' @@ -494,13 +494,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:41:57 GMT + - Wed, 01 Jul 2026 17:53:58 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211 Pragma: - no-cache RequestId: - - 2b5dec96-abf5-417a-ae27-95083a65cfd1 + - de6665eb-50e6-41e7-99d8-12400f11dd19 Retry-After: - '20' Strict-Transport-Security: @@ -514,7 +514,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - 207f7dbf-7941-4f94-8ef2-82b0ef62e77d + - 9d0016c3-f067-4ef4-bf2c-28504c7ab211 status: code: 202 message: Accepted @@ -532,11 +532,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:41:57.8529623", - "lastUpdatedTimeUtc": "2026-07-01T08:41:57.8529623", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:53:58.2731013", + "lastUpdatedTimeUtc": "2026-07-01T17:53:58.2731013", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -546,69 +546,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '121' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:42:18 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d - Pragma: - - no-cache - RequestId: - - c15c6deb-73ce-40d6-83fd-3275bad2c704 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - 207f7dbf-7941-4f94-8ef2-82b0ef62e77d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:41:57.8529623", - "lastUpdatedTimeUtc": "2026-07-01T08:41:57.8529623", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '121' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:42:40 GMT + - Wed, 01 Jul 2026 17:54:19 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211 Pragma: - no-cache RequestId: - - a5f39010-b396-4b4f-a8aa-bf870d3b36d3 + - 67fc6139-4129-4746-b955-679f662f30b0 Retry-After: - '20' Strict-Transport-Security: @@ -618,7 +566,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 207f7dbf-7941-4f94-8ef2-82b0ef62e77d + - 9d0016c3-f067-4ef4-bf2c-28504c7ab211 status: code: 200 message: OK @@ -636,11 +584,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211 response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:41:57.8529623", - "lastUpdatedTimeUtc": "2026-07-01T08:42:46.7472053", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T17:53:58.2731013", + "lastUpdatedTimeUtc": "2026-07-01T17:54:37.2250489", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -650,17 +598,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '134' + - '133' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:43:01 GMT + - Wed, 01 Jul 2026 17:54:41 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211/result Pragma: - no-cache RequestId: - - 0ae56914-07d9-4e03-a2d7-404e572773d2 + - 1a7e2722-5eb4-4b47-a58c-162cc63a2b40 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -668,7 +616,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 207f7dbf-7941-4f94-8ef2-82b0ef62e77d + - 9d0016c3-f067-4ef4-bf2c-28504c7ab211 status: code: 200 message: OK @@ -686,11 +634,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/207f7dbf-7941-4f94-8ef2-82b0ef62e77d/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211/result response: body: string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000001.dacpac", - "payload": "UEsDBBQAAAAIAFJF4VzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDhKWk2Wi3tw5Di0ChmWHPpNcHrtF16CcK3XHnxuTffF+vGLWXVc0kMvP1E5UqGoSfQuJHqBhw9rIi9VuNZstvtFyaw1lwjUCN2MezICy0kZlt1QnB4EyqZce9IvnbgnO9qqeqIRpIbU05hPq98wi8oJNYFdSlX3L6Nek7IveFNJjepCgMmzIazNtae2X/IRnKLKd5TBhnZmlNcEBzv24j2jxvnKj5gFNU5EfiiJc5UZBDSkccELe2tE+VJm3aoPJoqTkkG/U92EDOWAL8H5C9BRUJ4CNQpt7orxL8+yAsKvJcodZDpjVFrYs5CtpSwlD3lJKqplp7+KSx0ZTCLH0EMvGEo94a3tbxmjPwa0cHq2yXxD2OGdmmhm4SeZfbUFTupmjmqMyy2v46itUPiO4H4wEdieb4OwpUwMfhqDkOb8ZXUT2fHZobvYlJF6dQcHMn3vTuO0B9GuQHKEGbOAWlmJlfTaQ6oblQigSMbe8nQ55q+3Q8OpZKjGCG9MJgYqe8hX1llDfAfZKKcWF6wm4/PU7TqtFlzqavk9w+CFivawBiVhC2QvwNsOnueOB9g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jwAAAK8AAAATAAAAAAAAAAAAAAAAAPoFAABbQ29udGVudF9UeXBlc10ueG1sUEsFBgAAAAAEAAQA7QAAALoGAAAAAA==", "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNRTERhdGFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", "payloadType": "InlineBase64"}]}}' headers: @@ -703,11 +651,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 01 Jul 2026 08:43:02 GMT + - Wed, 01 Jul 2026 17:54:42 GMT Pragma: - no-cache RequestId: - - a7edad8b-3cc8-4c34-a2c3-eb0e90a89cf1 + - 9ef3e1bd-fa76-487e-8a00-a30ff300089b Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -733,7 +681,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/35de8b81-7021-46df-8005-99dc692d4512/connections + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/3853ea13-13a1-42e9-a823-ad8d78666012/connections response: body: string: '{"value": []}' @@ -749,11 +697,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:43:03 GMT + - Wed, 01 Jul 2026 17:54:43 GMT Pragma: - no-cache RequestId: - - 3fd9f908-b659-4c04-92da-1d868aa21a2d + - 1405781b-bd07-4d6d-ab62-33e24cb7ca7e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -785,7 +733,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -797,15 +745,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3499' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:43:04 GMT + - Wed, 01 Jul 2026 17:54:44 GMT Pragma: - no-cache RequestId: - - a04b77b1-85f8-4b9b-ac63-7f5443ae4bff + - 22f05bef-de2d-4b69-bbfb-5c05ae0f73e6 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -833,13 +781,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: - string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -852,11 +800,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:43:05 GMT + - Wed, 01 Jul 2026 17:54:45 GMT Pragma: - no-cache RequestId: - - 529ae1a9-2ce2-4f1c-91b0-024cc52f943e + - 330cd14d-52dc-416c-9235-67df0dcfcd16 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -884,13 +832,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: - string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -903,11 +851,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:43:06 GMT + - Wed, 01 Jul 2026 17:54:46 GMT Pragma: - no-cache RequestId: - - 3bc4d85d-0841-498b-ad26-029e9cdc1e1c + - b42e9304-8e8e-4696-b941-d1adb0debca1 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -923,9 +871,9 @@ interactions: message: OK - request: body: '{"displayName": "fabcli000002", "type": "SQLDatabase", "folderId": null, - "creationPayload": {"creationMode": "Restore", "restorePointInTime": "2026-07-01T08:40:48Z", - "sourceDatabaseReference": {"itemId": "35de8b81-7021-46df-8005-99dc692d4512", - "referenceType": "ById", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}}}' + "creationPayload": {"creationMode": "Restore", "restorePointInTime": "2026-07-01T17:51:15Z", + "sourceDatabaseReference": {"itemId": "3853ea13-13a1-42e9-a823-ad8d78666012", + "referenceType": "ById", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}}}' headers: Accept: - '*/*' @@ -940,7 +888,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases response: body: string: 'null' @@ -956,15 +904,15 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:43:07 GMT + - Wed, 01 Jul 2026 17:54:48 GMT ETag: - '""' Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 23f0029b-024c-44bc-b84a-5108c7a8b6b4 + - ea1966c8-7858-4f75-98fa-8b59c67856bb Retry-After: - '20' Strict-Transport-Security: @@ -978,7 +926,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 202 message: Accepted @@ -996,63 +944,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '122' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:43:29 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 - Pragma: - - no-cache - RequestId: - - 45372df6-6633-4280-ae6b-473ee7aaa159 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1062,17 +958,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:43:50 GMT + - Wed, 01 Jul 2026 17:55:10 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - f884ed36-524c-4573-9c30-a4c083a1ee87 + - 64967e7a-9866-47f6-a393-2d95e133f97a Retry-After: - '20' Strict-Transport-Security: @@ -1082,7 +978,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1100,11 +996,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1114,17 +1010,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:44:11 GMT + - Wed, 01 Jul 2026 17:55:32 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 0ba6817a-2738-47a6-8208-3407d055fc47 + - 251590ed-c0ef-447c-9372-7b4e7b0428f0 Retry-After: - '20' Strict-Transport-Security: @@ -1134,7 +1030,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1152,11 +1048,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1166,17 +1062,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:44:32 GMT + - Wed, 01 Jul 2026 17:55:54 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - d9eb7349-38c4-4a94-b746-a703991a894f + - 28d46f4c-bafc-4f98-8cd1-5ec85727268f Retry-After: - '20' Strict-Transport-Security: @@ -1186,7 +1082,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1204,11 +1100,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1218,17 +1114,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:44:54 GMT + - Wed, 01 Jul 2026 17:56:16 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 80746861-c59f-4163-871c-eaa576782501 + - c6067758-66ea-428c-8bc2-e097d7fbfa66 Retry-After: - '20' Strict-Transport-Security: @@ -1238,7 +1134,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1256,11 +1152,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1270,17 +1166,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:45:16 GMT + - Wed, 01 Jul 2026 17:56:38 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 358144a7-b699-40d6-b965-3bcaf800e87b + - 1efef59a-fcc2-4f8a-b9a8-513d20975ff2 Retry-After: - '20' Strict-Transport-Security: @@ -1290,7 +1186,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1308,11 +1204,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1322,17 +1218,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:45:37 GMT + - Wed, 01 Jul 2026 17:57:01 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 40eed110-1c6a-45bb-9acc-316c9bb05954 + - 8be6a1de-c0e9-414d-b658-8cc601b83ef2 Retry-After: - '20' Strict-Transport-Security: @@ -1342,7 +1238,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1360,11 +1256,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1374,17 +1270,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:45:59 GMT + - Wed, 01 Jul 2026 17:57:23 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - d698fbe6-9c16-401d-a218-fc0e2648130c + - 49f28309-9bed-4e8e-a569-1aabdab3038e Retry-After: - '20' Strict-Transport-Security: @@ -1394,7 +1290,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1412,11 +1308,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1426,17 +1322,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:46:20 GMT + - Wed, 01 Jul 2026 17:57:45 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 6c10cf50-d726-4e23-bd30-c18319ae90fd + - 3ce9774e-d1a0-4792-ba71-7fec00aae46c Retry-After: - '20' Strict-Transport-Security: @@ -1446,7 +1342,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1464,11 +1360,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1478,17 +1374,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:46:41 GMT + - Wed, 01 Jul 2026 17:58:06 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 34387c64-4f1a-405b-8205-5f86fbf157f2 + - b08b285e-e411-418e-b3ad-5714b4d9344d Retry-After: - '20' Strict-Transport-Security: @@ -1498,7 +1394,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1516,11 +1412,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1530,17 +1426,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:47:03 GMT + - Wed, 01 Jul 2026 17:58:29 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 5aa61179-a343-4a78-b871-8b845b80ffe4 + - 4328112d-88c8-4a1f-a927-a67bc034f9de Retry-After: - '20' Strict-Transport-Security: @@ -1550,7 +1446,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1568,11 +1464,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1582,17 +1478,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:47:24 GMT + - Wed, 01 Jul 2026 17:58:51 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 02dbef25-4123-4d09-9b4f-f21dd86ebdca + - 889b363c-495d-41dd-820d-83e6d22180d0 Retry-After: - '20' Strict-Transport-Security: @@ -1602,7 +1498,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1620,11 +1516,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1634,17 +1530,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:47:46 GMT + - Wed, 01 Jul 2026 17:59:13 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - cd24a837-4a26-4d0e-9280-d08d516e5398 + - 0c3269bf-63f4-44e2-ba37-8c826366cdf5 Retry-After: - '20' Strict-Transport-Security: @@ -1654,7 +1550,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1672,11 +1568,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1686,17 +1582,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:48:07 GMT + - Wed, 01 Jul 2026 17:59:35 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 420bd32f-c094-427f-be2e-24b4d077ef09 + - 5dac908d-59b9-4795-b525-098dd8f05f42 Retry-After: - '20' Strict-Transport-Security: @@ -1706,7 +1602,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1724,11 +1620,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:43:06.8842031", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1738,17 +1634,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '122' + - '124' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:48:29 GMT + - Wed, 01 Jul 2026 17:59:58 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 Pragma: - no-cache RequestId: - - 12afa602-5efa-4218-a0ea-3d3ea652425e + - d9947eef-6784-4611-9c4c-cfd060d76c38 Retry-After: - '20' Strict-Transport-Security: @@ -1758,7 +1654,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1776,11 +1672,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:43:06.8842031", - "lastUpdatedTimeUtc": "2026-07-01T08:48:46.2707374", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T17:54:47.1384436", + "lastUpdatedTimeUtc": "2026-07-01T18:00:10.597748", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -1790,17 +1686,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '132' + - '134' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:48:50 GMT + - Wed, 01 Jul 2026 18:00:19 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778/result Pragma: - no-cache RequestId: - - cc931811-bdbb-404d-a25c-f3bd36f936e9 + - 8de34462-ae33-4ca8-83d6-008e0f4bc1e1 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1808,7 +1704,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 947dd0c3-7c84-4771-8c71-6bd660675d45 + - ff537f78-db3c-43ae-ac99-5228e5e8a778 status: code: 200 message: OK @@ -1826,11 +1722,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/947dd0c3-7c84-4771-8c71-6bd660675d45/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778/result response: body: - string: '{"id": "85a4300b-d48f-404f-8c83-0c94eba25f9e", "type": "SQLDatabase", - "displayName": "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}' + string: '{"id": "5504b9ad-e178-49e5-bb07-03509bf9ba3a", "type": "SQLDatabase", + "displayName": "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}' headers: Access-Control-Expose-Headers: - RequestId @@ -1841,11 +1737,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 01 Jul 2026 08:48:51 GMT + - Wed, 01 Jul 2026 18:00:20 GMT Pragma: - no-cache RequestId: - - c1296cff-72f7-49a2-aaec-23405e8e0d1b + - 978be3de-4a27-4d52-9b71-8080f294cb3a Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -1875,7 +1771,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -1887,15 +1783,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3499' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:48:52 GMT + - Wed, 01 Jul 2026 18:00:22 GMT Pragma: - no-cache RequestId: - - 14a9c5a0-2d0f-4198-b207-9c8ca6fd7c92 + - f0ed12a5-2387-4869-9d7d-60a107221952 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1923,17 +1819,17 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: - string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "cb3d8f5c-fb77-49a6-b145-195790a0e09b", "type": "SQLEndpoint", "displayName": - "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "85a4300b-d48f-404f-8c83-0c94eba25f9e", "type": "SQLDatabase", "displayName": - "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "233d6650-1adf-4848-9b83-a579584736df", "type": "SQLEndpoint", "displayName": + "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "5504b9ad-e178-49e5-bb07-03509bf9ba3a", "type": "SQLDatabase", "displayName": + "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -1942,15 +1838,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '277' + - '276' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:48:53 GMT + - Wed, 01 Jul 2026 18:00:22 GMT Pragma: - no-cache RequestId: - - 9fa241db-d1c9-49a0-9b05-6c65405e0de0 + - 63ee1c74-b052-43d4-a72b-dd73157e2d7b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1978,16 +1874,17 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases/85a4300b-d48f-404f-8c83-0c94eba25f9e + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases/5504b9ad-e178-49e5-bb07-03509bf9ba3a response: body: - string: '{"id": "85a4300b-d48f-404f-8c83-0c94eba25f9e", "type": "SQLDatabase", - "displayName": "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", - "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433;Initial - Catalog=fabcli000002-85a4300b-d48f-404f-8c83-0c94eba25f9e;Multiple Active + string: '{"id": "5504b9ad-e178-49e5-bb07-03509bf9ba3a", "type": "SQLDatabase", + "displayName": "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-uvzix2ltvpdexegcyfq63gzt6y.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a;Multiple Active Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", - "connectionString": "mock_connection_string", "databaseName": "fabcli000002-85a4300b-d48f-404f-8c83-0c94eba25f9e", - "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433", + "connectionString": "mock_connection_string", "databaseName": "fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-uvzix2ltvpdexegcyfq63gzt6y.database.fabric.microsoft.com,1433", + "earliestRestorePoint": "2026-07-01T17:59:24Z", "latestRestorePoint": "2026-07-01T17:59:24Z", "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Access-Control-Expose-Headers: @@ -1997,17 +1894,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '430' + - '468' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:48:54 GMT + - Wed, 01 Jul 2026 18:00:23 GMT ETag: - '""' Pragma: - no-cache RequestId: - - ebb9be72-33de-4625-af63-dd5d4a910c6b + - 9e65bce8-04f8-4064-80b3-c598964877a1 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2037,7 +1934,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/85a4300b-d48f-404f-8c83-0c94eba25f9e/getDefinition + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/5504b9ad-e178-49e5-bb07-03509bf9ba3a/getDefinition response: body: string: 'null' @@ -2053,13 +1950,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:48:55 GMT + - Wed, 01 Jul 2026 18:00:24 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 Pragma: - no-cache RequestId: - - fa3f217f-1653-4b1f-8914-6da76afc71a8 + - 7ec1e8cf-7427-4493-a6b1-9bba6149af33 Retry-After: - '20' Strict-Transport-Security: @@ -2073,7 +1970,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - fb52f94b-4819-4344-a85c-37327177717e + - c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 status: code: 202 message: Accepted @@ -2091,63 +1988,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:48:55.2583921", - "lastUpdatedTimeUtc": "2026-07-01T08:48:55.2583921", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '124' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:49:15 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e - Pragma: - - no-cache - RequestId: - - 23c34ef7-8a53-401a-a14c-82a9cad6561d - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - fb52f94b-4819-4344-a85c-37327177717e - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:48:55.2583921", - "lastUpdatedTimeUtc": "2026-07-01T08:48:55.2583921", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T18:00:25.0663203", + "lastUpdatedTimeUtc": "2026-07-01T18:00:25.0663203", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -2157,17 +2002,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '121' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:49:38 GMT + - Wed, 01 Jul 2026 18:00:46 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 Pragma: - no-cache RequestId: - - a2f337ec-eda9-433d-8c38-8d9de5bfce88 + - 3d7f1f5d-3ac6-4d27-94dc-8a3f9dea23fd Retry-After: - '20' Strict-Transport-Security: @@ -2177,7 +2022,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - fb52f94b-4819-4344-a85c-37327177717e + - c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 status: code: 200 message: OK @@ -2195,11 +2040,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:48:55.2583921", - "lastUpdatedTimeUtc": "2026-07-01T08:49:54.3918114", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T18:00:25.0663203", + "lastUpdatedTimeUtc": "2026-07-01T18:00:54.3809742", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -2209,17 +2054,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '133' + - '132' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:49:58 GMT + - Wed, 01 Jul 2026 18:01:08 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7/result Pragma: - no-cache RequestId: - - 021519c7-4c64-41db-85bf-17354bf80c6c + - eb853bfd-8d0b-449e-9ced-6b376ceea8df Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2227,7 +2072,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - fb52f94b-4819-4344-a85c-37327177717e + - c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 status: code: 200 message: OK @@ -2245,11 +2090,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/fb52f94b-4819-4344-a85c-37327177717e/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7/result response: body: string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000002.dacpac", - "payload": "UEsDBBQAAAAIADhG4VzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5Y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ogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", "payloadType": "InlineBase64"}]}}' headers: @@ -2262,11 +2107,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 01 Jul 2026 08:49:59 GMT + - Wed, 01 Jul 2026 18:01:10 GMT Pragma: - no-cache RequestId: - - 14203d4a-1ca9-4547-90c7-d1cae1b4d9fe + - 45d35136-f440-4e63-b109-ee139fe2a09c Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -2292,7 +2137,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/85a4300b-d48f-404f-8c83-0c94eba25f9e/connections + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/5504b9ad-e178-49e5-bb07-03509bf9ba3a/connections response: body: string: '{"value": []}' @@ -2308,11 +2153,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:50:00 GMT + - Wed, 01 Jul 2026 18:01:10 GMT Pragma: - no-cache RequestId: - - ef882ded-e04b-4d17-9340-219868e70cdb + - ac99791c-d8d4-445d-a7fa-3d48100a0425 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2344,7 +2189,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -2356,15 +2201,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3499' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:50:01 GMT + - Wed, 01 Jul 2026 18:01:11 GMT Pragma: - no-cache RequestId: - - 8604f582-3299-4b2d-a132-6deb7559f692 + - 9518c0a0-a6e6-4136-87a7-ed94e89e4b15 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2392,17 +2237,17 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: - string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "cb3d8f5c-fb77-49a6-b145-195790a0e09b", "type": "SQLEndpoint", "displayName": - "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "85a4300b-d48f-404f-8c83-0c94eba25f9e", "type": "SQLDatabase", "displayName": - "fabcli000002", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "233d6650-1adf-4848-9b83-a579584736df", "type": "SQLEndpoint", "displayName": + "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "5504b9ad-e178-49e5-bb07-03509bf9ba3a", "type": "SQLDatabase", "displayName": + "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -2411,15 +2256,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '277' + - '276' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:50:02 GMT + - Wed, 01 Jul 2026 18:01:12 GMT Pragma: - no-cache RequestId: - - f1c955e1-9faa-4e9e-be6b-6c61fabce118 + - 4f2f8198-7a8a-426a-9889-ab6f1fbff3e7 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2449,7 +2294,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/85a4300b-d48f-404f-8c83-0c94eba25f9e + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/5504b9ad-e178-49e5-bb07-03509bf9ba3a response: body: string: '' @@ -2465,11 +2310,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 01 Jul 2026 08:50:03 GMT + - Wed, 01 Jul 2026 18:01:12 GMT Pragma: - no-cache RequestId: - - 6b47198f-e29b-438b-85dd-0ad5356200f5 + - 3d164a7d-0c1f-4e70-91df-d36f3ed7b388 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2501,7 +2346,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -2513,15 +2358,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3499' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:50:04 GMT + - Wed, 01 Jul 2026 18:01:13 GMT Pragma: - no-cache RequestId: - - 5a627020-7019-40d5-b23b-3d12b0ac1482 + - ce909049-561a-4eaf-bacd-821695625354 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2549,13 +2394,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: - string: '{"value": [{"id": "dda276f3-4de1-425a-80b3-af0f642e062d", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "35de8b81-7021-46df-8005-99dc692d4512", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' + string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, + {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -2568,11 +2413,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:50:03 GMT + - Wed, 01 Jul 2026 18:01:14 GMT Pragma: - no-cache RequestId: - - 39068b65-7f56-45c2-901f-1a978d095e0a + - d84b843d-8284-4b9e-b084-e5ee9cf154af Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2602,7 +2447,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/35de8b81-7021-46df-8005-99dc692d4512 + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/3853ea13-13a1-42e9-a823-ad8d78666012 response: body: string: '' @@ -2618,11 +2463,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 01 Jul 2026 08:50:05 GMT + - Wed, 01 Jul 2026 18:01:14 GMT Pragma: - no-cache RequestId: - - bff6f284-cab6-41eb-b0e8-4d235982316f + - 465ff7f7-f6e1-4d25-827d-bda23afc71e6 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2650,17 +2495,17 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases/restorableDeletedDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases/restorableDeletedDatabases response: body: - string: '{"value": [{"displayName": "fabcli000001-35de8b81-7021-46df-8005-99dc692d4512", - "properties": {"restorableDeletedDatabaseName": "fabcli000001-35de8b81-7021-46df-8005-99dc692d4512,134273694076170000", - "earliestRestorePoint": "2026-07-01T08:40:48.0000000Z", "latestRestorePoint": - "2026-07-01T08:50:07.6170000Z", "deletionTimestamp": "2026-07-01T08:50:07.6170000Z"}}, - {"displayName": "fabcli000002-85a4300b-d48f-404f-8c83-0c94eba25f9e", "properties": - {"restorableDeletedDatabaseName": "fabcli000002-85a4300b-d48f-404f-8c83-0c94eba25f9e,134273694057800000", - "earliestRestorePoint": "2026-07-01T08:50:05.7800000Z", "latestRestorePoint": - "2026-07-01T08:50:05.7800000Z", "deletionTimestamp": "2026-07-01T08:50:05.7800000Z"}}]}' + string: '{"value": [{"displayName": "fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a", + "properties": {"restorableDeletedDatabaseName": "fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a,134274024766330000", + "earliestRestorePoint": "2026-07-01T17:59:24.0000000Z", "latestRestorePoint": + "2026-07-01T18:01:16.6330000Z", "deletionTimestamp": "2026-07-01T18:01:16.6330000Z"}}, + {"displayName": "fabcli000001-3853ea13-13a1-42e9-a823-ad8d78666012", "properties": + {"restorableDeletedDatabaseName": "fabcli000001-3853ea13-13a1-42e9-a823-ad8d78666012,134274024775530000", + "earliestRestorePoint": "2026-07-01T17:51:15.0000000Z", "latestRestorePoint": + "2026-07-01T18:01:17.5530000Z", "deletionTimestamp": "2026-07-01T18:01:17.5530000Z"}}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -2669,9 +2514,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:53:20 GMT + - Wed, 01 Jul 2026 18:02:20 GMT RequestId: - - 097f64a4-d800-4274-ad34-9125d8b4f025 + - 034226f2-2de7-47de-9855-9d25eb3d292b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2703,7 +2548,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", + "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -2715,15 +2560,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3499' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:54:31 GMT + - Wed, 01 Jul 2026 18:02:21 GMT Pragma: - no-cache RequestId: - - 908ae6aa-eddc-44a5-856d-1ce4ebca2a7b + - 6d2798af-cc87-4920-9f76-30ee30e5d99e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2751,7 +2596,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: string: '{"value": []}' @@ -2767,11 +2612,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:54:31 GMT + - Wed, 01 Jul 2026 18:02:21 GMT Pragma: - no-cache RequestId: - - d1da16c4-3447-436a-977c-2c58c7708e81 + - ce65dfcd-c846-4bd8-8cd2-287c4c4f1299 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2799,7 +2644,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items response: body: string: '{"value": []}' @@ -2815,11 +2660,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:54:32 GMT + - Wed, 01 Jul 2026 18:02:23 GMT Pragma: - no-cache RequestId: - - 8c596d3a-8f17-4e80-85f9-99fc22c82d79 + - c67af581-4f45-421f-903f-5837d50a3fe3 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2836,8 +2681,8 @@ interactions: - request: body: '{"displayName": "fabcli000003", "type": "SQLDatabase", "folderId": null, "creationPayload": {"creationMode": "RestoreDeletedDatabase", "restorableDeletedDatabaseName": - "fabcli000001-35de8b81-7021-46df-8005-99dc692d4512,134273694076170000", "restorePointInTime": - "2026-07-01T08:40:48Z"}}' + "fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a,134274024766330000", "restorePointInTime": + "2026-07-01T17:51:15Z"}}' headers: Accept: - '*/*' @@ -2852,35 +2697,31 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases response: body: - string: 'null' + string: '{"requestId": "ed4db342-ac8c-45bc-a202-c972da02a8c9", "errorCode": + "SqlDbNative.FleetManagement.InvalidRestoreFromTime", "message": "Restore + from time 7/1/2026 5:51:15 PM is invalid. Expected between earliest restore + time 7/1/2026 5:59:24 PM and latest restore time 7/1/2026 6:01:16 PM.", "isRetriable": + false}' headers: Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,ETag,x-ms-operation-id + - RequestId Cache-Control: - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '24' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 08:54:35 GMT - ETag: - - '""' - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 + - Wed, 01 Jul 2026 18:02:24 GMT Pragma: - no-cache RequestId: - - bf7c1ba8-dfcd-4cb3-8e61-255b12fdc9e9 - Retry-After: - - '20' + - ed4db342-ac8c-45bc-a202-c972da02a8c9 Strict-Transport-Security: - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked X-Content-Type-Options: - nosniff X-Frame-Options: @@ -2889,1451 +2730,9 @@ interactions: - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:54:55 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - b688e77d-fe82-4c1b-97be-2f92928daa9b - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 + x-ms-public-api-error-code: + - SqlDbNative.FleetManagement.InvalidRestoreFromTime status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:55:17 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - 52bb9324-4aa8-4ddf-aa1c-6ac83017d312 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:55:39 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - fad83e3d-d4ab-4cd0-a67f-2c6ecfed3fbe - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:56:00 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - f2c62abb-a611-445b-af10-b33df62f467c - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:56:22 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - 119669b0-874d-47bf-9914-1c5ca928d118 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:56:43 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - 6e46549b-2d5f-4bb5-b232-b147217cbb08 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:57:05 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - 7a565fae-00df-41a9-9ee9-2f3f8c98751f - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:57:27 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - 2f3099b2-bdc5-482d-b6b2-2f40c59ba916 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:57:48 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - a2086fe8-011c-4bc5-8ccc-8375df20f54d - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:58:09 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - d7a315c9-d581-4b88-a9ed-a020f91cbf4e - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:58:31 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - 6a7c6f21-5a2a-4f8c-a097-94c729c27011 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:58:52 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - f1157605-8059-4a6a-b8c9-c154217d479e - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:59:14 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - 1d21f7ce-7bf6-4ff5-b9bb-a70f44911f7d - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:59:36 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - c50698f5-bc68-4f6f-9635-cec39bed00c9 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T08:54:33.7722069", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 08:59:57 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - Pragma: - - no-cache - RequestId: - - 118f460c-4568-47e0-b08c-29e118e76bd4 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7 - response: - body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T08:54:33.7722069", - "lastUpdatedTimeUtc": "2026-07-01T09:00:00.6252576", "percentComplete": 100, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '134' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:00:18 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7/result - Pragma: - - no-cache - RequestId: - - 92734799-6a43-46e6-96cf-13488a95909c - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - a8731715-45c1-4d86-b9dd-e0c19120dda7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/a8731715-45c1-4d86-b9dd-e0c19120dda7/result - response: - body: - string: '{"id": "7e2a9ba3-20d3-4328-82eb-704e84ef973e", "type": "SQLDatabase", - "displayName": "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Wed, 01 Jul 2026 09:00:19 GMT - Pragma: - - no-cache - RequestId: - - d535cf3a-d40c-4a0c-aa91-cb2397af56ac - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", - "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", - "capacityRegion": "Central US"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '3499' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:00:25 GMT - Pragma: - - no-cache - RequestId: - - 2ac0a3eb-aca6-4922-80b3-80f24c3c930a - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items - response: - body: - string: '{"value": [{"id": "6026eded-9875-4e66-aaff-8f7c0142adad", "type": "SQLEndpoint", - "displayName": "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "7e2a9ba3-20d3-4328-82eb-704e84ef973e", "type": "SQLDatabase", "displayName": - "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '213' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:00:26 GMT - Pragma: - - no-cache - RequestId: - - 0cf36dc7-0f4c-451d-8200-231845d94dc9 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/sqlDatabases/7e2a9ba3-20d3-4328-82eb-704e84ef973e - response: - body: - string: '{"id": "7e2a9ba3-20d3-4328-82eb-704e84ef973e", "type": "SQLDatabase", - "displayName": "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", - "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433;Initial - Catalog=fabcli000003-7e2a9ba3-20d3-4328-82eb-704e84ef973e;Multiple Active - Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", - "connectionString": "mock_connection_string", "databaseName": "fabcli000003-7e2a9ba3-20d3-4328-82eb-704e84ef973e", - "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-aj7x46h6xheuzidn6pcsz4zf7y.database.fabric.microsoft.com,1433", - "earliestRestorePoint": "2026-07-01T08:59:10Z", "latestRestorePoint": "2026-07-01T08:59:10Z", - "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' - headers: - Access-Control-Expose-Headers: - - RequestId,ETag - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '468' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:00:28 GMT - ETag: - - '""' - Pragma: - - no-cache - RequestId: - - 68ec8c8d-133e-40b7-993f-3485ca5ad56f - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/7e2a9ba3-20d3-4328-82eb-704e84ef973e/getDefinition - response: - body: - string: 'null' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '24' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:00:28 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23 - Pragma: - - no-cache - RequestId: - - f5e8f63a-c581-4f61-bbc5-b80637207f49 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - x-ms-operation-id: - - 2630456d-1a94-46f3-989e-eb36ddb5ed23 - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23 - response: - body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T09:00:28.8798549", - "lastUpdatedTimeUtc": "2026-07-01T09:00:28.8798549", "percentComplete": null, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,Retry-After,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:00:49 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23 - Pragma: - - no-cache - RequestId: - - d82400ba-0aa1-4a9f-be9e-2c69b11ff7b1 - Retry-After: - - '20' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - 2630456d-1a94-46f3-989e-eb36ddb5ed23 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23 - response: - body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T09:00:28.8798549", - "lastUpdatedTimeUtc": "2026-07-01T09:00:57.8389345", "percentComplete": 100, - "error": null}' - headers: - Access-Control-Expose-Headers: - - RequestId,Location,x-ms-operation-id - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '132' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:01:11 GMT - Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23/result - Pragma: - - no-cache - RequestId: - - 48abadd9-6f28-46e0-b81c-54d212063153 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - x-ms-operation-id: - - 2630456d-1a94-46f3-989e-eb36ddb5ed23 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2630456d-1a94-46f3-989e-eb36ddb5ed23/result - response: - body: - string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000003.dacpac", - "payload": "UEsDBBQAAAAIABtI4VzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDhKWk2Wi3tw5Di0ChmWHPpNcHrtF16CcK3XHnxuTffF+vGLWXVc0kMvP1E5UqGoSfQuJHqBhw9rIi9VuNZstvtFyaw1lwjUCN2MezICy0kZlt1QnB4EyqZce9IvnbgnO9qqeqIRpIbU05hPq98wi8oJNYFdSlX3L6Nek7IveFNJjepCgMmzIazNtae2X/IRnKLKd5TBhnZmlNcEBzv24j2jxvnKj5gFNU5EfiiJc5UZBDSkccELe2tE+VJm3aoPJoqTkkG/U92EDOWAL8H5C9BRUJ4CNQpt7orxL8+yAsKvJcodZDpjVFrYs5CtpSwlD3lJKqplp7+KSx0ZTCLH0EMvGEo94a3tbxmjPwa0cHq2yXxD2OGdmmhm4SeZfbUFTupmjmqMyy2v46itUPiO4H4wEdieb4OwpUwMfhqDkOb8ZXUT2fHZobvYlJF6dQcHMn3vTuO0B9GuQHKEGbOAWlmJlfTaQ6oblQigSMbe8nQ55q+3Q8OpZKjGCG9MJgYqe8hX1llDfAfZKKcWF6wm4/PU7TqtFlzqavk9w+CFivawBiVhC2QvwNsOnueOB9g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iMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", - "payloadType": "InlineBase64"}]}}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Wed, 01 Jul 2026 09:01:12 GMT - Pragma: - - no-cache - RequestId: - - f87037af-b55f-42c5-b971-e9fe07e11a13 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/7e2a9ba3-20d3-4328-82eb-704e84ef973e/connections - response: - body: - string: '{"value": []}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '32' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:01:13 GMT - Pragma: - - no-cache - RequestId: - - 0db9c450-821d-4123-95cd-d2528fb38d2c - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - 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": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe", - "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", - "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", - "capacityRegion": "Central US"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '3499' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:01:16 GMT - Pragma: - - no-cache - RequestId: - - 0eb0aa3f-dac4-4e5d-bcde-1eb7f3c0a298 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items - response: - body: - string: '{"value": [{"id": "6026eded-9875-4e66-aaff-8f7c0142adad", "type": "SQLEndpoint", - "displayName": "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}, - {"id": "7e2a9ba3-20d3-4328-82eb-704e84ef973e", "type": "SQLDatabase", "displayName": - "fabcli000003", "description": "", "workspaceId": "787e7f02-b9fe-4cc9-a06d-f3c52cf325fe"}]}' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '213' - Content-Type: - - application/json; charset=utf-8 - Date: - - Wed, 01 Jul 2026 09:01:16 GMT - Pragma: - - no-cache - RequestId: - - ff3d04e1-7327-40ce-bd1e-1f8a57a21486 - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - ms-fabric-cli-test/1.6.1 - method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/787e7f02-b9fe-4cc9-a06d-f3c52cf325fe/items/7e2a9ba3-20d3-4328-82eb-704e84ef973e - response: - body: - string: '' - headers: - Access-Control-Expose-Headers: - - RequestId - Cache-Control: - - no-store, must-revalidate, no-cache - Content-Encoding: - - gzip - Content-Length: - - '0' - Content-Type: - - application/octet-stream - Date: - - Wed, 01 Jul 2026 09:01:17 GMT - Pragma: - - no-cache - RequestId: - - cd5971ae-9d84-4312-a1b6-16679def6fbd - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - deny - home-cluster-uri: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ - request-redirected: - - 'true' - status: - code: 200 - message: OK + code: 400 + message: Bad Request version: 1 diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml index 09fac2cc3..0f727e788 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_with_creation_payload_success.yaml @@ -17,7 +17,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", + "My workspace", "description": "", "type": "Personal"}, {"id": "84a2e6eb-afc1-4f20-afe8-748433d718e7", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -29,15 +29,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3343' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:51:37 GMT + - Wed, 01 Jul 2026 17:39:21 GMT Pragma: - no-cache RequestId: - - 2ee5dffc-27cb-4a9d-ba7f-20bc115a9d28 + - 57f1ee43-915b-403c-8afb-6c7e608acc0c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -65,7 +65,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items + uri: https://api.fabric.microsoft.com/v1/workspaces/84a2e6eb-afc1-4f20-afe8-748433d718e7/items response: body: string: '{"value": []}' @@ -81,11 +81,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:51:37 GMT + - Wed, 01 Jul 2026 17:39:21 GMT Pragma: - no-cache RequestId: - - b61693e2-7863-42e4-b7e3-0b9dc3b608b4 + - 0df4ca7e-a271-419f-be56-459489a1c20e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -113,7 +113,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items + uri: https://api.fabric.microsoft.com/v1/workspaces/84a2e6eb-afc1-4f20-afe8-748433d718e7/items response: body: string: '{"value": []}' @@ -129,11 +129,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:51:38 GMT + - Wed, 01 Jul 2026 17:39:22 GMT Pragma: - no-cache RequestId: - - adafedeb-fd8f-4969-9c0a-8319dbc0937f + - 0ca06781-4d6c-4de6-8b62-7dd9c93fd218 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -165,7 +165,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/sqlDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/84a2e6eb-afc1-4f20-afe8-748433d718e7/sqlDatabases response: body: string: 'null' @@ -181,15 +181,15 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:51:41 GMT + - Wed, 01 Jul 2026 17:39:25 GMT ETag: - '""' Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1cd751f-bc00-47a9-b74b-94b7285c2f3b + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2133168e-f4c0-4023-b4c5-bb0953022d1b Pragma: - no-cache RequestId: - - 12a0c4a9-89f8-4745-8873-a1138a88eeb4 + - 1645fd8a-9486-4e3c-b0d0-320e7f27b41d Retry-After: - '20' Strict-Transport-Security: @@ -203,7 +203,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - b1cd751f-bc00-47a9-b74b-94b7285c2f3b + - 2133168e-f4c0-4023-b4c5-bb0953022d1b status: code: 202 message: Accepted @@ -221,11 +221,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1cd751f-bc00-47a9-b74b-94b7285c2f3b + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2133168e-f4c0-4023-b4c5-bb0953022d1b response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-06-28T16:51:39.2107945", - "lastUpdatedTimeUtc": "2026-06-28T16:52:00.3104391", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T17:39:23.9814037", + "lastUpdatedTimeUtc": "2026-07-01T17:39:41.9476184", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -235,17 +235,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '133' + - '132' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:03 GMT + - Wed, 01 Jul 2026 17:39:47 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1cd751f-bc00-47a9-b74b-94b7285c2f3b/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2133168e-f4c0-4023-b4c5-bb0953022d1b/result Pragma: - no-cache RequestId: - - 0fae950f-cbc9-48bc-9f78-4d65ab80ce6d + - 9aaca36c-4284-4774-81fd-ae2c9985c0a0 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -253,7 +253,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - b1cd751f-bc00-47a9-b74b-94b7285c2f3b + - 2133168e-f4c0-4023-b4c5-bb0953022d1b status: code: 200 message: OK @@ -271,11 +271,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/b1cd751f-bc00-47a9-b74b-94b7285c2f3b/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2133168e-f4c0-4023-b4c5-bb0953022d1b/result response: body: - string: '{"id": "53fcabd0-b0dd-4e96-874f-513916e18e7d", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38"}' + string: '{"id": "65f6221e-66b5-4753-9a90-083998b2e95b", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "84a2e6eb-afc1-4f20-afe8-748433d718e7"}' headers: Access-Control-Expose-Headers: - RequestId @@ -286,11 +286,11 @@ interactions: Content-Type: - application/json Date: - - Sun, 28 Jun 2026 16:52:04 GMT + - Wed, 01 Jul 2026 17:39:47 GMT Pragma: - no-cache RequestId: - - c1deb79f-d6b1-4b54-b1c3-608211d286b6 + - e4f08354-d6af-4912-affa-e232a92c5300 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -320,7 +320,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", + "My workspace", "description": "", "type": "Personal"}, {"id": "84a2e6eb-afc1-4f20-afe8-748433d718e7", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -332,15 +332,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3343' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:05 GMT + - Wed, 01 Jul 2026 17:39:49 GMT Pragma: - no-cache RequestId: - - 6b019c12-1c4a-4b1e-953a-441c33b4faa9 + - 3124da00-fb0b-4ef0-adf5-6fc442ccf18e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -368,11 +368,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items + uri: https://api.fabric.microsoft.com/v1/workspaces/84a2e6eb-afc1-4f20-afe8-748433d718e7/items response: body: - string: '{"value": [{"id": "53fcabd0-b0dd-4e96-874f-513916e18e7d", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38"}]}' + string: '{"value": [{"id": "65f6221e-66b5-4753-9a90-083998b2e95b", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "84a2e6eb-afc1-4f20-afe8-748433d718e7"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -381,15 +381,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '171' + - '172' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:05 GMT + - Wed, 01 Jul 2026 17:39:49 GMT Pragma: - no-cache RequestId: - - 6a3dc57f-d739-4247-96cd-dad7ca76149e + - d409422d-5e3e-4007-adaf-643e2f72aa46 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -417,16 +417,16 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/sqlDatabases/53fcabd0-b0dd-4e96-874f-513916e18e7d + uri: https://api.fabric.microsoft.com/v1/workspaces/84a2e6eb-afc1-4f20-afe8-748433d718e7/sqlDatabases/65f6221e-66b5-4753-9a90-083998b2e95b response: body: - string: '{"id": "53fcabd0-b0dd-4e96-874f-513916e18e7d", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38", - "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-h3c72r7wn43unerksongzexlha.database.fabric.microsoft.com,1433;Initial - Catalog=fabcli000001-53fcabd0-b0dd-4e96-874f-513916e18e7d;Multiple Active + string: '{"id": "65f6221e-66b5-4753-9a90-083998b2e95b", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "84a2e6eb-afc1-4f20-afe8-748433d718e7", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-5ptkfbgbv4qe7l7ioscdhvyy44.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000001-65f6221e-66b5-4753-9a90-083998b2e95b;Multiple Active Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", - "connectionString": "mock_connection_string", "databaseName": "fabcli000001-53fcabd0-b0dd-4e96-874f-513916e18e7d", - "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-h3c72r7wn43unerksongzexlha.database.fabric.microsoft.com,1433", + "connectionString": "mock_connection_string", "databaseName": "fabcli000001-65f6221e-66b5-4753-9a90-083998b2e95b", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-5ptkfbgbv4qe7l7ioscdhvyy44.database.fabric.microsoft.com,1433", "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Access-Control-Expose-Headers: @@ -436,17 +436,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '430' + - '429' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:06 GMT + - Wed, 01 Jul 2026 17:39:51 GMT ETag: - '""' Pragma: - no-cache RequestId: - - b40aecd3-4758-4ef6-82ea-c33cc8f374ca + - 0393f9f8-006c-496a-8769-6df7eaedb01b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -476,7 +476,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items/53fcabd0-b0dd-4e96-874f-513916e18e7d/getDefinition + uri: https://api.fabric.microsoft.com/v1/workspaces/84a2e6eb-afc1-4f20-afe8-748433d718e7/items/65f6221e-66b5-4753-9a90-083998b2e95b/getDefinition response: body: string: 'null' @@ -492,13 +492,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:07 GMT + - Wed, 01 Jul 2026 17:39:51 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/69250c24-c792-4f35-965e-3d5a3aa9cceb Pragma: - no-cache RequestId: - - c6b25ac8-da93-49b9-aaef-2f40a3e4481e + - 3bd7c0c0-c288-479e-a3e4-ad74dd174b93 Retry-After: - '20' Strict-Transport-Security: @@ -512,7 +512,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - d943971c-0985-4387-9863-02eea4f17fea + - 69250c24-c792-4f35-965e-3d5a3aa9cceb status: code: 202 message: Accepted @@ -530,11 +530,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/69250c24-c792-4f35-965e-3d5a3aa9cceb response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-06-28T16:52:07.8934668", - "lastUpdatedTimeUtc": "2026-06-28T16:52:07.8934668", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:39:51.877684", + "lastUpdatedTimeUtc": "2026-07-01T17:39:51.877684", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -544,17 +544,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '123' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:28 GMT + - Wed, 01 Jul 2026 17:40:13 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/69250c24-c792-4f35-965e-3d5a3aa9cceb Pragma: - no-cache RequestId: - - 7fded92c-3b96-47fc-91a1-346c9a1f9f5d + - 611d938c-ff21-4f39-9465-e5909287f381 Retry-After: - '20' Strict-Transport-Security: @@ -564,7 +564,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - d943971c-0985-4387-9863-02eea4f17fea + - 69250c24-c792-4f35-965e-3d5a3aa9cceb status: code: 200 message: OK @@ -582,11 +582,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/69250c24-c792-4f35-965e-3d5a3aa9cceb response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-06-28T16:52:07.8934668", - "lastUpdatedTimeUtc": "2026-06-28T16:52:46.8430079", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T17:39:51.877684", + "lastUpdatedTimeUtc": "2026-07-01T17:40:30.8074019", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -596,17 +596,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '132' + - '133' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:50 GMT + - Wed, 01 Jul 2026 17:40:35 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/69250c24-c792-4f35-965e-3d5a3aa9cceb/result Pragma: - no-cache RequestId: - - 0899b748-d6f0-4c62-9d2b-7cd7a9eacf9d + - 8dadb637-76e0-40d2-ba2b-ed8cc3e9df9a Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -614,7 +614,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - d943971c-0985-4387-9863-02eea4f17fea + - 69250c24-c792-4f35-965e-3d5a3aa9cceb status: code: 200 message: OK @@ -632,11 +632,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/d943971c-0985-4387-9863-02eea4f17fea/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/69250c24-c792-4f35-965e-3d5a3aa9cceb/result response: body: string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000001.dacpac", - "payload": "UEsDBBQAAAAIAJGG3FzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhI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ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNRTERhdGFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", "payloadType": "InlineBase64"}]}}' headers: @@ -649,11 +649,11 @@ interactions: Content-Type: - application/json Date: - - Sun, 28 Jun 2026 16:52:51 GMT + - Wed, 01 Jul 2026 17:40:36 GMT Pragma: - no-cache RequestId: - - 5dff57a9-fabd-42ba-aa6d-a2a9b3b72828 + - 1e6574ce-ddfa-4710-8c60-199eb2280d17 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -679,7 +679,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items/53fcabd0-b0dd-4e96-874f-513916e18e7d/connections + uri: https://api.fabric.microsoft.com/v1/workspaces/84a2e6eb-afc1-4f20-afe8-748433d718e7/items/65f6221e-66b5-4753-9a90-083998b2e95b/connections response: body: string: '{"value": []}' @@ -695,11 +695,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:51 GMT + - Wed, 01 Jul 2026 17:40:37 GMT Pragma: - no-cache RequestId: - - aa532c03-9622-4b5e-8b4c-1f1ea64551f3 + - 85e4d2fe-1234-47ca-b942-408491b95d06 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -731,7 +731,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "47fdc53e-6ff6-4637-922a-939a6c92eb38", + "My workspace", "description": "", "type": "Personal"}, {"id": "84a2e6eb-afc1-4f20-afe8-748433d718e7", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -743,15 +743,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3343' + - '3501' Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:53 GMT + - Wed, 01 Jul 2026 17:40:38 GMT Pragma: - no-cache RequestId: - - 1e84a503-9e35-4987-9940-461162d2e6be + - 51edbc9a-fe0d-49de-8d17-b98dfe4d9723 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -779,13 +779,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items + uri: https://api.fabric.microsoft.com/v1/workspaces/84a2e6eb-afc1-4f20-afe8-748433d718e7/items response: body: - string: '{"value": [{"id": "ce95a7b2-b3d9-4942-ad63-552c06fa0dfe", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38"}, - {"id": "53fcabd0-b0dd-4e96-874f-513916e18e7d", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "47fdc53e-6ff6-4637-922a-939a6c92eb38"}]}' + string: '{"value": [{"id": "6f3c3c5a-9c33-47bd-b9a2-c97247f6c577", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "84a2e6eb-afc1-4f20-afe8-748433d718e7"}, + {"id": "65f6221e-66b5-4753-9a90-083998b2e95b", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "84a2e6eb-afc1-4f20-afe8-748433d718e7"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -798,11 +798,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Sun, 28 Jun 2026 16:52:53 GMT + - Wed, 01 Jul 2026 17:40:38 GMT Pragma: - no-cache RequestId: - - dfcadbe3-e1fc-48ad-b563-9133e17109ab + - 003a50f6-da72-45b6-a2d0-fca81dca7e4e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -832,7 +832,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/47fdc53e-6ff6-4637-922a-939a6c92eb38/items/53fcabd0-b0dd-4e96-874f-513916e18e7d + uri: https://api.fabric.microsoft.com/v1/workspaces/84a2e6eb-afc1-4f20-afe8-748433d718e7/items/65f6221e-66b5-4753-9a90-083998b2e95b response: body: string: '' @@ -848,11 +848,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Sun, 28 Jun 2026 16:52:54 GMT + - Wed, 01 Jul 2026 17:40:38 GMT Pragma: - no-cache RequestId: - - a122b142-25b6-4326-9ef6-571519700343 + - 413db3d8-f935-46a2-a740-82d6fde39b48 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/test_mkdir.py b/tests/test_commands/test_mkdir.py index 6926ba7bb..95cf6c1df 100644 --- a/tests/test_commands/test_mkdir.py +++ b/tests/test_commands/test_mkdir.py @@ -284,7 +284,7 @@ def test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_suc ): # This test relies on live restore windows and non-deterministic # restorableDeletedDatabaseName values, so it is skipped in live/record mode. - if is_record_mode(): + if is_record_mode() == False: pytest.skip("Skipping restore/restore-deleted test in live (record) mode") # Setup - create a source SQLDatabase (mode=New) to restore from @@ -299,7 +299,8 @@ def test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_suc # id, and latest restore point (guaranteed to fall inside the valid window). # Wait for 3 minutes to ensure restore point is available. when recording the test, # if 5 minutes is not enough, increase the sleep time to 5 minutes. - time.sleep(300) + if is_record_mode(): + time.sleep(300) get(source_full_path, query=".") source_details = json.loads(mock_questionary_print.call_args[0][0]) source_item_id = source_details["id"] @@ -339,7 +340,8 @@ def test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_suc # RestoreDeletedDatabase - the deleted database may take a short time to # appear in the restorable deleted databases list. - time.sleep(60) + if is_record_mode(): + time.sleep(60) # List the workspace's restorable deleted databases and read the # restorableDeletedDatabaseName of the just-deleted source. diff --git a/tests/test_utils/test_fab_cmd_mkdir_utils.py b/tests/test_utils/test_fab_cmd_mkdir_utils.py index 801c3fe57..5dbe0860e 100644 --- a/tests/test_utils/test_fab_cmd_mkdir_utils.py +++ b/tests/test_utils/test_fab_cmd_mkdir_utils.py @@ -2,7 +2,6 @@ # Licensed under the MIT License. -from statistics import mode from unittest.mock import Mock, patch import pytest @@ -375,8 +374,6 @@ def test_build_sql_database_creation_payload_restore_success(self): } result = _build_sql_database_creation_payload_if_exists(params) - result = _build_sql_database_creation_payload_if_exists(params) - assert result == { "creationMode": "Restore", "restorePointInTime": "2024-01-15T10:30:00Z", From 8415e270f52d54f84b6d64afb0932c9ad259901e Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Wed, 1 Jul 2026 19:43:49 +0000 Subject: [PATCH 20/22] fix recording --- .../test_commands/test_mkdir/class_setup.yaml | 42 +- ...deleted_with_creation_payload_success.yaml | 2412 ++++++++++++++--- 2 files changed, 2079 insertions(+), 375 deletions(-) diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml index 84eded8d8..68793034c 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/class_setup.yaml @@ -30,11 +30,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:47:54 GMT + - Wed, 01 Jul 2026 19:12:35 GMT Pragma: - no-cache RequestId: - - b9e9d7ad-c93d-453e-8c76-bf10a93760a5 + - 4b9b4fe1-1e75-4960-92c1-057599bf87c5 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -79,11 +79,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:47:55 GMT + - Wed, 01 Jul 2026 19:12:36 GMT Pragma: - no-cache RequestId: - - 670707c1-3144-4939-9e81-4cb74c906279 + - 56b58f16-dd3d-4b8f-9c90-77a2d13b1077 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -125,15 +125,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '466' + - '467' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:48:00 GMT + - Wed, 01 Jul 2026 19:12:40 GMT Pragma: - no-cache RequestId: - - a3828420-3ee3-49b6-a06d-4333af272e8e + - 12132078-71c1-48f2-89fc-361417ae2b27 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -167,7 +167,7 @@ interactions: uri: https://api.fabric.microsoft.com/v1/workspaces response: body: - string: '{"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", "displayName": "fabriccli_WorkspacePerTestclass_000001", + string: '{"id": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}' headers: @@ -182,13 +182,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:48:08 GMT + - Wed, 01 Jul 2026 19:12:45 GMT Location: - - https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6 + - https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3 Pragma: - no-cache RequestId: - - c377fcc6-6abb-4819-8a7e-f288f20ae51f + - 69736420-636d-43f1-9f6b-9170a88f51e8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -220,7 +220,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "My workspace", "description": "", "type": "Personal"}, {"id": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -232,15 +232,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3501' + - '3500' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:02:26 GMT + - Wed, 01 Jul 2026 19:43:10 GMT Pragma: - no-cache RequestId: - - 3441f7ca-46ce-49fe-9791-3887c2bda0f8 + - 4a3e7063-a634-4061-9c9a-b2d7693272cc Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -268,7 +268,7 @@ interactions: User-Agent: - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: string: '{"value": []}' @@ -284,11 +284,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:02:27 GMT + - Wed, 01 Jul 2026 19:43:10 GMT Pragma: - no-cache RequestId: - - d51303e9-6318-447b-88e0-8ab976c90d81 + - 098c0e59-ef2c-4b31-a534-bc752bf28bef Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -318,7 +318,7 @@ interactions: User-Agent: - ms-fabric-cli/1.6.1 (mkdir; Linux/6.6.87.2-microsoft-standard-WSL2; Python/3.12.11) method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6 + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3 response: body: string: '' @@ -334,11 +334,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 01 Jul 2026 18:02:28 GMT + - Wed, 01 Jul 2026 19:43:10 GMT Pragma: - no-cache RequestId: - - cb40ccc2-6b39-4947-aa36-ec48217d4240 + - c862cc56-bcd3-4573-ba39-175c3d756ba3 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: diff --git a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml index 597552eef..7c2cfd557 100644 --- a/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml +++ b/tests/test_commands/recordings/test_commands/test_mkdir/test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_success.yaml @@ -17,7 +17,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "My workspace", "description": "", "type": "Personal"}, {"id": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -29,15 +29,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3501' + - '3500' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:48:09 GMT + - Wed, 01 Jul 2026 19:14:32 GMT Pragma: - no-cache RequestId: - - 9c312499-b314-435a-aebd-466f01d62060 + - 26db137c-c556-4e7a-bc86-3738f398d3cb Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -65,7 +65,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: string: '{"value": []}' @@ -81,11 +81,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:48:10 GMT + - Wed, 01 Jul 2026 19:14:32 GMT Pragma: - no-cache RequestId: - - 05ad58b0-464f-4bc5-982f-5386234d9aea + - 9475af75-ac54-47f6-be95-81aef0de6b0a Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -113,7 +113,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: string: '{"value": []}' @@ -129,11 +129,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:48:10 GMT + - Wed, 01 Jul 2026 19:14:34 GMT Pragma: - no-cache RequestId: - - 49a1bac3-47a4-471b-a995-067b94a76708 + - 79a06ccb-19c0-4989-bc3e-f1a7e58cb3b5 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -164,7 +164,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/sqlDatabases response: body: string: 'null' @@ -180,15 +180,15 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:48:12 GMT + - Wed, 01 Jul 2026 19:14:36 GMT ETag: - '""' Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2104e63d-44d6-4e09-959d-869ca07452cc + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ac765071-cba1-458e-aa8b-e705c5c1fe75 Pragma: - no-cache RequestId: - - 16eb2d8d-7385-47ca-997b-e4824f12b9cf + - 567d201c-a566-4629-b0aa-71481a5f68e2 Retry-After: - '20' Strict-Transport-Security: @@ -202,7 +202,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - 2104e63d-44d6-4e09-959d-869ca07452cc + - ac765071-cba1-458e-aa8b-e705c5c1fe75 status: code: 202 message: Accepted @@ -220,11 +220,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2104e63d-44d6-4e09-959d-869ca07452cc + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ac765071-cba1-458e-aa8b-e705c5c1fe75 response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T17:48:11.6469358", - "lastUpdatedTimeUtc": "2026-07-01T17:48:29.4867769", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T19:14:35.3833049", + "lastUpdatedTimeUtc": "2026-07-01T19:14:53.6743871", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -238,13 +238,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:48:34 GMT + - Wed, 01 Jul 2026 19:14:58 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2104e63d-44d6-4e09-959d-869ca07452cc/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ac765071-cba1-458e-aa8b-e705c5c1fe75/result Pragma: - no-cache RequestId: - - 02c2e2ae-67b5-4467-8485-cc3de80f7500 + - 0bfbb5de-fd5d-4597-92bb-976fbc98e54e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -252,7 +252,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 2104e63d-44d6-4e09-959d-869ca07452cc + - ac765071-cba1-458e-aa8b-e705c5c1fe75 status: code: 200 message: OK @@ -270,11 +270,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/2104e63d-44d6-4e09-959d-869ca07452cc/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ac765071-cba1-458e-aa8b-e705c5c1fe75/result response: body: - string: '{"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}' + string: '{"id": "059a34a1-239c-444a-8dfb-72d58f4acc08", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}' headers: Access-Control-Expose-Headers: - RequestId @@ -285,11 +285,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 01 Jul 2026 17:48:35 GMT + - Wed, 01 Jul 2026 19:14:59 GMT Pragma: - no-cache RequestId: - - d2498aad-eac4-4bc3-81d8-873c4ba42799 + - ae384987-2056-4bc9-95e2-c35659cf4f93 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -319,7 +319,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "My workspace", "description": "", "type": "Personal"}, {"id": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -331,15 +331,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3501' + - '3500' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:53:54 GMT + - Wed, 01 Jul 2026 19:20:46 GMT Pragma: - no-cache RequestId: - - 39db71f1-35c7-4d0f-b4fc-bee24faed236 + - 363dd867-3435-444e-a440-84702b6604a7 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -367,13 +367,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: - string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' + string: '{"value": [{"id": "f6247242-cede-4353-8d54-cf291f92ebd6", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "059a34a1-239c-444a-8dfb-72d58f4acc08", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -382,15 +382,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '214' + - '211' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:53:56 GMT + - Wed, 01 Jul 2026 19:20:47 GMT Pragma: - no-cache RequestId: - - 5d006cf6-4767-4af0-89ff-cee3597c1c2b + - e79a467e-9170-4669-88f5-48266f476561 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -418,17 +418,17 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases/3853ea13-13a1-42e9-a823-ad8d78666012 + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/sqlDatabases/059a34a1-239c-444a-8dfb-72d58f4acc08 response: body: - string: '{"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", - "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", - "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-uvzix2ltvpdexegcyfq63gzt6y.database.fabric.microsoft.com,1433;Initial - Catalog=fabcli000001-3853ea13-13a1-42e9-a823-ad8d78666012;Multiple Active + string: '{"id": "059a34a1-239c-444a-8dfb-72d58f4acc08", "type": "SQLDatabase", + "displayName": "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-jhbuv5njww6udlgrqh463hwa6m.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000001-059a34a1-239c-444a-8dfb-72d58f4acc08;Multiple Active Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", - "connectionString": "mock_connection_string", "databaseName": "fabcli000001-3853ea13-13a1-42e9-a823-ad8d78666012", - "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-uvzix2ltvpdexegcyfq63gzt6y.database.fabric.microsoft.com,1433", - "earliestRestorePoint": "2026-07-01T17:51:15Z", "latestRestorePoint": "2026-07-01T17:51:15Z", + "connectionString": "mock_connection_string", "databaseName": "fabcli000001-059a34a1-239c-444a-8dfb-72d58f4acc08", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-jhbuv5njww6udlgrqh463hwa6m.database.fabric.microsoft.com,1433", + "earliestRestorePoint": "2026-07-01T19:19:18Z", "latestRestorePoint": "2026-07-01T19:19:18Z", "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Access-Control-Expose-Headers: @@ -438,17 +438,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '470' + - '468' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:53:56 GMT + - Wed, 01 Jul 2026 19:20:49 GMT ETag: - '""' Pragma: - no-cache RequestId: - - 355d0674-0e8b-4254-b25a-b6b29dd6ced1 + - 122a7504-1fe4-4291-925b-6f09116dba82 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -478,7 +478,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/3853ea13-13a1-42e9-a823-ad8d78666012/getDefinition + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items/059a34a1-239c-444a-8dfb-72d58f4acc08/getDefinition response: body: string: 'null' @@ -494,13 +494,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:53:58 GMT + - Wed, 01 Jul 2026 19:20:49 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/31d305ec-297b-4730-b70e-1e13095045cb Pragma: - no-cache RequestId: - - de6665eb-50e6-41e7-99d8-12400f11dd19 + - 65e4dc4b-74ce-4c07-b40a-e1d4154787aa Retry-After: - '20' Strict-Transport-Security: @@ -514,7 +514,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - 9d0016c3-f067-4ef4-bf2c-28504c7ab211 + - 31d305ec-297b-4730-b70e-1e13095045cb status: code: 202 message: Accepted @@ -532,11 +532,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/31d305ec-297b-4730-b70e-1e13095045cb response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:53:58.2731013", - "lastUpdatedTimeUtc": "2026-07-01T17:53:58.2731013", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:20:49.9400911", + "lastUpdatedTimeUtc": "2026-07-01T19:20:49.9400911", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -550,13 +550,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:54:19 GMT + - Wed, 01 Jul 2026 19:21:10 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/31d305ec-297b-4730-b70e-1e13095045cb Pragma: - no-cache RequestId: - - 67fc6139-4129-4746-b955-679f662f30b0 + - 983fa8f1-18d6-473e-9667-357ee4b4a12f Retry-After: - '20' Strict-Transport-Security: @@ -566,7 +566,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 9d0016c3-f067-4ef4-bf2c-28504c7ab211 + - 31d305ec-297b-4730-b70e-1e13095045cb status: code: 200 message: OK @@ -584,11 +584,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/31d305ec-297b-4730-b70e-1e13095045cb response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T17:53:58.2731013", - "lastUpdatedTimeUtc": "2026-07-01T17:54:37.2250489", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T19:20:49.9400911", + "lastUpdatedTimeUtc": "2026-07-01T19:21:18.8827939", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -598,17 +598,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '133' + - '132' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:54:41 GMT + - Wed, 01 Jul 2026 19:21:32 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/31d305ec-297b-4730-b70e-1e13095045cb/result Pragma: - no-cache RequestId: - - 1a7e2722-5eb4-4b47-a58c-162cc63a2b40 + - 5db0abbf-269b-4ce0-b574-46e93aa5e4b9 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -616,7 +616,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - 9d0016c3-f067-4ef4-bf2c-28504c7ab211 + - 31d305ec-297b-4730-b70e-1e13095045cb status: code: 200 message: OK @@ -634,11 +634,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/9d0016c3-f067-4ef4-bf2c-28504c7ab211/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/31d305ec-297b-4730-b70e-1e13095045cb/result response: body: string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000001.dacpac", - "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Y2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNRTERhdGFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDEiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", "payloadType": "InlineBase64"}]}}' headers: @@ -651,11 +651,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 01 Jul 2026 17:54:42 GMT + - Wed, 01 Jul 2026 19:21:32 GMT Pragma: - no-cache RequestId: - - 9ef3e1bd-fa76-487e-8a00-a30ff300089b + - ee0a75f8-6885-4abe-85f0-fe9ab6ec78b9 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -681,7 +681,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/3853ea13-13a1-42e9-a823-ad8d78666012/connections + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items/059a34a1-239c-444a-8dfb-72d58f4acc08/connections response: body: string: '{"value": []}' @@ -697,11 +697,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:54:43 GMT + - Wed, 01 Jul 2026 19:21:33 GMT Pragma: - no-cache RequestId: - - 1405781b-bd07-4d6d-ab62-33e24cb7ca7e + - d5089e27-704d-4480-afc1-239fae97b953 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -733,7 +733,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "My workspace", "description": "", "type": "Personal"}, {"id": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -745,15 +745,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3501' + - '3500' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:54:44 GMT + - Wed, 01 Jul 2026 19:22:57 GMT Pragma: - no-cache RequestId: - - 22f05bef-de2d-4b69-bbfb-5c05ae0f73e6 + - f7e0b847-504f-4c1f-a184-935a225b6fd1 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -781,13 +781,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: - string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' + string: '{"value": [{"id": "f6247242-cede-4353-8d54-cf291f92ebd6", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "059a34a1-239c-444a-8dfb-72d58f4acc08", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -796,15 +796,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '214' + - '211' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:54:45 GMT + - Wed, 01 Jul 2026 19:22:58 GMT Pragma: - no-cache RequestId: - - 330cd14d-52dc-416c-9235-67df0dcfcd16 + - ec8983ae-d0e2-4bd4-a273-2887e19feb0c Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -832,13 +832,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: - string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' + string: '{"value": [{"id": "f6247242-cede-4353-8d54-cf291f92ebd6", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "059a34a1-239c-444a-8dfb-72d58f4acc08", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -847,15 +847,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '214' + - '211' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:54:46 GMT + - Wed, 01 Jul 2026 19:22:59 GMT Pragma: - no-cache RequestId: - - b42e9304-8e8e-4696-b941-d1adb0debca1 + - b6c6fb4c-9b14-4a00-889d-b7a2f4f72ffd Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -871,9 +871,9 @@ interactions: message: OK - request: body: '{"displayName": "fabcli000002", "type": "SQLDatabase", "folderId": null, - "creationPayload": {"creationMode": "Restore", "restorePointInTime": "2026-07-01T17:51:15Z", - "sourceDatabaseReference": {"itemId": "3853ea13-13a1-42e9-a823-ad8d78666012", - "referenceType": "ById", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}}}' + "creationPayload": {"creationMode": "Restore", "restorePointInTime": "2026-07-01T19:19:18Z", + "sourceDatabaseReference": {"itemId": "059a34a1-239c-444a-8dfb-72d58f4acc08", + "referenceType": "ById", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}}}' headers: Accept: - '*/*' @@ -888,7 +888,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/sqlDatabases response: body: string: 'null' @@ -904,15 +904,15 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:54:48 GMT + - Wed, 01 Jul 2026 19:23:01 GMT ETag: - '""' Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - ea1966c8-7858-4f75-98fa-8b59c67856bb + - 3c617c5a-0be6-4c9f-a5d5-bf7ee359a68e Retry-After: - '20' Strict-Transport-Security: @@ -926,7 +926,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 202 message: Accepted @@ -944,11 +944,115 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:23:21 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a + Pragma: + - no-cache + RequestId: + - 6b509506-bfaf-4a06-837d-a56b0cb4c63d + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 66719a47-e981-4f16-9c60-95b56e55bb2a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '122' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:23:42 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a + Pragma: + - no-cache + RequestId: + - 4cf4fe40-e03f-4783-980a-00aba0bafebb + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 66719a47-e981-4f16-9c60-95b56e55bb2a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -958,17 +1062,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:55:10 GMT + - Wed, 01 Jul 2026 19:24:03 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 64967e7a-9866-47f6-a393-2d95e133f97a + - 7228e69d-c965-4fc2-bc40-adf498eda44e Retry-After: - '20' Strict-Transport-Security: @@ -978,7 +1082,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -996,11 +1100,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1010,17 +1114,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:55:32 GMT + - Wed, 01 Jul 2026 19:24:24 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 251590ed-c0ef-447c-9372-7b4e7b0428f0 + - 3fb5e164-29e0-4d48-89c9-68e63a4f5f06 Retry-After: - '20' Strict-Transport-Security: @@ -1030,7 +1134,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1048,11 +1152,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1062,17 +1166,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:55:54 GMT + - Wed, 01 Jul 2026 19:24:45 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 28d46f4c-bafc-4f98-8cd1-5ec85727268f + - a17b5ce6-f4b3-4b92-9f85-251201f04aeb Retry-After: - '20' Strict-Transport-Security: @@ -1082,7 +1186,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1100,11 +1204,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1114,17 +1218,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:56:16 GMT + - Wed, 01 Jul 2026 19:25:07 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - c6067758-66ea-428c-8bc2-e097d7fbfa66 + - 1c9acaf9-4744-4fd5-a362-8e37bbbe0f83 Retry-After: - '20' Strict-Transport-Security: @@ -1134,7 +1238,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1152,11 +1256,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1166,17 +1270,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:56:38 GMT + - Wed, 01 Jul 2026 19:25:28 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 1efef59a-fcc2-4f8a-b9a8-513d20975ff2 + - de7249a1-455f-48f0-ac3e-9d0952af232b Retry-After: - '20' Strict-Transport-Security: @@ -1186,7 +1290,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1204,11 +1308,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1218,17 +1322,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:57:01 GMT + - Wed, 01 Jul 2026 19:25:49 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 8be6a1de-c0e9-414d-b658-8cc601b83ef2 + - 2cef8b7b-51a0-45ed-8d6f-ec1741680088 Retry-After: - '20' Strict-Transport-Security: @@ -1238,7 +1342,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1256,11 +1360,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1270,17 +1374,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:57:23 GMT + - Wed, 01 Jul 2026 19:26:11 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 49f28309-9bed-4e8e-a569-1aabdab3038e + - 3b3b8cf8-68d4-4108-9da9-1cb5268810d4 Retry-After: - '20' Strict-Transport-Security: @@ -1290,7 +1394,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1308,11 +1412,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1322,17 +1426,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:57:45 GMT + - Wed, 01 Jul 2026 19:27:24 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 3ce9774e-d1a0-4792-ba71-7fec00aae46c + - c0441609-8d88-4603-bef4-f4e122554a32 Retry-After: - '20' Strict-Transport-Security: @@ -1342,7 +1446,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1360,11 +1464,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1374,17 +1478,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:58:06 GMT + - Wed, 01 Jul 2026 19:27:45 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - b08b285e-e411-418e-b3ad-5714b4d9344d + - 39f64526-5b34-43f7-accf-5dab69ab5314 Retry-After: - '20' Strict-Transport-Security: @@ -1394,7 +1498,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1412,11 +1516,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1426,17 +1530,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:58:29 GMT + - Wed, 01 Jul 2026 19:28:06 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 4328112d-88c8-4a1f-a927-a67bc034f9de + - 1bffa32b-6ff7-4d5d-960c-86f83b6c0ae0 Retry-After: - '20' Strict-Transport-Security: @@ -1446,7 +1550,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1464,11 +1568,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1478,17 +1582,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:58:51 GMT + - Wed, 01 Jul 2026 19:28:27 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 889b363c-495d-41dd-820d-83e6d22180d0 + - 71ad0c1e-2ed7-412d-8301-f20a04cf6ddd Retry-After: - '20' Strict-Transport-Security: @@ -1498,7 +1602,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1516,11 +1620,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1530,17 +1634,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:59:13 GMT + - Wed, 01 Jul 2026 19:28:48 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 0c3269bf-63f4-44e2-ba37-8c826366cdf5 + - 8c4ad455-d576-455a-b964-7fa5f93c373e Retry-After: - '20' Strict-Transport-Security: @@ -1550,7 +1654,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1568,11 +1672,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1582,17 +1686,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:59:35 GMT + - Wed, 01 Jul 2026 19:29:10 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - 5dac908d-59b9-4795-b525-098dd8f05f42 + - dba197ed-0e91-429a-ba45-a1b9686f7f88 Retry-After: - '20' Strict-Transport-Security: @@ -1602,7 +1706,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1620,11 +1724,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T17:54:47.1384436", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:22:59.9127139", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -1634,17 +1738,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '124' + - '122' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 17:59:58 GMT + - Wed, 01 Jul 2026 19:29:30 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a Pragma: - no-cache RequestId: - - d9947eef-6784-4611-9c4c-cfd060d76c38 + - 86485c91-e7d8-435f-bbb2-69a07cecc875 Retry-After: - '20' Strict-Transport-Security: @@ -1654,7 +1758,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1672,11 +1776,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T17:54:47.1384436", - "lastUpdatedTimeUtc": "2026-07-01T18:00:10.597748", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T19:22:59.9127139", + "lastUpdatedTimeUtc": "2026-07-01T19:29:34.3123404", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -1686,17 +1790,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '134' + - '133' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:00:19 GMT + - Wed, 01 Jul 2026 19:29:52 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a/result Pragma: - no-cache RequestId: - - 8de34462-ae33-4ca8-83d6-008e0f4bc1e1 + - 030fbe84-0c5e-4131-99f0-7bd95f8ff6d4 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1704,7 +1808,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - ff537f78-db3c-43ae-ac99-5228e5e8a778 + - 66719a47-e981-4f16-9c60-95b56e55bb2a status: code: 200 message: OK @@ -1722,11 +1826,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/ff537f78-db3c-43ae-ac99-5228e5e8a778/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/66719a47-e981-4f16-9c60-95b56e55bb2a/result response: body: - string: '{"id": "5504b9ad-e178-49e5-bb07-03509bf9ba3a", "type": "SQLDatabase", - "displayName": "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}' + string: '{"id": "b701af9f-8226-4696-a9da-521fad3e3983", "type": "SQLDatabase", + "displayName": "fabcli000002", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}' headers: Access-Control-Expose-Headers: - RequestId @@ -1737,11 +1841,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 01 Jul 2026 18:00:20 GMT + - Wed, 01 Jul 2026 19:29:53 GMT Pragma: - no-cache RequestId: - - 978be3de-4a27-4d52-9b71-8080f294cb3a + - eb1cd0ed-a9e8-4bde-8d61-3d742cedbcf1 Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -1771,7 +1875,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "My workspace", "description": "", "type": "Personal"}, {"id": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -1783,15 +1887,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3501' + - '3500' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:00:22 GMT + - Wed, 01 Jul 2026 19:30:04 GMT Pragma: - no-cache RequestId: - - f0ed12a5-2387-4869-9d7d-60a107221952 + - a4c7ac60-0f3a-4ce8-a488-6080719e499b Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1819,17 +1923,17 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: - string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "233d6650-1adf-4848-9b83-a579584736df", "type": "SQLEndpoint", "displayName": - "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "5504b9ad-e178-49e5-bb07-03509bf9ba3a", "type": "SQLDatabase", "displayName": - "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' + string: '{"value": [{"id": "f6247242-cede-4353-8d54-cf291f92ebd6", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "2aa5a677-e914-42dc-b084-875126d446f8", "type": "SQLEndpoint", "displayName": + "fabcli000002", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "059a34a1-239c-444a-8dfb-72d58f4acc08", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "b701af9f-8226-4696-a9da-521fad3e3983", "type": "SQLDatabase", "displayName": + "fabcli000002", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -1842,11 +1946,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:00:22 GMT + - Wed, 01 Jul 2026 19:30:05 GMT Pragma: - no-cache RequestId: - - 63ee1c74-b052-43d4-a72b-dd73157e2d7b + - c081981e-97e5-4a84-adaf-78d0e8a5a896 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1874,17 +1978,16 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases/5504b9ad-e178-49e5-bb07-03509bf9ba3a + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/sqlDatabases/b701af9f-8226-4696-a9da-521fad3e3983 response: body: - string: '{"id": "5504b9ad-e178-49e5-bb07-03509bf9ba3a", "type": "SQLDatabase", - "displayName": "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", - "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-uvzix2ltvpdexegcyfq63gzt6y.database.fabric.microsoft.com,1433;Initial - Catalog=fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a;Multiple Active + string: '{"id": "b701af9f-8226-4696-a9da-521fad3e3983", "type": "SQLDatabase", + "displayName": "fabcli000002", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-jhbuv5njww6udlgrqh463hwa6m.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000002-b701af9f-8226-4696-a9da-521fad3e3983;Multiple Active Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", - "connectionString": "mock_connection_string", "databaseName": "fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a", - "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-uvzix2ltvpdexegcyfq63gzt6y.database.fabric.microsoft.com,1433", - "earliestRestorePoint": "2026-07-01T17:59:24Z", "latestRestorePoint": "2026-07-01T17:59:24Z", + "connectionString": "mock_connection_string", "databaseName": "fabcli000002-b701af9f-8226-4696-a9da-521fad3e3983", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-jhbuv5njww6udlgrqh463hwa6m.database.fabric.microsoft.com,1433", "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' headers: Access-Control-Expose-Headers: @@ -1894,17 +1997,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '468' + - '430' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:00:23 GMT + - Wed, 01 Jul 2026 19:30:06 GMT ETag: - '""' Pragma: - no-cache RequestId: - - 9e65bce8-04f8-4064-80b3-c598964877a1 + - 9195cb26-dd19-4650-ab55-c8a4a2fc147f Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -1934,7 +2037,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/5504b9ad-e178-49e5-bb07-03509bf9ba3a/getDefinition + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items/b701af9f-8226-4696-a9da-521fad3e3983/getDefinition response: body: string: 'null' @@ -1950,13 +2053,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:00:24 GMT + - Wed, 01 Jul 2026 19:30:07 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f57d70dd-f25c-42c5-a73c-d9800fa6f039 Pragma: - no-cache RequestId: - - 7ec1e8cf-7427-4493-a6b1-9bba6149af33 + - d1a53cdc-6ec9-43d8-9b6c-ac6fadb4237c Retry-After: - '20' Strict-Transport-Security: @@ -1970,7 +2073,7 @@ interactions: request-redirected: - 'true' x-ms-operation-id: - - c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 + - f57d70dd-f25c-42c5-a73c-d9800fa6f039 status: code: 202 message: Accepted @@ -1988,11 +2091,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f57d70dd-f25c-42c5-a73c-d9800fa6f039 response: body: - string: '{"status": "Running", "createdTimeUtc": "2026-07-01T18:00:25.0663203", - "lastUpdatedTimeUtc": "2026-07-01T18:00:25.0663203", "percentComplete": null, + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:30:07.8083965", + "lastUpdatedTimeUtc": "2026-07-01T19:30:07.8083965", "percentComplete": null, "error": null}' headers: Access-Control-Expose-Headers: @@ -2006,13 +2109,13 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:00:46 GMT + - Wed, 01 Jul 2026 19:30:28 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f57d70dd-f25c-42c5-a73c-d9800fa6f039 Pragma: - no-cache RequestId: - - 3d7f1f5d-3ac6-4d27-94dc-8a3f9dea23fd + - 03573abe-95e3-4c6c-b9be-e53b420b6170 Retry-After: - '20' Strict-Transport-Security: @@ -2022,7 +2125,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 + - f57d70dd-f25c-42c5-a73c-d9800fa6f039 status: code: 200 message: OK @@ -2040,11 +2143,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f57d70dd-f25c-42c5-a73c-d9800fa6f039 response: body: - string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T18:00:25.0663203", - "lastUpdatedTimeUtc": "2026-07-01T18:00:54.3809742", "percentComplete": 100, + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T19:30:07.8083965", + "lastUpdatedTimeUtc": "2026-07-01T19:30:36.7530711", "percentComplete": 100, "error": null}' headers: Access-Control-Expose-Headers: @@ -2054,17 +2157,17 @@ interactions: Content-Encoding: - gzip Content-Length: - - '132' + - '131' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:01:08 GMT + - Wed, 01 Jul 2026 19:30:49 GMT Location: - - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7/result + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f57d70dd-f25c-42c5-a73c-d9800fa6f039/result Pragma: - no-cache RequestId: - - eb853bfd-8d0b-449e-9ced-6b376ceea8df + - 82944e61-50e9-4cf9-8fbf-0f6fb50d248f Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2072,7 +2175,7 @@ interactions: X-Frame-Options: - deny x-ms-operation-id: - - c9480f0d-57dd-413d-bd18-a49a8cb2d0d7 + - f57d70dd-f25c-42c5-a73c-d9800fa6f039 status: code: 200 message: OK @@ -2090,11 +2193,11 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/c9480f0d-57dd-413d-bd18-a49a8cb2d0d7/result + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/f57d70dd-f25c-42c5-a73c-d9800fa6f039/result response: body: string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000002.dacpac", - "payload": "UEsDBBQAAAAIABmQ4VzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDhKWk2Wi3tw5Di0ChmWHPpNcHrtF16CcK3XHnxuTffF+vGLWXVc0kMvP1E5UqGoSfQuJHqB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TNz9EnD6JorfUEsDBBQAAAAIANCb4VztodPgjwAAAK8AAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbCWNSw6CMBCGr9LMHgZdGGPaulBv4AWaOjwiTBs6GDybC4/kFSyw/J/f7/PV53no1YvG1AU2sCsrUMQ+PDpuDExSF0c4W31/R0oqVzkZaEXiCTH5lgaXyhCJc1KHcXCS5dhgdP7pGsJ9VR3QBxZiKWT5AKuvVLupF3Wbs71h8xzUZestKANCs+Bqo9W44u0fUEsBAhQAFAAAAAgA0JvhXMbqoL+pAgAAvAcAAAkAAAAAAAAAAAAAAAAAAAAAAG1vZGVsLnhtbFBLAQIUABQAAAAIANCb4VxTYfaMpAAAAMgAAAAPAAAAAAAAAAAAAAAAANACAABEYWNNZXRhZGF0YS54bWxQSwECFAAUAAAACADQm+FcHCZ6QC4CAABdBAAACgAAAAAAAAAAAAAAAAChAwAAT3JpZ2luLnhtbFBLAQIUABQAAAAIANCb4VztodPgjwAAAK8AAAATAAAAAAAAAAAAAAAAAPcFAABbQ29udGVudF9UeXBlc10ueG1sUEsFBgAAAAAEAAQA7QAAALcGAAAAAA==", "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNRTERhdGFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDIiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", "payloadType": "InlineBase64"}]}}' headers: @@ -2107,11 +2210,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 01 Jul 2026 18:01:10 GMT + - Wed, 01 Jul 2026 19:30:49 GMT Pragma: - no-cache RequestId: - - 45d35136-f440-4e63-b109-ee139fe2a09c + - 74e7f4e2-1368-4766-8e8e-e9c8e9c78c3e Strict-Transport-Security: - max-age=31536000; includeSubDomains Transfer-Encoding: @@ -2137,7 +2240,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/5504b9ad-e178-49e5-bb07-03509bf9ba3a/connections + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items/b701af9f-8226-4696-a9da-521fad3e3983/connections response: body: string: '{"value": []}' @@ -2153,11 +2256,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:01:10 GMT + - Wed, 01 Jul 2026 19:30:51 GMT Pragma: - no-cache RequestId: - - ac99791c-d8d4-445d-a7fa-3d48100a0425 + - dbddb228-f776-46ab-8542-1576e4c756fe Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2189,7 +2292,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "My workspace", "description": "", "type": "Personal"}, {"id": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -2201,15 +2304,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3501' + - '3500' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:01:11 GMT + - Wed, 01 Jul 2026 19:30:51 GMT Pragma: - no-cache RequestId: - - 9518c0a0-a6e6-4136-87a7-ed94e89e4b15 + - 2a1a5da7-152c-4576-9de7-b5e29bf34f90 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2237,17 +2340,17 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: - string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "233d6650-1adf-4848-9b83-a579584736df", "type": "SQLEndpoint", "displayName": - "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "5504b9ad-e178-49e5-bb07-03509bf9ba3a", "type": "SQLDatabase", "displayName": - "fabcli000002", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' + string: '{"value": [{"id": "f6247242-cede-4353-8d54-cf291f92ebd6", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "2aa5a677-e914-42dc-b084-875126d446f8", "type": "SQLEndpoint", "displayName": + "fabcli000002", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "059a34a1-239c-444a-8dfb-72d58f4acc08", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "b701af9f-8226-4696-a9da-521fad3e3983", "type": "SQLDatabase", "displayName": + "fabcli000002", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -2260,11 +2363,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:01:12 GMT + - Wed, 01 Jul 2026 19:30:52 GMT Pragma: - no-cache RequestId: - - 4f2f8198-7a8a-426a-9889-ab6f1fbff3e7 + - 3037c428-02f6-4df3-b4ef-25c97211da5d Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2294,7 +2397,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/5504b9ad-e178-49e5-bb07-03509bf9ba3a + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items/b701af9f-8226-4696-a9da-521fad3e3983 response: body: string: '' @@ -2310,11 +2413,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 01 Jul 2026 18:01:12 GMT + - Wed, 01 Jul 2026 19:30:54 GMT Pragma: - no-cache RequestId: - - 3d164a7d-0c1f-4e70-91df-d36f3ed7b388 + - 80457134-95ca-476a-a54b-7801131fc903 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2346,7 +2449,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "My workspace", "description": "", "type": "Personal"}, {"id": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -2358,15 +2461,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3501' + - '3500' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:01:13 GMT + - Wed, 01 Jul 2026 19:30:55 GMT Pragma: - no-cache RequestId: - - ce909049-561a-4eaf-bacd-821695625354 + - 1a7be7fc-d24c-4473-b804-37dd52922e7e Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2394,13 +2497,13 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: - string: '{"value": [{"id": "ff5e8054-d397-4723-a202-46c8d0160816", "type": "SQLEndpoint", - "displayName": "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}, - {"id": "3853ea13-13a1-42e9-a823-ad8d78666012", "type": "SQLDatabase", "displayName": - "fabcli000001", "description": "", "workspaceId": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6"}]}' + string: '{"value": [{"id": "f6247242-cede-4353-8d54-cf291f92ebd6", "type": "SQLEndpoint", + "displayName": "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "059a34a1-239c-444a-8dfb-72d58f4acc08", "type": "SQLDatabase", "displayName": + "fabcli000001", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -2409,15 +2512,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '214' + - '211' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:01:14 GMT + - Wed, 01 Jul 2026 19:30:55 GMT Pragma: - no-cache RequestId: - - d84b843d-8284-4b9e-b084-e5ee9cf154af + - 31f704cb-0f0e-4ae9-8aad-661408b9d0e8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2447,7 +2550,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: DELETE - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items/3853ea13-13a1-42e9-a823-ad8d78666012 + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items/059a34a1-239c-444a-8dfb-72d58f4acc08 response: body: string: '' @@ -2463,11 +2566,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 01 Jul 2026 18:01:14 GMT + - Wed, 01 Jul 2026 19:30:56 GMT Pragma: - no-cache RequestId: - - 465ff7f7-f6e1-4d25-827d-bda23afc71e6 + - 6d7a4b45-ea8f-4a1f-8980-bb4997b8fba9 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2495,17 +2598,17 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases/restorableDeletedDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/sqlDatabases/restorableDeletedDatabases response: body: - string: '{"value": [{"displayName": "fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a", - "properties": {"restorableDeletedDatabaseName": "fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a,134274024766330000", - "earliestRestorePoint": "2026-07-01T17:59:24.0000000Z", "latestRestorePoint": - "2026-07-01T18:01:16.6330000Z", "deletionTimestamp": "2026-07-01T18:01:16.6330000Z"}}, - {"displayName": "fabcli000001-3853ea13-13a1-42e9-a823-ad8d78666012", "properties": - {"restorableDeletedDatabaseName": "fabcli000001-3853ea13-13a1-42e9-a823-ad8d78666012,134274024775530000", - "earliestRestorePoint": "2026-07-01T17:51:15.0000000Z", "latestRestorePoint": - "2026-07-01T18:01:17.5530000Z", "deletionTimestamp": "2026-07-01T18:01:17.5530000Z"}}]}' + string: '{"value": [{"displayName": "fabcli000001-059a34a1-239c-444a-8dfb-72d58f4acc08", + "properties": {"restorableDeletedDatabaseName": "fabcli000001-059a34a1-239c-444a-8dfb-72d58f4acc08,134274078596330000", + "earliestRestorePoint": "2026-07-01T19:19:18.0000000Z", "latestRestorePoint": + "2026-07-01T19:30:59.6330000Z", "deletionTimestamp": "2026-07-01T19:30:59.6330000Z"}}, + {"displayName": "fabcli000002-b701af9f-8226-4696-a9da-521fad3e3983", "properties": + {"restorableDeletedDatabaseName": "fabcli000002-b701af9f-8226-4696-a9da-521fad3e3983,134274078568130000", + "earliestRestorePoint": "2026-07-01T19:30:56.8130000Z", "latestRestorePoint": + "2026-07-01T19:30:56.8130000Z", "deletionTimestamp": "2026-07-01T19:30:56.8130000Z"}}]}' headers: Access-Control-Expose-Headers: - RequestId @@ -2514,9 +2617,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:02:20 GMT + - Wed, 01 Jul 2026 19:33:52 GMT RequestId: - - 034226f2-2de7-47de-9855-9d25eb3d292b + - f5caf496-741a-46dd-8946-2930c295f7b8 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2548,7 +2651,7 @@ interactions: response: body: string: '{"value": [{"id": "3634a139-2c9e-4205-910b-3b089a31be47", "displayName": - "My workspace", "description": "", "type": "Personal"}, {"id": "e98b72a5-ab73-4bc6-90c2-c161ed9b33f6", + "My workspace", "description": "", "type": "Personal"}, {"id": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", "capacityRegion": "Central US"}]}' @@ -2560,15 +2663,15 @@ interactions: Content-Encoding: - gzip Content-Length: - - '3501' + - '3500' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:02:21 GMT + - Wed, 01 Jul 2026 19:35:03 GMT Pragma: - no-cache RequestId: - - 6d2798af-cc87-4920-9f76-30ee30e5d99e + - a86924e3-703d-40ab-949b-fcc1f54cb961 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2596,7 +2699,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: string: '{"value": []}' @@ -2612,11 +2715,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:02:21 GMT + - Wed, 01 Jul 2026 19:35:04 GMT Pragma: - no-cache RequestId: - - ce65dfcd-c846-4bd8-8cd2-287c4c4f1299 + - b7000039-3225-4a6e-9ac3-d66b9d105424 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2644,7 +2747,7 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: GET - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/items + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items response: body: string: '{"value": []}' @@ -2660,11 +2763,11 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:02:23 GMT + - Wed, 01 Jul 2026 19:35:04 GMT Pragma: - no-cache RequestId: - - c67af581-4f45-421f-903f-5837d50a3fe3 + - 506e5a2d-bc71-4b18-8a6f-3a6a9224d716 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -2681,8 +2784,8 @@ interactions: - request: body: '{"displayName": "fabcli000003", "type": "SQLDatabase", "folderId": null, "creationPayload": {"creationMode": "RestoreDeletedDatabase", "restorableDeletedDatabaseName": - "fabcli000002-5504b9ad-e178-49e5-bb07-03509bf9ba3a,134274024766330000", "restorePointInTime": - "2026-07-01T17:51:15Z"}}' + "fabcli000001-059a34a1-239c-444a-8dfb-72d58f4acc08,134274078596330000", "restorePointInTime": + "2026-07-01T19:19:18Z"}}' headers: Accept: - '*/*' @@ -2697,31 +2800,35 @@ interactions: User-Agent: - ms-fabric-cli-test/1.6.1 method: POST - uri: https://api.fabric.microsoft.com/v1/workspaces/e98b72a5-ab73-4bc6-90c2-c161ed9b33f6/sqlDatabases + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/sqlDatabases response: body: - string: '{"requestId": "ed4db342-ac8c-45bc-a202-c972da02a8c9", "errorCode": - "SqlDbNative.FleetManagement.InvalidRestoreFromTime", "message": "Restore - from time 7/1/2026 5:51:15 PM is invalid. Expected between earliest restore - time 7/1/2026 5:59:24 PM and latest restore time 7/1/2026 6:01:16 PM.", "isRetriable": - false}' + string: 'null' headers: Access-Control-Expose-Headers: - - RequestId + - RequestId,Location,Retry-After,ETag,x-ms-operation-id Cache-Control: - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' Content-Type: - application/json; charset=utf-8 Date: - - Wed, 01 Jul 2026 18:02:24 GMT + - Wed, 01 Jul 2026 19:35:07 GMT + ETag: + - '""' + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e Pragma: - no-cache RequestId: - - ed4db342-ac8c-45bc-a202-c972da02a8c9 + - 4386ce32-e282-4ad2-8701-8d6c92e14faf + Retry-After: + - '20' Strict-Transport-Security: - max-age=31536000; includeSubDomains - Transfer-Encoding: - - chunked X-Content-Type-Options: - nosniff X-Frame-Options: @@ -2730,9 +2837,1606 @@ interactions: - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ request-redirected: - 'true' - x-ms-public-api-error-code: - - SqlDbNative.FleetManagement.InvalidRestoreFromTime + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:35:27 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - d76e01ab-2238-48b2-b359-55ed9a13fff2 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:35:49 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 0480a649-739c-4be2-87ab-ce557b6f0c98 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e status: - code: 400 - message: Bad Request + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:36:10 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 0c6aebba-844b-47b2-bd4b-be9be110e9bc + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:36:30 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 65129aff-3487-44f0-a46a-a6ec7db7c619 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:36:51 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 2ab9e4de-4972-4a2e-8028-9aedbc5a7ef4 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:37:13 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - eb4c4370-c72f-41a9-8175-fe7afa8a48b4 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:37:33 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 04ca05cc-1b19-4acc-a3f9-5c6601353d01 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:37:54 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - aacc36f5-b151-481e-b261-878e7d6624ca + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:38:15 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - ea3213fd-cb8b-4407-9205-b1440fb2ede9 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:38:37 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 2894721d-0241-4a5d-af93-532ab6d8ec71 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:38:58 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 5c8d1e93-2ce6-4464-9eae-896cee7f5e06 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:39:19 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 7a4c7fe0-0b3f-4b38-a611-d3c8930e24cc + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:39:39 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - cfe5a67c-1bd2-449c-a71a-73cd313b0f9e + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:40:00 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 94fc11d7-38d2-45b4-a3d7-272eec541e55 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:40:21 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - dd0cab19-3e82-45e7-94c1-6d436b5bfd1c + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:40:43 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - c18151d9-5b90-4b82-9e91-fb919cb6a87d + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:41:03 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - afbbce57-b657-421c-b57f-c843e2f836d4 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:35:06.2649357", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '121' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:41:24 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + Pragma: + - no-cache + RequestId: + - 55988026-09f8-44e4-a030-01e9d33c80de + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T19:35:06.2649357", + "lastUpdatedTimeUtc": "2026-07-01T19:41:26.3061654", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '133' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:41:45 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e/result + Pragma: + - no-cache + RequestId: + - 40f7a4ad-744f-4b20-a539-25728b32795d + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - 8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/8c3c0f85-5fb8-46ff-b896-0ec0cde92a9e/result + response: + body: + string: '{"id": "1c08dd66-4b4b-4d95-b4ee-5144e9f63bac", "type": "SQLDatabase", + "displayName": "fabcli000003", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 01 Jul 2026 19:41:46 GMT + Pragma: + - no-cache + RequestId: + - 6bb8c223-cb98-4b69-81c9-0457f613a6bf + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:41:58 GMT + Pragma: + - no-cache + RequestId: + - ca947e71-eeca-4efa-9e91-a0d37f417474 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items + response: + body: + string: '{"value": [{"id": "b22731de-db10-400c-bd38-de03f40f3c22", "type": "SQLEndpoint", + "displayName": "fabcli000003", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "1c08dd66-4b4b-4d95-b4ee-5144e9f63bac", "type": "SQLDatabase", "displayName": + "fabcli000003", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '212' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:41:59 GMT + Pragma: + - no-cache + RequestId: + - e42ce45a-3ecc-4fcb-a2b1-242ae74a14bd + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/sqlDatabases/1c08dd66-4b4b-4d95-b4ee-5144e9f63bac + response: + body: + string: '{"id": "1c08dd66-4b4b-4d95-b4ee-5144e9f63bac", "type": "SQLDatabase", + "displayName": "fabcli000003", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", + "properties": {"connectionInfo": "Data Source=vwbb4lsqmqqejdvenqo7wshysy-jhbuv5njww6udlgrqh463hwa6m.database.fabric.microsoft.com,1433;Initial + Catalog=fabcli000003-1c08dd66-4b4b-4d95-b4ee-5144e9f63bac;Multiple Active + Result Sets=False;Connect Timeout=30;Encrypt=True;Trust Server Certificate=False", + "connectionString": "mock_connection_string", "databaseName": "fabcli000003-1c08dd66-4b4b-4d95-b4ee-5144e9f63bac", + "serverFqdn": "vwbb4lsqmqqejdvenqo7wshysy-jhbuv5njww6udlgrqh463hwa6m.database.fabric.microsoft.com,1433", + "backupRetentionDays": 7, "collation": "SQL_Latin1_General_CP1_CI_AS"}}' + headers: + Access-Control-Expose-Headers: + - RequestId,ETag + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '429' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:42:00 GMT + ETag: + - '""' + Pragma: + - no-cache + RequestId: + - ed24d5bf-f995-4d1b-8e75-62319e433dac + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: POST + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items/1c08dd66-4b4b-4d95-b4ee-5144e9f63bac/getDefinition + response: + body: + string: 'null' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '24' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:42:01 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/decad013-4831-4ddf-a136-89c88ab15832 + Pragma: + - no-cache + RequestId: + - cebd6720-d83a-413f-8c39-c6a9ce5f2858 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + x-ms-operation-id: + - decad013-4831-4ddf-a136-89c88ab15832 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/decad013-4831-4ddf-a136-89c88ab15832 + response: + body: + string: '{"status": "Running", "createdTimeUtc": "2026-07-01T19:42:01.7542101", + "lastUpdatedTimeUtc": "2026-07-01T19:42:01.7542101", "percentComplete": null, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,Retry-After,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '123' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:42:22 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/decad013-4831-4ddf-a136-89c88ab15832 + Pragma: + - no-cache + RequestId: + - 571ad552-a023-460c-8792-20f70b7c6953 + Retry-After: + - '20' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - decad013-4831-4ddf-a136-89c88ab15832 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/decad013-4831-4ddf-a136-89c88ab15832 + response: + body: + string: '{"status": "Succeeded", "createdTimeUtc": "2026-07-01T19:42:01.7542101", + "lastUpdatedTimeUtc": "2026-07-01T19:42:40.8057524", "percentComplete": 100, + "error": null}' + headers: + Access-Control-Expose-Headers: + - RequestId,Location,x-ms-operation-id + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '131' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:42:43 GMT + Location: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/decad013-4831-4ddf-a136-89c88ab15832/result + Pragma: + - no-cache + RequestId: + - c4c21704-aab7-48fd-9db7-3810ca211fa0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + x-ms-operation-id: + - decad013-4831-4ddf-a136-89c88ab15832 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://wabi-us-central-b-primary-redirect.analysis.windows.net/v1/operations/decad013-4831-4ddf-a136-89c88ab15832/result + response: + body: + string: '{"definition": {"format": "dacpac", "parts": [{"path": "fabcli000003.dacpac", + "payload": "UEsDBBQAAAAIAE6d4VzG6qC/qQIAALwHAAAJAAAAbW9kZWwueG1spVVdb9pAEHxOpf4Hy++1+VCbqjKJIgNNJEhIbKWqqgot9gInne+cu3ME+fXdw2ATCCm0D0jmvDOz7M4cweUi484zKs2k6LhNr+E6KBKZMjHruIWZfvrqXl58/BB0wUCUzDGDoUyRO33GsS9VBuaxBrdcp6ypztreZ9fp6vwWMuy4Q5YoqeXUeJbOi6Xk2isRXvTE7ac76cNEscQWTEBj+Xak5DNLUblOKDkHQ9yDhKWk2Wi3tw5Di0ChmWHPpNcHrtF16CcK3XHnxuTffF+vGLWXVc0kMvP1E5UqGoSfQuJHqBhw9rIi9VuNZstvtFyaw1lwjUCN2MezICy0kZlt1QnB4EyqZce9IvnbgnO9qqeqIRpIbU05hPq98wi8oJNYFdSlX3L6Nek7IveFNJjepCgMmzIazNtae2X/IRnKLKd5TBhnZmlNcEBzv24j2jxvnKj5gFNU5EfiiJc5UZBDSkccELe2tE+VJm3aoPJoqTkkG/U92EDOWAL8H5C9BRUJ4CNQpt7orxL8+yAsKvJcodZDpjVFrYs5CtpSwlD3lJKqplp7+KSx0ZTCLH0EMvGEo94a3tbxmjPwa0cHq2yXxD2OGdmmhm4SeZfbUFTupmjmqMyy2v46itUPiO4H4wEdieb4OwpUwMfhqDkOb8ZXUT2fHZobvYlJF6dQcHMn3vTuO0B9GuQHKEGbOAWlmJlfTaQ6oblQigSMbe8nQ55q+3Q8OpZKjGCG9MJgYqe8hX1llDfAfZKKcWF6wm4/PU7TqtFlzqavk9w+CFivawBiVhC2QvwNsOnueOB9gWoZGakwhNwUCl/fNUfgIgMcV1/jOYVxLnk9lfaX84MMQ1h0ZV6VVpfaXmGMWS7J8NeMQqqWD2jsRSzF7gp2Mr6OX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LRmYFPBP3vwScvonqF1BLAwQUAAAACABOneFc7aHT4I8AAACvAAAAEwAAAFtDb250ZW50X1R5cGVzXS54bWwljUsOgjAQhq/SzB4GXRhj2rpQb+AFmjo8IkwbOhg8mwuP5BUssPyf3+/z1ed56NWLxtQFNrArK1DEPjw6bgxMUhdHOFt9f0dKKlc5GWhF4gkx+ZYGl8oQiXNSh3FwkuXYYHT+6RrCfVUd0AcWYilk+QCrr1S7qRd1m7O9YfMc1GXrLSgDQrPgaqPVuOLtH1BLAQIUABQAAAAIAE6d4VzG6qC/qQIAALwHAAAJAAAAAAAAAAAAAAAAAAAAAABtb2RlbC54bWxQSwECFAAUAAAACABOneFcrdd3sqUAAADIAAAADwAAAAAAAAAAAAAAAADQAgAARGFjTWV0YWRhdGEueG1sUEsBAhQAFAAAAAgATp3hXE/bw9MuAgAAXQQAAAoAAAAAAAAAAAAAAAAAogMAAE9yaWdpbi54bWxQSwECFAAUAAAACABOneFc7aHT4I8AAACvAAAAEwAAAAAAAAAAAAAAAAD4BQAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLBQYAAAAABAAEAO0AAAC4BgAAAAA=", + "payloadType": "InlineBase64"}, {"path": ".platform", "payload": "ewogICIkc2NoZW1hIjogImh0dHBzOi8vZGV2ZWxvcGVyLm1pY3Jvc29mdC5jb20vanNvbi1zY2hlbWFzL2ZhYnJpYy9naXRJbnRlZ3JhdGlvbi9wbGF0Zm9ybVByb3BlcnRpZXMvMi4wLjAvc2NoZW1hLmpzb24iLAogICJtZXRhZGF0YSI6IHsKICAgICJ0eXBlIjogIlNRTERhdGFiYXNlIiwKICAgICJkaXNwbGF5TmFtZSI6ICJmYWJjbGkwMDAwMDMiCiAgfSwKICAiY29uZmlnIjogewogICAgInZlcnNpb24iOiAiMi4wIiwKICAgICJsb2dpY2FsSWQiOiAiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIgogIH0KfQ==", + "payloadType": "InlineBase64"}]}}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Wed, 01 Jul 2026 19:42:44 GMT + Pragma: + - no-cache + RequestId: + - 26331f26-4446-40bf-b38e-52eb57435041 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items/1c08dd66-4b4b-4d95-b4ee-5144e9f63bac/connections + response: + body: + string: '{"value": []}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '32' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:42:47 GMT + Pragma: + - no-cache + RequestId: + - a59845dd-a12a-460f-afc0-fada89ed469e + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + 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": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3", + "displayName": "fabriccli_WorkspacePerTestclass_000001", "description": "", + "type": "Workspace", "capacityId": "00000000-0000-0000-0000-000000000004", + "capacityRegion": "Central US"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '3500' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:43:07 GMT + Pragma: + - no-cache + RequestId: + - 1e6254ab-ec7b-4e4b-b9b1-3dc0c25780a6 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: GET + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items + response: + body: + string: '{"value": [{"id": "b22731de-db10-400c-bd38-de03f40f3c22", "type": "SQLEndpoint", + "displayName": "fabcli000003", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}, + {"id": "1c08dd66-4b4b-4d95-b4ee-5144e9f63bac", "type": "SQLDatabase", "displayName": + "fabcli000003", "description": "", "workspaceId": "f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3"}]}' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '212' + Content-Type: + - application/json; charset=utf-8 + Date: + - Wed, 01 Jul 2026 19:43:07 GMT + Pragma: + - no-cache + RequestId: + - 91497178-46df-46e9-90ad-90851f783777 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - ms-fabric-cli-test/1.6.1 + method: DELETE + uri: https://api.fabric.microsoft.com/v1/workspaces/f54ac349-b5a9-41bd-acd1-81f9ed9ec0f3/items/1c08dd66-4b4b-4d95-b4ee-5144e9f63bac + response: + body: + string: '' + headers: + Access-Control-Expose-Headers: + - RequestId + Cache-Control: + - no-store, must-revalidate, no-cache + Content-Encoding: + - gzip + Content-Length: + - '0' + Content-Type: + - application/octet-stream + Date: + - Wed, 01 Jul 2026 19:43:08 GMT + Pragma: + - no-cache + RequestId: + - b5c7dd8a-b154-4de9-b3c7-03e6c172b81b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - deny + home-cluster-uri: + - https://wabi-us-central-b-primary-redirect.analysis.windows.net/ + request-redirected: + - 'true' + status: + code: 200 + message: OK version: 1 From 071a2d5f80e12c62216661d8466911386b8c3efa Mon Sep 17 00:00:00 2001 From: aviatco <32952699+aviatco@users.noreply.github.com> Date: Wed, 1 Jul 2026 22:56:27 +0300 Subject: [PATCH 21/22] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/fabric_cli/utils/fab_cmd_mkdir_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py index 7ef40b4da..aa0e8da15 100644 --- a/src/fabric_cli/utils/fab_cmd_mkdir_utils.py +++ b/src/fabric_cli/utils/fab_cmd_mkdir_utils.py @@ -828,7 +828,9 @@ def _build_sql_database_creation_payload_if_exists(params: dict) -> dict: ) -def _validate_required_params(params: dict[str, object], required: list[str], error_message: str) -> None: +def _validate_required_params( + params: dict[str, object], required: list[str], error_message: str +) -> None: """Raise a FabricCLIError when any required param is missing or empty. 'required' is a list of (key) param names to look up in 'params'. From a14ff9ba763f9767ec43cb8a1e57de0e0d148d1a Mon Sep 17 00:00:00 2001 From: Aviat Cohen Date: Wed, 1 Jul 2026 19:57:43 +0000 Subject: [PATCH 22/22] revert is_record_mode False check --- tests/test_commands/test_mkdir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_commands/test_mkdir.py b/tests/test_commands/test_mkdir.py index 95cf6c1df..ef7e3898f 100644 --- a/tests/test_commands/test_mkdir.py +++ b/tests/test_commands/test_mkdir.py @@ -284,7 +284,8 @@ def test_mkdir_sqldatabase_restore_and_restore_deleted_with_creation_payload_suc ): # This test relies on live restore windows and non-deterministic # restorableDeletedDatabaseName values, so it is skipped in live/record mode. - if is_record_mode() == False: + # If you want to run this test in live mode, you can comment out the skip statement below, but be aware that it may fail if the restore window is not open or if the restorableDeletedDatabaseName is not available yet. + if is_record_mode(): pytest.skip("Skipping restore/restore-deleted test in live (record) mode") # Setup - create a source SQLDatabase (mode=New) to restore from