From 9aaa3469742871536273e535fa59cf8dfb08d398 Mon Sep 17 00:00:00 2001 From: jcamiel Date: Fri, 28 Aug 2020 14:27:18 +0200 Subject: [PATCH] Change foo.com domain for localhost. --- integration/tests/cookies.hurl | 4 ++-- integration/tests/cookies.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/integration/tests/cookies.hurl b/integration/tests/cookies.hurl index 644335e3467..21543ae9a7c 100644 --- a/integration/tests/cookies.hurl +++ b/integration/tests/cookies.hurl @@ -52,8 +52,8 @@ header "Set-Cookie" contains "Max-Age=0" # TODO replace by cookie query GET http://localhost:8000/cookies/set HTTP/1.0 200 Set-Cookie: LSID=DQAAAKEaem_vYg; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly; Path=/accounts -Set-Cookie: HSID=AYQEVnDKrdst; Domain=.foo.com; Expires=Wed, 13 Jan 2021 22:23:01 GMT; HttpOnly; Path=/ -Set-Cookie: SSID=Ap4PGTEq; Domain=.foo.com; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly; Path=/ +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=/ [Asserts] header "Set-Cookie" countEquals 3 diff --git a/integration/tests/cookies.py b/integration/tests/cookies.py index b45aa753d04..94c4416e6c6 100644 --- a/integration/tests/cookies.py +++ b/integration/tests/cookies.py @@ -77,14 +77,14 @@ def set_session_cookie2_valuea_subdomain2(): # Set-Cookie: LSID=; Path=/accounts; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly -# Set-Cookie: HSID=AYQEVn…DKrdst; Domain=.foo.com; Path=/; Expires=Wed, 13 Jan 2021 22:23:01 GMT; HttpOnly -# Set-Cookie: SSID=Ap4P…GTEq; Domain=foo.com; Path=/; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly +# Set-Cookie: HSID=AYQEVn…DKrdst; Domain=.localhost; Path=/; Expires=Wed, 13 Jan 2021 22:23:01 GMT; HttpOnly +# Set-Cookie: SSID=Ap4P…GTEq; Domain=.localhost; Path=/; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly @app.route("/cookies/set") def set_cookies(): resp = make_response() resp.set_cookie('LSID', 'DQAAAKEaem_vYg', path='/accounts', secure=True, httponly=True, expires='Wed, 13 Jan 2021 22:23:01 GMT') - resp.set_cookie('HSID', 'AYQEVnDKrdst', domain='.foo.com', path='/', expires='Wed, 13 Jan 2021 22:23:01 GMT', httponly=True) - resp.set_cookie('SSID', 'Ap4PGTEq',domain='.foo.com', path='/', expires='Wed, 13 Jan 2021 22:23:01 GMT', secure=True, httponly=True) + resp.set_cookie('HSID', 'AYQEVnDKrdst', domain='.localhost', path='/', expires='Wed, 13 Jan 2021 22:23:01 GMT', httponly=True) + resp.set_cookie('SSID', 'Ap4PGTEq', domain='.localhost', path='/', expires='Wed, 13 Jan 2021 22:23:01 GMT', secure=True, httponly=True) return resp