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
|
|
|
|
2020-09-23 15:51:54 +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]
|
2022-03-28 19:04:35 +03:00
|
|
|
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
|
|
|
|
2020-09-23 15:51:54 +03:00
|
|
|
GET http://localhost:8000/cookies/assert-that-cookie2-is-valueA-and-valueB
|
2020-08-27 10:07:46 +03:00
|
|
|
[Cookies]
|
2021-05-14 20:31:18 +03:00
|
|
|
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]
|
2022-03-28 19:04:35 +03:00
|
|
|
cookie "cookie2" == ""
|
|
|
|
cookie "cookie2[Max-Age]" == 0
|
2020-08-27 10:07:46 +03:00
|
|
|
|
2020-09-23 15:51:54 +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]
|
2021-06-26 11:00:23 +03:00
|
|
|
header "Set-Cookie" count == 3
|
2020-08-27 10:07:46 +03:00
|
|
|
cookie "LSID" equals "DQAAAKEaem_vYg"
|
2022-03-28 19:04:35 +03:00
|
|
|
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
|
2022-03-28 19:04:35 +03:00
|
|
|
cookie "LSID[Path]" == "/accounts"
|
2020-09-22 09:34:20 +03:00
|
|
|
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
|
|
|
|
|
|
|
|