Skip to content

Container PyTest suite for mysql-container#421

Merged
phracek merged 10 commits intosclorg:masterfrom
phracek:container_pytests
Mar 17, 2026
Merged

Container PyTest suite for mysql-container#421
phracek merged 10 commits intosclorg:masterfrom
phracek:container_pytests

Conversation

@phracek
Copy link
Member

@phracek phracek commented Nov 26, 2025

Container PyTest suite for mysql-container

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

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Pull Request validation

Failed

🔴 Approval - missing or changes were requested

Success

🟢 CI - All checks have passed
🟢 Review - Reviewed by a member

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
Fedora - PyTest - 8.4Fedora-latestx86_64✅ passed16.03.2026 13:19:4711min 33stest pipeline
Fedora - PyTest - 8.0Fedora-latestx86_64✅ passed16.03.2026 13:19:0911min 24stest pipeline
CentOS Stream 10 - PyTest - 8.4CentOS-Stream-10x86_64✅ passed16.03.2026 13:19:0813min 46stest pipeline
CentOS Stream 9 - PyTest - 8.4CentOS-Stream-9x86_64✅ passed16.03.2026 13:31:3816min 36stest pipeline
CentOS Stream 9 - PyTest - 8.0CentOS-Stream-9x86_64✅ passed16.03.2026 13:32:2314min 33stest pipeline
RHEL10 - PyTest - 8.4RHEL-10-Nightlyx86_64✅ passed16.03.2026 13:19:2418min 12stest pipeline
RHEL10 - Unsubscribed host - PyTest - 8.4RHEL-10-Nightlyx86_64✅ passed16.03.2026 13:19:0717min 41stest pipeline
RHEL8 - PyTest - 8.0RHEL-8.10.0-Nightlyx86_64✅ passed16.03.2026 13:03:2418min 36stest pipeline
RHEL9 - Unsubscribed host - PyTest - 8.4RHEL-9.6.0-Nightlyx86_64✅ passed16.03.2026 13:59:2620min 34stest pipeline
RHEL9 - PyTest - 8.0RHEL-9.6.0-Nightlyx86_64✅ passed16.03.2026 13:19:0823min 2stest pipeline
RHEL9 - PyTest - 8.4RHEL-9.6.0-Nightlyx86_64✅ passed16.03.2026 13:10:4021min 29stest pipeline
RHEL9 - Unsubscribed host - PyTest - 8.0RHEL-9.6.0-Nightlyx86_64✅ passed16.03.2026 13:19:0921min 49stest pipeline
RHEL9 - Unsubscribed host - 8.4RHEL-9.6.0-Nightlyx86_64✅ passed27.02.2026 12:11:0520min 15stest pipeline
RHEL9 - Unsubscribed host - 8.0RHEL-9.6.0-Nightlyx86_64✅ passed27.02.2026 12:10:4722min 20stest pipeline
Fedora - 8.0Fedora-latestx86_64✅ passed27.02.2026 12:56:5310min 37stest pipeline
RHEL10 - 8.4RHEL-10-Nightlyx86_64✅ passed27.02.2026 12:56:5116min 17stest pipeline
CentOS Stream 9 - 8.4CentOS-Stream-9x86_64✅ passed27.02.2026 12:56:5414min 44stest pipeline
Fedora - 8.4Fedora-latestx86_64✅ passed27.02.2026 12:56:5010min 42stest pipeline
CentOS Stream 10 - 8.4CentOS-Stream-10x86_64✅ passed27.02.2026 12:56:4813min 45stest pipeline
CentOS Stream 9 - 8.0CentOS-Stream-9x86_64✅ passed27.02.2026 12:56:5213min 36stest pipeline
RHEL10 - Unsubscribed host - 8.4RHEL-10-Nightlyx86_64✅ passed27.02.2026 12:56:4615min 32stest pipeline
RHEL8 - 8.0RHEL-8.10.0-Nightlyx86_64✅ passed27.02.2026 12:56:4917min 26stest pipeline
RHEL9 - 8.4RHEL-9.6.0-Nightlyx86_64✅ passed27.02.2026 12:56:5322min 51stest pipeline
RHEL9 - 8.0RHEL-9.6.0-Nightlyx86_64✅ passed27.02.2026 12:56:4821min 12stest pipeline
RHEL8 - PyTest - OpenShift 4 - 8.0RHEL-8.10.0-Nightlyx86_64✅ passed27.02.2026 13:11:1718min 37stest pipeline
RHEL10 - PyTest - OpenShift 4 - 8.4RHEL-10-Nightlyx86_64✅ passed02.03.2026 08:01:5317min 21stest pipeline
RHEL9 - PyTest - OpenShift 4 - 8.4RHEL-9.6.0-Nightlyx86_64✅ passed27.02.2026 13:11:0723min 19stest pipeline
RHEL9 - PyTest - OpenShift 4 - 8.0RHEL-9.6.0-Nightlyx86_64✅ passed27.02.2026 13:11:4526min 6stest pipeline

@phracek
Copy link
Member Author

phracek commented Dec 9, 2025

[test][test-pytest]

@phracek phracek force-pushed the container_pytests branch 2 times, most recently from c42cf2a to 0b9003c Compare February 27, 2026 11:42
@phracek
Copy link
Member Author

phracek commented Feb 27, 2026

@frenzymadness I have rewritten this pull request based on the already reviewed mariadb-container PR sclorg/mariadb-container#311. So it should be easier ;)

@phracek
Copy link
Member Author

phracek commented Feb 27, 2026

[test-all]

Copy link
Member

@frenzymadness frenzymadness left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First round done. Thank you for being so patient.

@frenzymadness
Copy link
Member

I've reported the assert cip, cid only once, but it's there multiple times.

@phracek phracek force-pushed the container_pytests branch 2 times, most recently from d322b6f to b6a9d8b Compare March 16, 2026 10:14
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>
phracek and others added 9 commits March 16, 2026 11:15
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>
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>
@phracek phracek force-pushed the container_pytests branch from b6a9d8b to d9532f0 Compare March 16, 2026 10:15
@phracek
Copy link
Member Author

phracek commented Mar 16, 2026

Rebased agains master

[test-pytest]

@phracek
Copy link
Member Author

phracek commented Mar 16, 2026

@frenzymadness Can I please ask you for one more review? Thanks

Copy link
Member

@frenzymadness frenzymadness left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +12 to +16
TAGS = {
"rhel8": "-el8",
"rhel9": "-el9",
"rhel10": "-el10",
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea: Turn this into a function containing just tag.replace("rh", "-", 1) - that way, you'll never have to add anything here manually.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a part of container-ci-suite directly. Good point.

@phracek phracek merged commit 4221403 into sclorg:master Mar 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants