Skip to content

Commit

Permalink
tests/packaging/interactive: added watchdog test
Browse files Browse the repository at this point in the history
  • Loading branch information
alesmrazek committed Nov 26, 2024
1 parent 14a033f commit a3638b1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/packaging/interactive/watchdog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -e

echo "$PWD"

gitroot=$(git rev-parse --show-toplevel)

tls_certificate_conf=$(cat <<EOF
{
"cert-file": "$gitroot/modules/http/test_tls/test.crt",
"key-file": "$gitroot/modules/http/test_tls/test.key"
}
EOF
)

# configure TLS certificate files
poe kresctl config set -p /network/tls "$tls_certificate_conf"
if [ "$?" -ne "0" ]; then
echo "Could not set TLS certificate files."
exit 1
fi

0 comments on commit a3638b1

Please sign in to comment.