@@ -12,10 +12,10 @@ def test_kvcb_invalid_mode():
1212
1313
1414def test_kvcb_from_dict_defaults_mode ():
15- sentry_sdk .init (data_collection = {"cookies" : {"mode" : "deny_list " , "terms" : ["x" ]}})
15+ sentry_sdk .init (data_collection = {"cookies" : {"mode" : "denylist " , "terms" : ["x" ]}})
1616 client = sentry_sdk .get_client ()
1717 assert client .options ["data_collection" ]["cookies" ] == {
18- "mode" : "deny_list " ,
18+ "mode" : "denylist " ,
1919 "terms" : ["x" ],
2020 }
2121
@@ -26,19 +26,19 @@ def test_http_headers_collection_defaults():
2626 sentry_sdk .init (data_collection = {"http_headers" : {}}) # type: ignore Purposely ignoring to test invalid option
2727 client = sentry_sdk .get_client ()
2828 assert client .options ["data_collection" ]["http_headers" ]["request" ] == {
29- "mode" : "deny_list "
29+ "mode" : "denylist "
3030 }
3131
3232 sentry_sdk .init (data_collection = {"http_headers" : "off" }) # type: ignore Purposely ignoring to test invalid option
3333 client = sentry_sdk .get_client ()
3434 assert client .options ["data_collection" ]["http_headers" ]["request" ] == {
35- "mode" : "deny_list "
35+ "mode" : "denylist "
3636 }
3737
3838 sentry_sdk .init ()
3939 client = sentry_sdk .get_client ()
4040 assert client .options ["data_collection" ]["http_headers" ]["request" ] == {
41- "mode" : "deny_list " ,
41+ "mode" : "denylist " ,
4242 "terms" : default_terms ,
4343 }
4444
@@ -47,15 +47,15 @@ def test_http_headers_use_default_in_setting_with_missing_config():
4747 sentry_sdk .init (
4848 data_collection = {
4949 "http_headers" : {
50- "request" : {"mode" : "allow_list " , "terms" : ["x-id" ]},
50+ "request" : {"mode" : "allowlist " , "terms" : ["x-id" ]},
5151 }
5252 }
5353 )
5454
5555 client = sentry_sdk .get_client ()
5656
5757 assert client .options ["data_collection" ]["http_headers" ]["request" ] == {
58- "mode" : "allow_list " ,
58+ "mode" : "allowlist " ,
5959 "terms" : ["x-id" ],
6060 }
6161
@@ -83,7 +83,7 @@ def _get(dc, path):
8383 "gen_ai.outputs" : False ,
8484 "cookies.mode" : "off" ,
8585 "query_params.mode" : "off" ,
86- "http_headers.request.mode" : "deny_list " ,
86+ "http_headers.request.mode" : "denylist " ,
8787 "http_bodies" : _ALL_HTTP_BODY_TYPES ,
8888 "frame_context_lines" : 5 ,
8989 },
@@ -95,8 +95,8 @@ def _get(dc, path):
9595 "user_info" : True ,
9696 "gen_ai.inputs" : True ,
9797 "gen_ai.outputs" : True ,
98- "cookies.mode" : "deny_list " ,
99- "query_params.mode" : "deny_list " ,
98+ "cookies.mode" : "denylist " ,
99+ "query_params.mode" : "denylist " ,
100100 },
101101 id = "send_default_pii_true_collects_pii" ,
102102 ),
@@ -111,8 +111,8 @@ def _get(dc, path):
111111 "user_info" : True ,
112112 "gen_ai.inputs" : True ,
113113 "gen_ai.outputs" : True ,
114- "cookies.mode" : "deny_list " ,
115- "query_params.mode" : "deny_list " ,
114+ "cookies.mode" : "denylist " ,
115+ "query_params.mode" : "denylist " ,
116116 "http_bodies" : _ALL_HTTP_BODY_TYPES ,
117117 },
118118 id = "explicit_data_collection_uses_spec_defaults" ,
@@ -123,7 +123,7 @@ def _get(dc, path):
123123 "user_info" : False ,
124124 "http_bodies" : [],
125125 "gen_ai.inputs" : True ,
126- "cookies.mode" : "deny_list " ,
126+ "cookies.mode" : "denylist " ,
127127 },
128128 id = "explicit_partial_fills_omitted_with_spec_defaults" ,
129129 ),
@@ -140,14 +140,14 @@ def _get(dc, path):
140140 {
141141 "data_collection" : {
142142 "cookies" : {"mode" : "off" },
143- "query_params" : {"mode" : "allow_list " , "terms" : ["page" ]},
143+ "query_params" : {"mode" : "allowlist " , "terms" : ["page" ]},
144144 "http_headers" : {"request" : {"mode" : "off" }},
145145 "gen_ai" : {"inputs" : False , "outputs" : True },
146146 }
147147 },
148148 {
149149 "cookies.mode" : "off" ,
150- "query_params.mode" : "allow_list " ,
150+ "query_params.mode" : "allowlist " ,
151151 "query_params.terms" : ["page" ],
152152 "http_headers.request.mode" : "off" ,
153153 "gen_ai.inputs" : False ,
@@ -167,9 +167,9 @@ def _get(dc, path):
167167 }
168168 },
169169 {
170- "cookies.mode" : "deny_list " ,
171- "http_headers.request.mode" : "deny_list " ,
172- "query_params.mode" : "deny_list " ,
170+ "cookies.mode" : "denylist " ,
171+ "http_headers.request.mode" : "denylist " ,
172+ "query_params.mode" : "denylist " ,
173173 "graphql.document" : True ,
174174 "graphql.variables" : True ,
175175 "gen_ai.inputs" : True ,
0 commit comments