Skip to content

Conversation

@phracek
Copy link
Member

@phracek phracek commented Nov 6, 2025

Add Container PyTest suite to s2i-ruby container.
Migration matrix is following:

For db, puma, rack applications are classes:
db -> TestRubyHelloWorldContainer
puma -> TestRubyPumaTestAppContainer
rack -> TestRubyRackTestAppContainer

test_docker_run_usage -> test_container_basics.py->TestS2IRubyContainer(test_docker_run_usage)
test_application -> test_application in each class
test_connection -> test_application in each class in assert
test_response -> test_application in each class in assert
test_scl_usage -> test_container_basics.py->TestS2IRubyContainer(test_scl_usage)
test_npm_functionality -> test_container_basics.py->TestRubyNPMtestContainer
test_ruby_fips_mode -> test_container_fips.py->TestRubyFipsModeContainer(test_fips_mode)
test_ruby_fips_s2i_app -> test_container_fips.TestRubyFipsApplicationContainer(test_application)
test_from_dockerfile -> test_container_basics.py -> TestS2IRubyContainer(test_dockerfiles)
test_from_dockerfile.s2i -> test_container_basics.py -> TestS2IRubyContainer(test_dockerfiles)

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

Pull Request validation

Failed

🔴 Review - Missing review from a member (1 required)

Success

🟢 CI - All checks have passed

@phracek
Copy link
Member Author

phracek commented Nov 6, 2025

[test-pytest][test-openshift-pytest]

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
Fedora - PyTest - 3.3Fedora-latestx86_64✅ passed08.01.2026 10:23:1410min 7stest pipeline
RHEL10 - PyTest - OpenShift 4 - 3.3RHEL-10-Nightlyx86_64✅ passed17.12.2025 09:30:5623min 55stest pipeline
CentOS Stream 10 - PyTest - 3.3CentOS-Stream-10x86_64✅ passed08.01.2026 10:23:0611min 53stest pipeline
RHEL8 - PyTest - OpenShift 4 - 2.5RHEL-8.10.0-Nightlyx86_64✅ passed17.12.2025 09:28:4034min test pipeline
RHEL8 - PyTest - OpenShift 4 - 3.3RHEL-8.10.0-Nightlyx86_64✅ passed17.12.2025 09:29:1522min 25stest pipeline
RHEL9 - PyTest - OpenShift 4 - 3.3RHEL-9.6.0-Nightlyx86_64✅ passed17.12.2025 09:33:2128min 42stest pipeline
RHEL8 - PyTest - 3.3RHEL-8.10.0-Nightlyx86_64✅ passed08.01.2026 10:23:0620min 6stest pipeline
RHEL9 - PyTest - OpenShift 4 - 3.0RHEL-9.6.0-Nightlyx86_64✅ passed17.12.2025 09:28:4342min 47stest pipeline
RHEL9 - PyTest - 3.3RHEL-9.6.0-Nightlyx86_64✅ passed08.01.2026 10:23:0620min 8stest pipeline
RHEL8 - PyTest - 2.5RHEL-8.10.0-Nightlyx86_64✅ passed08.01.2026 11:26:3119min 6stest pipeline
RHEL9 - PyTest - 3.0RHEL-9.6.0-Nightlyx86_64✅ passed08.01.2026 10:23:0626min 25stest pipeline
RHEL10 - PyTest - 3.3RHEL-10-Nightlyx86_64✅ passed08.01.2026 10:23:1819min 54stest pipeline
Fedora - 3.3Fedora-latestx86_64✅ passed17.12.2025 09:08:0510min 34stest pipeline
CentOS Stream 10 - 3.3CentOS-Stream-10x86_64✅ passed17.12.2025 09:21:0410min 19stest pipeline
RHEL10 - 3.3RHEL-10-Nightlyx86_64✅ passed17.12.2025 09:08:1720min 11stest pipeline
RHEL8 - 3.3RHEL-8.10.0-Nightlyx86_64✅ passed17.12.2025 09:08:0419min 30stest pipeline
RHEL10 - FIPS Enabled - 3.3RHEL-10-Nightlyx86_64✅ passed18.11.2025 15:35:1220min 46stest pipeline
RHEL8 - OpenShift 4 - 3.3RHEL-8.10.0-Nightlyx86_64✅ passed08.01.2026 10:23:2920min 16stest pipeline
RHEL9 - 3.3RHEL-9.6.0-Nightlyx86_64✅ passed17.12.2025 09:08:0325min 25stest pipeline
RHEL8 - 2.5RHEL-8.10.0-Nightlyx86_64✅ passed18.11.2025 15:35:1522min 13stest pipeline
RHEL9 - 3.0RHEL-9.6.0-Nightlyx86_64✅ passed17.12.2025 09:08:2033min 15stest pipeline
RHEL9 - FIPS Enabled - 3.3RHEL-9.6.0-Nightlyx86_64✅ passed17.12.2025 09:08:0534min 30stest pipeline
RHEL9 - OpenShift 4 - 3.3RHEL-9.6.0-Nightlyx86_64✅ passed08.01.2026 10:23:2725min 58stest pipeline
RHEL9 - FIPS Enabled - 3.0RHEL-9.6.0-Nightlyx86_64✅ passed17.12.2025 09:08:0441min 52stest pipeline
RHEL10 - OpenShift 4 - 3.3RHEL-10-Nightlyx86_64✅ passed08.01.2026 09:39:0620min 1stest pipeline
RHEL8 - OpenShift 4 - 2.5RHEL-8.10.0-Nightlyx86_64✅ passed08.01.2026 10:23:2627min 53stest pipeline
RHEL9 - OpenShift 4 - 3.0RHEL-9.6.0-Nightlyx86_64✅ passed08.01.2026 10:23:2736min 42stest pipeline
RHEL10 - Unsubscribed host - PyTest - 3.3RHEL-10-Nightlyx86_64✅ passed08.01.2026 10:23:0720min 6stest pipeline
RHEL10 - Unsubscribed host - 3.3RHEL-10-Nightlyx86_64✅ passed17.12.2025 09:08:5019min 58stest pipeline
RHEL9 - Unsubscribed host - PyTest - 3.3RHEL-9.6.0-Nightlyx86_64✅ passed08.01.2026 10:23:1420min 1stest pipeline
RHEL9 - Unsubscribed host - 3.3RHEL-9.6.0-Nightlyx86_64✅ passed17.12.2025 09:08:1923min 46stest pipeline
RHEL9 - Unsubscribed host - 3.0RHEL-9.6.0-Nightlyx86_64✅ passed17.12.2025 09:08:1930min 49stest pipeline
RHEL9 - Unsubscribed host - PyTest - 3.0RHEL-9.6.0-Nightlyx86_64✅ passed08.01.2026 10:23:0825min 55stest pipeline

@phracek
Copy link
Member Author

phracek commented Nov 7, 2025

[test-pytest][test-openshift-pytest]

@phracek
Copy link
Member Author

phracek commented Nov 18, 2025

[test-all]

@phracek
Copy link
Member Author

phracek commented Dec 17, 2025

Rebased agains master.

[test-all]

Copy link
Contributor

@jackorp jackorp left a comment

Choose a reason for hiding this comment

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

I cannot promise that this review is by any means exhaustive to the last letter of the changes.

Bar the incorrect docstrings, there are some opportunities to refactor, PTAL.

@phracek phracek force-pushed the container_pytests branch 3 times, most recently from 8a29592 to 019f055 Compare January 8, 2026 09:15
@phracek
Copy link
Member Author

phracek commented Jan 8, 2026

[test-pytest][test-openshift]

Migration matrix is following:

For db, puma, rack applications are classes:
db -> TestRubyHelloWorldContainer
puma -> TestRubyPumaTestAppContainer
rack -> TestRubyRackTestAppContainer

test_docker_run_usage -> test_container_basics.py->TestS2IRubyContainer(test_docker_run_usage)

test_application -> test_application in each class

test_connection -> test_application in each class in assert

test_response -> test_application in each class in assert

test_scl_usage -> test_container_basics.py->TestS2IRubyContainer(test_scl_usage)

test_npm_functionality -> test_container_basics.py->TestRubyNPMtestContainer

test_ruby_fips_mode ->
test_container_fips.py->TestRubyFipsModeContainer(test_fips_mode)

test_ruby_fips_s2i_app ->
test_container_fips.TestRubyFipsApplicationContainer(test_application)

test_from_dockerfile -> test_container_basics.py ->
TestS2IRubyContainer(test_dockerfiles)

test_from_dockerfile.s2i -> test_container_basics.py ->
TestS2IRubyContainer(test_dockerfiles)

Signed-off-by: Petr "Stone" Hracek <[email protected]>
Do not run FIPS tests on RHEL8

Signed-off-by: Petr "Stone" Hracek <[email protected]>
phracek and others added 10 commits January 8, 2026 11:19
Fix skipping RHEL8 tests for FIPS.

Signed-off-by: Petr "Stone" Hracek <[email protected]>
Build app once and test it.

Signed-off-by: Petr "Stone" Hracek <[email protected]>
Co-authored-by: Jarek Prokop <[email protected]>
fix test_name. Copy paste error

Update documentation text in function

Co-authored-by: Jarek Prokop <[email protected]>
Move DEPLOYED_PSQL_IMAGE to conftest.py

Do not duplication functions in test_ocp_s2i_rails_ex_templates.
Move the functionality to test_ocp_s2i_local_templates.py

Signed-off-by: Petr "Stone" Hracek <[email protected]>
test_ocp_s2i_local_templates.py

Signed-off-by: Petr "Stone" Hracek <[email protected]>
@phracek phracek force-pushed the container_pytests branch from 31d8c65 to 0f88172 Compare January 8, 2026 10:20
@phracek
Copy link
Member Author

phracek commented Jan 8, 2026

[test-pytest][test-openshift]

@phracek
Copy link
Member Author

phracek commented Jan 8, 2026

@jackorp PTAL one more time. Thanks. In case all is good, just Approve it.

@phracek phracek merged commit bdfe6d4 into master Jan 12, 2026
18 checks passed
@phracek phracek deleted the container_pytests branch January 12, 2026 09:30
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.

3 participants