-
Notifications
You must be signed in to change notification settings - Fork 89
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
Get rid of privs comparison #243
Get rid of privs comparison #243
Conversation
Codecov Report
@@ Coverage Diff @@
## main #243 +/- ##
==========================================
+ Coverage 77.61% 77.99% +0.38%
==========================================
Files 24 24
Lines 2171 2159 -12
Branches 510 508 -2
==========================================
- Hits 1685 1684 -1
+ Misses 319 309 -10
+ Partials 167 166 -1
Continue to review full report at Codecov.
|
For the moment I removed all priv comparison code. There's already some try/catch blocks which catch |
Also I'm new with I tried locally to set |
04942d1
to
5d12957
Compare
5d12957
to
ce3f706
Compare
@rsicart thanks for doing this! |
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.
@rsicart thanks for working on this!
If we see CI green, it would be great
tests/integration/targets/test_mysql_user/tasks/test_priv_append.yml
Outdated
Show resolved
Hide resolved
CI doesn't pass because of python2. I used a |
Unfortunately we can't drop Python 2 support (at least in the near future) because this collection is included in Ansible package and it requires support of Python versions that supported by all supported Ansible versions:) |
We also don't test against MariaDB. It would be really great to add it to our CI (i'd say it's vital to have it). I created an issue recently where help_wanted #238. So at least for now manual testing against MariaDB will be required. |
@rsicart thanks for working on this!
Thank you |
fb38886
to
5ed6680
Compare
I agree that having tests for mariadb is vital. I just tested manually using docker on my computer and different version of mysql (5.6, 5.7, 8.0) and mariadb (10.4, 10.5). I tried to add Then I checked what kind of exception is raised by mysql modules (pymysql, mysqldb) in order to catch them, and I wrote integration tests to complete. But doing that every time is annoying, automated testing for mariadb should be available in CI too! |
There has been a plan to implement testing against MariaDB for quite some time now, but it is not quite a trivial task as it turns out so we haven't gotten around to it. Recent changes to the requirements for the testing versions have further delayed that task. I do have a mind to have a go at it if there's no progress on that front but I've been quite caught up otherwise. All in all, this is in the backlog. |
@rsicart thanks for working on this! Sorry for the later reply, was on PTO. Everything looks good. Thank you for adding the tests! |
@rsicart @Jorge-Rodriguez @bmalynovytch i didn't notice that this PR marked with |
I'm good with 3.0.0 |
SUMMARY
Fixes #234
ISSUE TYPE
COMPONENT NAME
user, mysql_user, mysql_role
ADDITIONAL INFORMATION
See #234 for more details.