@@ -18,15 +18,17 @@ def get(self):
18
18
class TestBasic (AsyncHTTPTestCase ):
19
19
@pytest .fixture (autouse = True )
20
20
def initialize (self , sentry_init , capture_events ):
21
- sentry_init (integrations = [TornadoIntegration ()])
21
+ sentry_init (integrations = [TornadoIntegration ()], send_default_pii = True )
22
22
self .events = capture_events ()
23
23
24
24
def get_app (self ):
25
25
26
26
return Application ([(r"/hi" , CrashingHandler )])
27
27
28
28
def test_basic (self ):
29
- response = self .fetch ("/hi?foo=bar" )
29
+ response = self .fetch (
30
+ "/hi?foo=bar" , headers = {"Cookie" : "name=value; name2=value2; name3=value3" }
31
+ )
30
32
assert response .code == 500
31
33
32
34
event , = self .events
@@ -37,7 +39,13 @@ def test_basic(self):
37
39
host = request ["headers" ]["Host" ]
38
40
assert event ["request" ] == {
39
41
"env" : {"REMOTE_ADDR" : "127.0.0.1" },
40
- "headers" : {"Accept-Encoding" : "gzip" , "Connection" : "close" , "Host" : host },
42
+ "headers" : {
43
+ "Accept-Encoding" : "gzip" ,
44
+ "Connection" : "close" ,
45
+ "Host" : host ,
46
+ "Cookie" : "name=value; name2=value2; name3=value3" ,
47
+ },
48
+ "cookies" : {"name" : "value" , "name2" : "value2" , "name3" : "value3" },
41
49
"method" : "GET" ,
42
50
"query_string" : "foo=bar" ,
43
51
"url" : "http://{host}/hi" .format (host = host ),
0 commit comments