Skip to content

Commit

Permalink
BATS: k8s/spinkube-npm: Fix expected text
Browse files Browse the repository at this point in the history
The spin-js-sdk template was updated at some point to print different text
which caused tests to fail.  Update the expression to match both the old
and new outputs (and hopefully whatever else they change it to).

Old text: "Hello from JS-SDK"
Intermediate text: "Hello, Universe!"
New text: "hello universe"

Signed-off-by: Mark Yen <mark.yen@suse.com>
  • Loading branch information
mook-as committed Aug 6, 2024
1 parent e19fcfe commit 4b1c1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bats/tests/k8s/spinkube-npm.bats
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ EOF

run --separate-stderr try curl --connect-timeout 5 --fail "http://${host}"
assert_success
assert_output "Hello from JS-SDK"
assert_output --regexp '^(Hello|hello)'
}

0 comments on commit 4b1c1ac

Please sign in to comment.