-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[SIGNALR] az signalr create/update: Add new option --enable-messaging-logs
#15327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
SIGNALR |
|
|
||
| def signalr_create(client, signalr_name, resource_group_name, | ||
| sku, unit_count=1, location=None, tags=None, service_mode='Default', allowed_origins=None, default_action="Allow"): | ||
| sku, unit_count=1, location=None, tags=None, service_mode='Default', enable_message_logs='False', allowed_origins=None, default_action="Allow"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When using get_three_state_flag, the parameter should be a bool instead of string. Then, user can still use the lowercase true/false in commend line
|
|
||
| def signalr_create(client, signalr_name, resource_group_name, | ||
| sku, unit_count=1, location=None, tags=None, service_mode='Default', allowed_origins=None, default_action="Allow"): | ||
| sku, unit_count=1, location=None, tags=None, service_mode='Default', enable_message_logs='False', allowed_origins=None, default_action="Allow"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make enable_messahe_logs=False, not 'False'
| tags_key = 'key' | ||
| tags_val = 'value' | ||
| service_mode = 'Classic' | ||
| enable_message_logs = 'True' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use True not 'True'
|
|
||
| # Test update | ||
| self.cmd('az signalr update -n {signalr_name} -g {rg} --sku {updated_sku} --tags {updated_tags} --service-mode {update_service_mode}', | ||
| self.cmd('az signalr update -n {signalr_name} -g {rg} --sku {updated_sku} --tags {updated_tags} --service-mode {update_service_mode} --enable-message-logs {update_enable_message_logs}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add test for --enable-message-logs false in not string variable.
Check value with boolean False, not string if the output type is boolean for features[1].value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Juliehzl Test added for --enable-message-logs false.
The check value is string since the SignalrFeature.value is a string.
Juliehzl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Add a new option
--enable-messaging-logsfor signalr, which can setup theEnableMessagingLogsinFeatureFlags. It's used to control whether the signalr service generate messaging logs or not.Testing Guide
Use
az signalr update -n <SIGNALR_NAME> -g <RESOURCE_GROUP> --enable-messaging-logs Trueto make signalr service start to generate messaing log for signalr instance SIGNALR_NAME in resource group RESOURCE_GROUP.Use
azdev test signalrto test includingaz signalr createandaz signalr updateHistory Notes
[SIGNALR] az signalr create: Add new option
--enable-messaging-logsfor controling service generate messaging logs or not[SIGNALR] az signalr update: Add new option
--enable-messaging-logsfor controling service generate messaging logs or notThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.