ajout tests
This commit is contained in:
parent
65dcba5549
commit
3ff75fef47
10
headers
Normal file
10
headers
Normal 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
|
||||||
|
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user