Skip to content

Commit

Permalink
Move test_run_binary_application to 'upstream' tests
Browse files Browse the repository at this point in the history
Add support for testing 'test-upstream'
 RHEL7 is already obsoleted. Remove conditions

Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Feb 25, 2025
1 parent 00f5433 commit 955de02
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

if: |
github.event.issue.pull_request
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-all]'))
&& (contains(github.event.comment.body, '[test]') || contains(github.event.comment.body, '[test-upstream]') || contains(github.event.comment.body, '[test-all]'))
&& contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
steps:
- uses: sclorg/tfaga-wrapper@main
Expand Down
1 change: 0 additions & 1 deletion test/run
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ test_init_wrapper_false_development
"

TEST_LIST_BINARY="\
test_run_binary_application
test_node_cmd_development_init_wrapper_true
"

Expand Down
1 change: 1 addition & 0 deletions test/run-upstream
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ test_client_cloudevents
test_client_fastify
test_client_pino
test_client_langchainjs
test_run_binary_application
"

readonly EXPRESS_REVISION="${EXPRESS_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show express version)}"
Expand Down
35 changes: 11 additions & 24 deletions test/test-lib-nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -522,45 +522,32 @@ function test_dev_mode_true_development() {
}

function test_node_cmd_production_init_wrapper_false() {
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=production INIT_WRAPPER=false NODE_CMD="node server.js"
test_node_cmd app production false "node server.js"
fi
test_node_cmd app production false "node server.js"
}

function test_node_cmd_development_init_wrapper_true() {
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=development INIT_WRAPPER=true NODE_CMD="node server.js"
test_node_cmd app development true "node server.js"
fi
# NODE_ENV=development INIT_WRAPPER=true NODE_CMD="node server.js"
test_node_cmd app development true "node server.js"
}

function test_node_cmd_production_init_wrapper_true() {
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=production INIT_WRAPPER=true NODE_CMD="node server.js"
test_node_cmd app production true "node server.js"
fi
# NODE_ENV=production INIT_WRAPPER=true NODE_CMD="node server.js"
test_node_cmd app production true "node server.js"
}

function test_node_cmd_development_init_wrapper_false() {
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=development INIT_WRAPPER=false NODE_CMD="node server.js"
test_node_cmd app development false "node server.js"
fi
# NODE_ENV=development INIT_WRAPPER=false NODE_CMD="node server.js"
test_node_cmd app development false "node server.js"
}

function test_init_wrapper_true_development() {
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=development INIT_WRAPPER=true
test_node_cmd app development true
fi
# NODE_ENV=development INIT_WRAPPER=true
test_node_cmd app development true
}

function test_init_wrapper_false_development() {
if [ "$OS" != "rhel7" ]; then
# NODE_ENV=development INIT_WRAPPER=true
test_node_cmd app development false
fi
# NODE_ENV=development INIT_WRAPPER=true
test_node_cmd app development false
}

function test_dev_mode_false_development() {
Expand Down

0 comments on commit 955de02

Please sign in to comment.