Add PyTest suite to mariadb-container#311
Conversation
|
[test-pytest] |
Pull Request validationFailed🔴 Review - Missing review from a member (1 required) Success🟢 CI - All checks have passed |
Testing Farm results
|
|
[test-pytest] |
|
re-trigger tests after a hude refactoring. [test][test-pytest] |
6bd423f to
f990c37
Compare
|
re-trigger tests after fixing issue on Fedora [test][test-pytest] |
|
[test][test-pytest] |
|
@frenzymadness PTAL in case you have free time. |
frenzymadness
left a comment
There was a problem hiding this comment.
This PR adds 1355 lines of code so it will take a while to review it. I'm submitting what I have so far so we can ping-pong small portions of it.
d218b68 to
2d65c49
Compare
|
@frenzymadness I have tryied to address all issues. As soon as you will have a spare time. Please look at this. Next time, we can add each test by simple PR for better review. It makes sense for me to PostgreSQL container. |
|
[test-pytest][test] |
frenzymadness
left a comment
There was a problem hiding this comment.
I've found some possible improvements, but nothing really serious, so do whatever you prefer with them and merge this PR then. Sorry it took me so long to do the review.
Migration matrix is: - run_container_creation_tests -> test_container_configuration.py(test_try_image_invalid_combinations, test_container_creation_fails, test_invalid_configuration_tests.py - run_configuration_tests -> test_container_configuration.py(TestMariaDBConfigurationTests and TestsMariaDBConfiguratioTest) TestMariaDB - run_general_tests -> test_container_general.py(test_run and test_datadir) - run_change_password_test -> test_container_password.py - run_change_password_new_user_test -> test_container_password.py - run_replication_test -> test_container_replication.py - run_s2i_test -> test_container_basics.py - run_ssl_test -> test_container_basics.py - run_upgrade_test -> test_container_upgrade.py - run_plugin_test -> test_container_plugin.py Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Lets' connect to proper DB including --disable certificates Let's check if Slave is really runnning before SQL command is called. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Call sql commands at once. Change initial names to understandable. Use DatabaseWrapper directly to call sql commands. Check mariadb configuration values together. Do not duplicate code. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
and parametrized it. It is easier to review code. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
is defined in VARS variable directly Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Update also description for better reading what each test does in case it is huge Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
if mariadb contains proper settings Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
The function is already part of container-ci-suite. Add several documentation part to the tests Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
c682ce5 to
b5fe0f6
Compare
Remove tests `test_datadir_actions` that is part of `test_container_upgrade.py`. So removed. For testing settings new_password and new_user only one function is used. Remove not needed comment Several documentation updates Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
b5fe0f6 to
80fcc2f
Compare
|
[test-pytest][test] |
sclorg/mariadb-container#311 Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
sclorg/mariadb-container#311 Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
sclorg/mariadb-container#311 Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
sclorg/mariadb-container#311 Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Migration matrix is: