-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
load functions.bash | ||
load setup.bash | ||
|
||
@test "smoke test" { | ||
# Simple check to see if the health api returns OK | ||
@test "check health api" { | ||
run curl -sSf http://127.0.0.1:${cmak_port}/api/health | ||
# diag "${output}" | ||
[[ "${status}" -eq 0 ]] | ||
} | ||
|
||
# Under some versions of java cmak seems to fail to serve some assets. This | ||
# test loads the home page and tried to download any assets to check that | ||
# they can be downloaded. | ||
@test "check home page and assets" { | ||
run wget -P "${BATS_TEST_TMPDIR}" -r -p -k http://127.0.0.1:${cmak_port}/ | ||
# diag "${output}" | ||
[[ "${status}" -eq 0 ]] | ||
} |