Skip to content

Commit

Permalink
Mock a service in tedge-watchdog integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Guzik <[email protected]>
  • Loading branch information
Bravo555 committed Oct 18, 2024
1 parent 1aa3755 commit 958a3cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ while true; do
mosquitto_sub -p 8883 --cafile /etc/mosquitto/ca_certificates/ca.crt -C 1 -t $HEALTH_CHECK_TOPIC
echo "got check"
mosquitto_pub -p 8883 --cafile /etc/mosquitto/ca_certificates/ca.crt -t $HEALTH_STATUS_TOPIC -m "$message"
echo "sent response" $RESPONSE
echo "sent response" $message
done
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ Watchdog doesn't fail on unexpected time format
Should Be Equal ${pid} ${pid1}

Watchdog sends notification if service is up which leads to service continuing to run
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# Set Service health check response {\\\"status\\\":\\\"up\\\", \\\"pid\\\":\\\"$$\\\"}
Restart Service ${SERVICE_NAME}
Restart Service tedge-watchdog
Expand Down

0 comments on commit 958a3cc

Please sign in to comment.