-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DocumentRoot in httpd.conf + regression test
- Loading branch information
1 parent
db450d8
commit a4ee8f2
Showing
3 changed files
with
33 additions
and
2 deletions.
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
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Dependencies/assumptions: | ||
# - It is safe and OK to make changes to the Postgres database | ||
# - The Nivlheim system service is running | ||
# - The API is served at localhost:4040 | ||
# - The web server is running and serving content at localhost:443/80 | ||
# - Docker/Podman has a container image with the nivlheim client | ||
|
||
echo "------------- Testing homepage ------------" | ||
set -e | ||
cd `dirname $0` # cd to the dir where the test script is | ||
PSQL=../ci/docker/psql.sh | ||
|
||
# tempdir | ||
tempdir=$(mktemp -d -t tmp.XXXXXXXXXX) | ||
function finish { | ||
rm -rf "$tempdir" | ||
} | ||
trap finish EXIT | ||
|
||
curl -ksS https://localhost:443/ > $tempdir/homepage.html | ||
if ! diff ../server/website/index.html $tempdir/homepage.html; then | ||
echo "============================================================================" | ||
echo "ERROR: The html that is served is different from the contents of index.html." | ||
echo "============================================================================" | ||
exit 1 | ||
fi | ||
|
||
echo "Test result: OK" |