-
Notifications
You must be signed in to change notification settings - Fork 59
Container pytests #346
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
Container pytests #346
Conversation
Pull Request validationFailed🔴 Failed or pending statuses:
🔴 Review - Missing review from a member (1 required) |
Testing Farm results
|
fb343d5 to
46bd6dc
Compare
|
Let's try first round of tests. RHEL9 and version 5.32 passed [test-pytest] |
|
This has to be reviewed as from Perl Container point of view as from Python point of view. So 2 approvals are needed. |
|
Before I do a review here, could you please take a look at: sclorg/s2i-python-container#759 You might like some of the improvements I've proposed for Python container and they might be implemented here as well. |
8cb6839 to
9eee22a
Compare
Signed-off-by: Petr "Stone" Hracek <[email protected]>
as is mentioned in test/run script.
New test files are added:
test/run-pytest .. that runs PyTest alone
test/test_container_basics.py
test/test_container_s2i.py
All files are added as symlinks to each version.
Migration matrix is:
test_sample_test_app -> test_container_s2i.py class TestPerlSampleTestAppContainer
test_binpath -> test_container_s2i.py parametrized TestPerlExampleAppContainer
test_psgi -> test_container_s2i.py parametrized TestPerlExampleAppContainer
test_fcgi -> test_container_s2i.py parametrized TestPerlExampleAppContainer
test_psgi_variables -> test_container_s2i.py parametrized TestPerlExampleAppContainer
test_warningonstderr -> test_container_s2i.py parametrized TestPerlExampleAppContainer
test_psgi_hot_deploy_without_reload -> test_container_s2i.py parametrized TestPerlHotDeployAppContainer
test_psgi_hot_deploy_with_reload -> test_container_s2i.py parametrized TestPerlHotDeployAppContainer
test_npm -> test_container_s2i.py parametrized TestPerlNPMtestContainer
test_from_dockerfile -> test_container_basics.py class TestPerlContainer
test_scl_usage -> test_container_basics.py class TestPerlContainer
test_docker_run_usage -> test_container_basics.py class TestPerlContainer
test_run_s2i_usage -> test_container_basics.py class TestPerContainer
Signed-off-by: Petr "Stone" Hracek <[email protected]>
./run-pytest ./test_container_basics.py ./test_container_s2i.py ./conftest.py Signed-off-by: Petr "Stone" Hracek <[email protected]>
9eee22a to
1aa7537
Compare
Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
Re-written like it is done in sclorg/s2i-python-container#759 Let's test it |
Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
@frenzymadness The tests have been rewritten based on your small improvements in s2i-python-container. So PTAL. Not urgent. |
frenzymadness
left a comment
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.
Overall, it looks very good to me. Just a few minor comments.
what we tests. Add description, why sleep(3) is present in HotPlug test Signed-off-by: Petr "Stone" Hracek <[email protected]>
f8d42b1 to
3491af1
Compare
Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
[test-pytest][test-openshift] |
frenzymadness
left a comment
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.
I skimmed through it again, and it looks good to me.
This pull request adds support for testing container by PyTest suite.
New test files are added:
All files are added as symlinks to each version.
Migration matrix is:
test_sample_test_app->test_container_s2i.pyclass TestPerlSampleTestAppContainertest_binpath->test_container_s2i.pyparametrized TestPerlExampleAppContainertest_psgi->test_container_s2i.pyparametrized TestPerlExampleAppContainertest_fcgi->test_container_s2i.pyparametrized TestPerlExampleAppContainertest_psgi_variables->test_container_s2i.pyparametrized TestPerlExampleAppContainertest_warningonstderr->test_container_s2i.pyparametrized TestPerlExampleAppContainertest_psgi_hot_deploy_without_reload->test_container_s2i.pyparametrized TestPerlHotDeployAppContainertest_psgi_hot_deploy_with_reload->test_container_s2i.pyparametrized TestPerlHotDeployAppContainertest_npm->test_container_s2i.pyparametrized TestPerlNPMtestContainertest_from_dockerfile->test_container_basics.pyclass TestPerlContainertest_scl_usage->test_container_basics.pyclass TestPerlContainertest_docker_run_usage->test_container_basics.pyclass TestPerlContainertest_run_s2i_usage->test_container_basics.pyclass TestPerContainer