Skip to content

Commit e418795

Browse files
Costas Papastathisgithub-actions[bot]
Costas Papastathis
authored andcommitted
adding missing library
1 parent aa852d7 commit e418795

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

test/test-lib-nodejs.sh

+25
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,31 @@ test_incremental_build() {
356356

357357
}
358358

359+
test_node_cmd() {
360+
local app=$1
361+
local node_env=$2
362+
local init_wrapper=$3
363+
local node_cmd=$4
364+
365+
run_test_application_with_quoted_args $app "-e NODE_ENV=$node_env -e INIT_WRAPPER=$init_wrapper -e NODE_CMD=$node_cmd"
366+
logs=$(container_logs)
367+
wait_for_cid
368+
369+
test_connection
370+
ct_check_testcase_result $?
371+
372+
logs=$(container_logs)
373+
echo ${logs} | grep -q DEBUG_PORT=5858
374+
ct_check_testcase_result $?
375+
echo ${logs} | grep -q NODE_ENV=$node_env
376+
ct_check_testcase_result $?
377+
echo ${logs} | grep -q INIT_WRAPPER=$init_wrapper
378+
ct_check_testcase_result $?
379+
echo ${logs} | grep -q NODE_CMD="$node_cmd"
380+
ct_check_testcase_result $?
381+
382+
kill_test_application
383+
}
359384

360385
# test express webapp
361386
run_s2i_build_express_webapp() {

0 commit comments

Comments
 (0)