Skip to content

Commit

Permalink
Add '--help' test to wavefront-proxy
Browse files Browse the repository at this point in the history
Just a simple invocation of 'java -jar' to get help output
is would show the stacktrace fixed by the previous commit.
  • Loading branch information
smoser committed Apr 24, 2024
1 parent c3a3829 commit b4cd3bc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions wavefront-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,29 @@ subpackages:
- wavefront-proxy-config
- wavefront-proxy-licenses

test:
environment:
contents:
packages:
- busybox
pipeline:
- runs: |
set -- java -jar /usr/share/java/wavefront/wavefront-proxy/wavefront-proxy.jar
"$@" --help >out 2>&1 || {
rc=$?;
echo "failed [$rc]: $*"
cat out
exit $rc;
}
expected="Wavefront Proxy version ${{package.version}}"
grep "$expected" out || {
echo "command '$* --help' did not contain expected output"
echo "expected: $expected"
echo "actual:"
cat out
exit 1
}
update:
enabled: true
github:
Expand Down

0 comments on commit b4cd3bc

Please sign in to comment.