Skip to content

Commit cd34669

Browse files
authored
[Mysql] BREAKING CHANGE: az mysql flexible-server create: Change default values for --auto-scale-iops, --version for MySQL (#30852)
* update code * Update _validators.py * update code * update test file * update * update lint * update * remove breaking change
1 parent 8c2dee5 commit cd34669

3 files changed

Lines changed: 726 additions & 539 deletions

File tree

src/azure-cli/azure/cli/command_modules/mysql/_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def load_arguments(self, _): # pylint: disable=too-many-statements, too-many-
113113
auto_scale_iops_arg_type = CLIArgumentType(
114114
arg_type=get_enum_type(['Enabled', 'Disabled']),
115115
options_list=['--auto-scale-iops'],
116-
help='Enable or disable the auto scale iops. Default value is Disabled.'
116+
help='Enable or disable the auto scale iops. Default value is Enabled.'
117117
)
118118

119119
accelerated_logs_arg_type = CLIArgumentType(
@@ -335,10 +335,10 @@ def load_arguments(self, _): # pylint: disable=too-many-statements, too-many-
335335
c.argument('tier', default='Burstable', arg_type=tier_arg_type)
336336
c.argument('sku_name', default='Standard_B1ms', arg_type=sku_name_arg_type)
337337
c.argument('storage_gb', default='32', arg_type=storage_gb_arg_type)
338-
c.argument('version', default='5.7', arg_type=version_arg_type)
338+
c.argument('version', default='8.0.21', arg_type=version_arg_type)
339339
c.argument('iops', arg_type=iops_arg_type)
340340
c.argument('auto_grow', default='Enabled', arg_type=auto_grow_arg_type)
341-
c.argument('auto_scale_iops', default='Disabled', arg_type=auto_scale_iops_arg_type)
341+
c.argument('auto_scale_iops', default='Enabled', arg_type=auto_scale_iops_arg_type)
342342
c.argument('accelerated_logs', arg_type=accelerated_logs_arg_type)
343343
c.argument('backup_retention', default=7, arg_type=mysql_backup_retention_arg_type)
344344
c.argument('backup_byok_identity', arg_type=backup_identity_arg_type)

src/azure-cli/azure/cli/command_modules/mysql/tests/latest/recordings/test_mysql_flexible_server_mgmt.yaml

Lines changed: 722 additions & 535 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/mysql/tests/latest/test_mysql_scenario.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _test_flexible_server_mgmt(self, database_engine, resource_group):
139139
self.cmd('config param-persist off')
140140

141141
storage_size = 32
142-
version = '5.7'
142+
version = '8.0.21'
143143
location = DEFAULT_LOCATION
144144
sku_name = DEFAULT_GENERAL_PURPOSE_SKU
145145
memory_optimized_sku = DEFAULT_MEMORY_OPTIMIZED_SKU

0 commit comments

Comments
 (0)