Compare commits

...

6 Commits

Author SHA1 Message Date
dgtlmoon
41c189abbb Add more debug 2023-10-11 13:27:35 +02:00
dgtlmoon
806d949086 add log output for visibility 2023-10-11 13:04:03 +02:00
dgtlmoon
91c1fda782 fix 2023-10-11 11:21:44 +02:00
dgtlmoon
58d5f62b7f Add startup pause 2023-10-11 10:58:21 +02:00
dgtlmoon
0838212c51 add todo 2023-10-11 10:57:05 +02:00
dgtlmoon
f803629f9a Add test for #693 and #1850 2023-10-11 10:54:39 +02:00

View File

@@ -88,14 +88,53 @@ jobs:
- name: Test changedetection.io container starts+runs basically without error
run: |
docker run -p 5556:5000 -d test-changedetectionio
docker run --name test-changedetectionio -p 5556:5000 -d test-changedetectionio
sleep 3
# Should return 0 (no error) when grep finds it
curl -s http://localhost:5556 |grep -q checkbox-uuid
# and IPv6
curl -s -g -6 "http://[::1]:5556"|grep -q checkbox-uuid
docker kill test-changedetectionio
- name: Test changedetection.io SIGTERM and SIGINT signal shutdown
run: |
echo SIGINT Shutdown request test
docker run --name sig-test -d test-changedetectionio
sleep 3
echo ">>> Sending SIGINT to sig-test container"
docker kill --signal=SIGINT sig-test
sleep 3
# invert the check (it should be not 0/not running)
docker ps
docker logs sig-test
docker inspect --format '{{json .State.Running}}' sig-test
if [ $? -eq 0 ]
then
exit 1
fi
# @todo - scan the container log to see the right "graceful shutdown" text exists
docker rm sig-test
echo SIGTERM Shutdown request test
docker run --name sig-test -d test-changedetectionio
sleep 3
echo ">>> Sending SIGTERM to sig-test container"
docker kill --signal=SIGTERM sig-test
sleep 3
# invert the check (it should be not 0/not running)
docker ps
docker logs sig-test
docker inspect --format '{{json .State.Running}}' sig-test
if [ $? -eq 0 ]
then
exit 1
fi
# @todo - scan the container log to see the right "graceful shutdown" text exists
docker rm sig-test
#export WEBDRIVER_URL=http://localhost:4444/wd/hub
#pytest tests/fetchers/test_content.py