|
|
|
@ -9,17 +9,17 @@ set -x
|
|
|
|
|
docker run --rm -e "PLAYWRIGHT_DRIVER_URL=ws://browserless:3000" --network changedet-network test-changedetectionio bash -c 'cd changedetectionio;pytest tests/custom_browser_url/test_custom_browser_url.py::test_request_not_via_custom_browser_url'
|
|
|
|
|
docker logs browserless-custom-url &>log.txt
|
|
|
|
|
grep 'custom-browser-search-string=1' log.txt
|
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
|
if [ $? -ne 1 ]
|
|
|
|
|
then
|
|
|
|
|
echo "saw a request in 'browserless-custom-url' container with 'custom-browser-search-string=1' when I should not"
|
|
|
|
|
echo "Saw a request in 'browserless-custom-url' container with 'custom-browser-search-string=1' when I should not"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
docker logs browserless &>log.txt
|
|
|
|
|
grep 'custom-browser-search-string=1' log.txt
|
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
|
if [ $? -ne 1 ]
|
|
|
|
|
then
|
|
|
|
|
echo "saw a request in 'browser' container with 'custom-browser-search-string=1' when I should not"
|
|
|
|
|
echo "Saw a request in 'browser' container with 'custom-browser-search-string=1' when I should not"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
@ -27,7 +27,7 @@ fi
|
|
|
|
|
docker run --rm -e "PLAYWRIGHT_DRIVER_URL=ws://browserless:3000" --network changedet-network test-changedetectionio bash -c 'cd changedetectionio;pytest tests/custom_browser_url/test_custom_browser_url.py::test_request_via_custom_browser_url'
|
|
|
|
|
docker logs browserless-custom-url &>log.txt
|
|
|
|
|
grep 'custom-browser-search-string=1' log.txt
|
|
|
|
|
if [ $? -ne 1 ]
|
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
|
then
|
|
|
|
|
echo "Did not see request in 'browserless-custom-url' container with 'custom-browser-search-string=1' when I should"
|
|
|
|
|
exit 1
|
|
|
|
@ -35,9 +35,9 @@ fi
|
|
|
|
|
|
|
|
|
|
docker logs browserless &>log.txt
|
|
|
|
|
grep 'custom-browser-search-string=1' log.txt
|
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
|
if [ $? -ne 1 ]
|
|
|
|
|
then
|
|
|
|
|
echo "saw a request in 'browser' container with 'custom-browser-search-string=1' when I should not"
|
|
|
|
|
echo "Saw a request in 'browser' container with 'custom-browser-search-string=1' when I should not"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|