Skip to content
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

chore: Add the cloudevents client to the testing suite. #384

Merged
merged 1 commit into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/run
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ test_client_prom
test_client_opossum
test_client_kube
test_client_faas
test_client_cloudevents
"

# If an app or a test is in UNSTABLE_TESTS and IGNORE_UNSTABLE_TESTS
Expand All @@ -99,6 +100,8 @@ readonly KUBESERVICEBINDINGS_REVISION="v${KUBESERVICEBINDINGS_REVISION:-$(docker
readonly KUBESERVICEBINDINGS_REPO="https://github.com/nodeshift/kube-service-bindings.git"
readonly FAASJSRUNTIME_REVISION="v${FAASJSRUNTIME_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show faas-js-runtime version)}"
readonly FAASJSRUNTIME_REPO="https://github.com/nodeshift/faas-js-runtime.git"
readonly CLOUDEVENTS_REVISION="v${CLOUDEVENTS_REVISION:-$(docker run --rm "${IMAGE_NAME}" -- npm show cloudevents version)}"
readonly CLOUDEVENTS_REPO="https://github.com/cloudevents/sdk-javascript.git"

source "${THISDIR}/test-lib.sh"
source "${THISDIR}/test-lib-nodejs.sh"
Expand Down
5 changes: 5 additions & 0 deletions test/test-lib-nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,11 @@ function test_client_faas() {
test_running_client_js faas-js-runtime
}

function test_client_cloudevents() {
echo "Running CloudEvents client test"
test_running_client_js cloudevents
}

function test_check_build_using_dockerfile() {
info "Check building using a Dockerfile"
ct_test_app_dockerfile ${THISDIR}/examples/from-dockerfile/Dockerfile 'https://github.com/sclorg/nodejs-ex.git' 'Welcome to your Node.js application on OpenShift' app-src
Expand Down