Skip to content

Commit b0e1ca4

Browse files
committed
Add PyTest also for Minimal NodeJS container
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 <phracek@redhat.com>
1 parent b2fd72a commit b0e1ca4

File tree

15 files changed

+15
-0
lines changed

15 files changed

+15
-0
lines changed

20-minimal/test/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/__init__.py

20-minimal/test/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/conftest.py

20-minimal/test/run-pytest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/run-pytest
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/test_container_apps.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/test_container_basics.py

22-minimal/test/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/__init__.py

22-minimal/test/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/conftest.py

22-minimal/test/run-pytest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/run-pytest
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/test_container_apps.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../test/test_container_basics.py

0 commit comments

Comments
 (0)