@@ -63,7 +63,9 @@ def test_parse_config_file_correctly(self):
6363 "SECURENATIVE_DISABLE" : "False" ,
6464 "SECURENATIVE_LOG_LEVEL" : "Critical" ,
6565 "SECURENATIVE_FAILOVER_STRATEGY" : "fail-closed" ,
66- "SECURENATIVE_PROXY_HEADERS" : "CF-Connecting-IP,Some-Random-Ip"
66+ "SECURENATIVE_PROXY_HEADERS" : "CF-Connecting-IP,Some-Random-Ip" ,
67+ "SECURENATIVE_PII_HEADERS" : "authentication,api_key" ,
68+ "SECURENATIVE_PII_REGEX_PATTERN" : "/auth/i"
6769 }
6870
6971 self .create_ini_file (config )
@@ -79,7 +81,9 @@ def test_parse_config_file_correctly(self):
7981 self .assertEqual (options .log_level , "Critical" )
8082 self .assertEqual (options .max_events , "100" )
8183 self .assertEqual (options .timeout , "1500" )
84+ self .assertEqual (options .pii_regex_pattern , "/auth/i" )
8285 self .assertEqual (options .proxy_headers , ["CF-Connecting-IP" , "Some-Random-Ip" ])
86+ self .assertEqual (options .pii_headers , ["authentication" , "api_key" ])
8387
8488 @unittest .skipIf (platform .system () == "Windows" or platform .system () == "windows" , "test not supported on windows" )
8589 def test_ignore_unknown_config_in_properties_file (self ):
0 commit comments