hurl/integration/tests_ok/cookies.hurl

65 lines
1.7 KiB
Plaintext
Raw Normal View History

2020-08-27 10:07:46 +03:00
# Request Cookie
GET http://localhost:8000/cookies/set-request-cookie1-valueA
[Cookies]
cookie1: valueA
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
# The cookie is not added in the cookie storage
GET http://localhost:8000/cookies/assert-that-cookie1-is-not-in-session
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
2020-10-22 11:10:54 +03:00
GET http://localhost:8000/cookies/set-multiple-request-cookies
[Cookies]
user1: Bob
user2: Bill
2022-06-12 21:51:26 +03:00
user3: {{name}}
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
# Session Cookie
GET http://localhost:8000/cookies/set-session-cookie2-valueA
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
[Asserts]
cookie "cookie2" == "valueA"
2020-08-27 10:07:46 +03:00
GET http://localhost:8000/cookies/assert-that-cookie2-is-valueA
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
GET http://localhost:8000/cookies/assert-that-cookie2-is-valueA-and-valueB
2020-08-27 10:07:46 +03:00
[Cookies]
cookie2: valueB
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
GET http://localhost:8000/cookies/delete-cookie2
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
[Asserts]
cookie "cookie2" == ""
cookie "cookie2[Max-Age]" == 0
2020-08-27 10:07:46 +03:00
GET http://localhost:8000/cookies/assert-that-cookie2-is-not-in-session
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
GET http://localhost:8000/cookies/set
2022-11-11 16:25:00 +03:00
HTTP 200
2020-08-27 10:07:46 +03:00
Set-Cookie: LSID=DQAAAKEaem_vYg; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly; Path=/accounts
2020-08-28 15:27:18 +03:00
Set-Cookie: HSID=AYQEVnDKrdst; Domain=.localhost; Expires=Wed, 13 Jan 2021 22:23:01 GMT; HttpOnly; Path=/
Set-Cookie: SSID=Ap4PGTEq; Domain=.localhost; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly; Path=/
2020-08-27 10:07:46 +03:00
[Asserts]
header "Set-Cookie" count == 3
2020-08-27 10:07:46 +03:00
cookie "LSID" equals "DQAAAKEaem_vYg"
cookie "LSID[Value]" == "DQAAAKEaem_vYg"
2020-08-27 10:07:46 +03:00
cookie "LSID[Expires]" exists
2023-02-05 21:05:49 +03:00
cookie "LSID[Expires]" format "%a, %d %b %Y %H:%M:%S" == "Wed, 13 Jan 2021 22:23:01"
2020-08-27 10:07:46 +03:00
cookie "LSID[Max-Age]" not exists
cookie "LSID[Domain]" not exists
cookie "LSID[Path]" == "/accounts"
cookie "LSID[Secure]" exists
cookie "LSID[HttpOnly]" exists
2020-08-27 10:07:46 +03:00
cookie "LSID[SameSite]" not exists
2020-10-22 11:10:54 +03:00