-
Notifications
You must be signed in to change notification settings - Fork 290
Add container-pytest to NodeJS Container #511
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
Conversation
Testing Farm results
|
Signed-off-by: Petr "Stone" Hracek <[email protected]>
Signed-off-by: Petr "Stone" Hracek <[email protected]>
d222188 to
a5302ce
Compare
Signed-off-by: Petr "Stone" Hracek <[email protected]>
The bash tests were migrated to PyTest by following matrix: APP without any -e DEV_MODE or -e NODE_ENV - test_run_app_application -> test_container_apps.py(TestNodeJSAppContainer class) - test_s2i_usage -> test_container_basics.py(TestNodeJSAppContainer class) - test_scl_usage -> test_container_basics.py(TestNodeJSAppContainer class) - test_connection -> test_container_apps.py each Class - test_docker_run_usage -> test_container_basics.py(TestNodeJSAppContainer class) test_container_basics.py(TestNodeJSAppContainer class) - test_npm_functionality - test_check_build_using_dockerfile -> test_container_basics.py(TestNodeJSAppContainer class) - test_nodemon_removed - test_npm_cache_cleared -> test_container_apps.py(TestNodeJSAppContainer class) - test_npm_tmp_cleared -> test_container_apps.py(TestNodeJSAppContainer class) - kill_test_application -> Not needed. Cleanup is done by each test. - test_dev_mode_true_development -> test_container_apps.py(TestNodeJSAppContainer class) - test_dev_mode_false_production -> test_container_apps.py(TestNodeJSAppContainer class) - test_node_cmd_development_init_wrapper_true -> test_container_apps.py(TestNodeJSAppContainer class) - test_node_cmd_production_init_wrapper_true -> test_container_apps.py(TestNodeJSAppContainer class) - test_node_cmd_development_init_wrapper_false -> test_container_apps.py(TestNodeJSAppContainer class) - test_init_wrapper_true_development -> test_container_apps.py(TestNodeJSAppContainer class) - test_init_wrapper_false_development -> test_container_apps.py(TestNodeJSAppContainer class) APP with -e NODE_ENV test_run_app_application -> test_container_apps.py(TestNodeJSAppsWithNodeEnvDevelopmenntContainer class) test_connection -> tested by each test test_nodemon_present -> test_container_apps.py(TestNodeJSAppsWithNodeEnvDevelopmenntContainer class) test_npm_cache_exists -> test_container_apps.py(TestNodeJSAppsWithNodeEnvDevelopmenntContainer class) kill_test_application -> not needed. Cleanup does it by each test test_dev_mode_true_development -> test_container_apps.py(TestNodeJSAppsWithNodeEnvDevelopmenntContainer class) test_dev_mode_false_development -> test_container_apps.py(TestNodeJSAppsWithNodeEnvDevelopmenntContainer class) test_node_cmd_development_init_wrapper_true -> test_container_apps.py(TestNodeJSAppsWithNodeEnvDevelopmenntContainer class) test_node_cmd_production_init_wrapper_true -> test_container_apps.py(TestNodeJSAppsWithNodeEnvDevelopmenntContainer class) test_node_cmd_production_init_wrapper_false -> test_container_apps.py(TestNodeJSAppsWithNodeEnvDevelopmenntContainer class) APP with DEV_MODE test_run_app_application -> test_container_apps(TestNodeJSAppsWithDevModeTrueContainer class) test_connection -> tested by each test by response test_nodemon_present -> test_container_apps(TestNodeJSAppsWithDevModeTrueContainer class) test_npm_cache_exists -> test_container_apps(TestNodeJSAppsWithDevModeTrueContainer class) kill_test_application -> Not needed. It is done by each cleanup test_dev_mode_true_development -> test_container_apps(TestNodeJSAppsWithDevModeTrueContainer class) test_dev_mode_false_production -> test_container_apps(TestNodeJSAppsWithDevModeTrueContainer class) HW tests: - test_safe_logging -> test_container_apps(TestNodeJSAppsHWContainer class) - test_run_hw_application -> test_container_apps(TestNodeJSAppsHWContainer class) - test_incremental_build -> test_container_apps(TestNodeJSAppsHWContainer class) - test_build_express_webapp -> test_container_apps(TestNodeJSAppsHWContainer class) - test_node_cmd_development_init_wrapper_true -> test_container_apps(TestNodeJSAppsHWContainer class) - test_init_wrapper_false_development -> test_container_apps(TestNodeJSAppsHWContainer class) FIPS tests: - test_nodejs_fips_mode -> test_container_basics.py(TestNodeJSFipsContainer class) - test_run_fips_app_application -> test_container_basics.py(TestNodeJSFipsContainer class) Signed-off-by: Petr "Stone" Hracek <[email protected]>
as test.js file Signed-off-by: Petr "Stone" Hracek <[email protected]>
318cd45 to
803e341
Compare
Signed-off-by: Petr "Stone" Hracek <[email protected]>
they are not tested. Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
Add test-fips to minimal versions. [test-pytest][test-openshift] |
|
RHEL10 failures are mentioned here: #509 |
Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
[test-pytest][test-openshift][test-openshift-pytest] |
|
@frenzymadness PTAL as you will have a bit more time. Thanks. |
Signed-off-by: Petr "Stone" Hracek <[email protected]>
14eeeb0 to
16ac561
Compare
|
[test-pytest][test-openshift][test-openshift-pytest] |
Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
[test-pytest][test-openshift-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.
Looks good. Just a handful of nitpicks, nothing serious found.
Also remove node_cmd parameter, it is the same for all issues. Add comments to each function so we know what it does. Signed-off-by: Petr "Stone" Hracek <[email protected]>
|
[test-pytest][test-openshift-pytest] |
|
[test] |
|
RHEL10 failures are expected. See issue heree #509 |
This pull request adds PyTest suite for NodeJS Container.
The bash tests were migrated to PyTest by following matrix:
APP without any -e DEV_MODE or -e NODE_ENV
test_container_apps.py(TestNodeJSAppContainer class)
class)
class)
test_container_basics.py(TestNodeJSAppContainer class)
test_container_basics.py(TestNodeJSAppContainer class)
test_container_basics.py(TestNodeJSAppContainer class)
test_container_apps.py(TestNodeJSAppContainer class)
class)
class)
class)
class)
class)
class)
class)
class)
APP with -e NODE_ENV
class)
class)
class)
class)
class)
class)
class)
class)
APP with DEV_MODE
HW tests:
test_container_apps(TestNodeJSAppsHWContainer class)
test_container_apps(TestNodeJSAppsHWContainer class)
test_container_apps(TestNodeJSAppsHWContainer class)
test_container_apps(TestNodeJSAppsHWContainer class)
test_container_apps(TestNodeJSAppsHWContainer class)
test_container_apps(TestNodeJSAppsHWContainer class)
FIPS tests:
test_container_basics.py(TestNodeJSFipsContainer class)
test_container_basics.py(TestNodeJSFipsContainer class)