ajout tests

This commit is contained in:
Gregan 2021-07-29 18:23:09 +02:00
parent 65dcba5549
commit 3ff75fef47
2 changed files with 12 additions and 1 deletions

10
headers Normal file
View File

@ -0,0 +1,10 @@
HTTP/1.1 200 OK
Server: nginx/1.21.1
Date: Thu, 29 Jul 2021 16:22:12 GMT
Content-Type: text/html
Content-Length: 17678
Last-Modified: Thu, 29 Jul 2021 08:52:10 GMT
Connection: keep-alive
ETag: "61026c3a-450e"
Accept-Ranges: bytes

View File

@ -3,7 +3,8 @@
echo "TEST HUGO" echo "TEST HUGO"
url=http://localhost:6060 url=http://localhost:6060
curl ${url} -I -o headers -s curl ${url} -I -o headers -s
if((cat headers | head -n 1 | cut '-d ' '-f2')==200) reponse=$(cat headers | head -n 1 | cut '-d ' '-f2')
if [ $reponse == "200" ]
then then
exit 0 exit 0
fi fi