-
Notifications
You must be signed in to change notification settings - Fork 11
fix: databases.get_many function, add integration test for it #105
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
stepansergeevitch
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.
Looks good. Left some comment regarding tests
| # get all databases, with name_contains | ||
| databases = rm.databases.get_many(name_contains=database_name) | ||
| assert len(databases) > 0 | ||
| assert database_name in {db.name for db in databases} |
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 also test passing attached_engine_name_eq and attached_engine_name_contains since we know it has engines.
Also, do you think we can test order_by?
We can just see how many databases there are from the first call, and if it's more that one we also try passing order_by
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.
Added tests for attached_engine_name_eq and attached_engine_name_contains. However, I would not do additional tests on order_by, since it looks likes we are re-implementing order_by functionality in the test
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.
We can still do some basic checks on order_by without re-implementing the functionality. e.g. checking that the parameter is propagated correctly and is added to the http request.
…olt-python-sdk into fix-databases-get-many
|
SonarCloud Quality Gate failed. |








No description provided.