-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[SQL] az sql instance-pool
: Add instance pools command group
#11721
Conversation
@Juliehzl please help with the PR. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py
Outdated
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py
Show resolved
Hide resolved
please locally try Because you mark your test as record_only, --live will be skipped when you already have recording file. please remove them and run |
Hi @rohands, please also update history.rst file for your new features supported. |
|
Added |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py
Outdated
Show resolved
Hide resolved
'tier', | ||
arg_type=tier_param_type, | ||
required=True, | ||
help='The edition component of the sku. Allowed values: GeneralPurpose, BusinessCritical.') |
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 use get_enum_type() here and delete " Allowed values: GeneralPurpose, BusinessCritical."
c.argument('family', | ||
arg_type=family_param_type, | ||
required=True, | ||
help='The compute generation component of the sku. ' |
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.
The same as above. Please use get_enum_type()
@rohands OK, move to next Sprint currently. |
src/azure-cli/HISTORY.rst
Outdated
@@ -6,6 +6,11 @@ Release History | |||
2.3.1 | |||
++++++ | |||
|
|||
**SQL** |
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.
This part should be removed and add it in description.
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.
No need to change history.rst because we will generate it automatically.
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.
Oh okay, where is the description section?
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.
#11721 (comment) or title
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py
Show resolved
Hide resolved
expect_failure=True) | ||
|
||
# test show sql managed instance doesn't return anything | ||
self.cmd('sql instance-pool show -g {} -n {}' |
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.
You can use list
to count instance number.
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.
I mean we need a test case with list
command and check the amount of array.
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.
Included this
Not sure why CLI tests are failing as a apart of automation. azdev test sql is successful locally.
Do I need to update my version and re-record the tests? |
add to S169 |
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.
- Still no list command in test.
- Please fix style using
azdev style sql
- Please fix test for network by syncing with latest dev
|
JMESPathCheck('resourceGroup', resource_group), | ||
JMESPathCheck('tags', {})]) | ||
|
||
self.cmd('sql instance-pool list', checks=[self.greater_than('length(@)', 1)]) |
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.
Could we check with a accurate 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.
Yes, will do
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.
I mean why not use accurate value here, instead of greater_than(). Is there any concern?
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).
I adhere to the Command Guidelines.