Container PyTest suite for mysql-container#421
Conversation
Pull Request validationFailed🔴 Approval - missing or changes were requested Success🟢 CI - All checks have passed |
Testing Farm results
|
1469234 to
8e81f48
Compare
|
[test][test-pytest] |
4399661 to
5639d0e
Compare
c42cf2a to
0b9003c
Compare
|
@frenzymadness I have rewritten this pull request based on the already reviewed mariadb-container PR sclorg/mariadb-container#311. So it should be easier ;) |
2d25558 to
4a285e3
Compare
|
[test-all] |
frenzymadness
left a comment
There was a problem hiding this comment.
First round done. Thank you for being so patient.
|
I've reported the |
d322b6f to
b6a9d8b
Compare
Migration matrix is here: - run_container_creation_tests -> test_container_configuration.py - run_configuration_tests -> test_container_configuration.py - run_general_tests -> test_container_general.py - run_change_password_test -> test_container_password.py - run_change_password_new_user_test -> test_container_password.py - run_replication_test -> Not Yet - run_s2i_test -> test_container_basics.py - run_ssl_test -> test_container_ssl.py - run_datadir_actions_test -> test_container_general.py Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Check configuration files in one command instead of several ones. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
sclorg/mariadb-container#311 Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
version Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Update also test_replication.py file (pre-commit issues) Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Use conftest.py and VARS tuple from this. Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com>
Use variable TEST_DIR instead of again definition. Check if both variables asserts. Use and operator Use already defined variable instead of hardcoding them Co-authored-by: Lumír 'Frenzy' Balhar <frenzy.madness@gmail.com> Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
done by @frenzymadness Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
b6a9d8b to
d9532f0
Compare
|
Rebased agains master [test-pytest] |
|
@frenzymadness Can I please ask you for one more review? Thanks |
frenzymadness
left a comment
There was a problem hiding this comment.
I'm not going to pretend I understand all the tests (the one changing passwords are super confusing to me), but I think this is good enough to be merged and improved in the future, if required.
I've identified one possible idea to simplify future maintenance, but feel free to ignore it or implement it later when needed.
| TAGS = { | ||
| "rhel8": "-el8", | ||
| "rhel9": "-el9", | ||
| "rhel10": "-el10", | ||
| } |
There was a problem hiding this comment.
Idea: Turn this into a function containing just tag.replace("rh", "-", 1) - that way, you'll never have to add anything here manually.
There was a problem hiding this comment.
This could be a part of container-ci-suite directly. Good point.
Container PyTest suite for mysql-container
Migration matrix is here: