Skip to content

Commit

Permalink
Remove two breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Zhang committed Aug 8, 2024
1 parent 1938310 commit cd78725
Show file tree
Hide file tree
Showing 6 changed files with 2,588 additions and 2,826 deletions.
8 changes: 4 additions & 4 deletions src/amg/azext_amg/aaz/latest/grafana/_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
enum={"Disabled": "Disabled", "Enabled": "Enabled"},
)
_args_schema.grafana_major_version = AAZStrArg(
options=["-v", "--grafana-major-version"],
options=["-v", "--major-version", "--grafana-major-version"],
arg_group="Properties",
help="The major Grafana software version to target.",
)
Expand All @@ -104,8 +104,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
# define Arg Group "Smtp"

_args_schema = cls._args_schema
_args_schema.enabled = AAZBoolArg(
options=["--enabled"],
_args_schema.smtp_enabled = AAZBoolArg(
options=["--smtp", "--smtp-enabled"],
arg_group="Smtp",
help="Enable this to allow Grafana to send email. Default is false",
default=False,
Expand Down Expand Up @@ -259,7 +259,7 @@ def content(self):

smtp = _builder.get(".properties.grafanaConfigurations.smtp")
if smtp is not None:
smtp.set_prop("enabled", AAZBoolType, ".enabled")
smtp.set_prop("enabled", AAZBoolType, ".smtp_enabled")
smtp.set_prop("fromAddress", AAZStrType, ".from_address")
smtp.set_prop("fromName", AAZStrType, ".from_name")
smtp.set_prop("host", AAZStrType, ".host")
Expand Down
2,990 changes: 1,472 additions & 1,518 deletions src/amg/azext_amg/tests/latest/recordings/test_amg_backup_restore.yaml

Large diffs are not rendered by default.

576 changes: 165 additions & 411 deletions src/amg/azext_amg/tests/latest/recordings/test_amg_crud.yaml

Large diffs are not rendered by default.

1,070 changes: 585 additions & 485 deletions src/amg/azext_amg/tests/latest/recordings/test_amg_e2e.yaml

Large diffs are not rendered by default.

326 changes: 140 additions & 186 deletions src/amg/azext_amg/tests/latest/recordings/test_api_key_e2e.yaml

Large diffs are not rendered by default.

444 changes: 222 additions & 222 deletions src/amg/azext_amg/tests/latest/recordings/test_service_account_e2e.yaml

Large diffs are not rendered by default.

0 comments on commit cd78725

Please sign in to comment.