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]>