@@ -10,8 +10,8 @@ def test_default_values(self):
1010 self .assertEqual (config .host , 'api.castle.io' )
1111 self .assertEqual (config .port , 443 )
1212 self .assertEqual (config .url_prefix , '/v1' )
13- self .assertEqual (config .whitelisted , [])
14- self .assertEqual (config .blacklisted , [])
13+ self .assertEqual (config .allowlisted , [])
14+ self .assertEqual (config .denylisted , [])
1515 self .assertEqual (config .request_timeout , 500 )
1616 self .assertEqual (config .failover_strategy , 'allow' )
1717 self .assertEqual (config .ip_headers , [])
@@ -37,35 +37,35 @@ def test_url_prefix_setter(self):
3737 config .url_prefix = '/v2'
3838 self .assertEqual (config .url_prefix , '/v2' )
3939
40- def test_whitelisted_setter_list (self ):
40+ def test_allowlisted_setter_list (self ):
4141 config = Configuration ()
42- config .whitelisted = ['test' ]
43- self .assertEqual (config .whitelisted , ['Test' ])
42+ config .allowlisted = ['test' ]
43+ self .assertEqual (config .allowlisted , ['Test' ])
4444
45- def test_whitelisted_setter_none (self ):
45+ def test_allowlisted_setter_none (self ):
4646 config = Configuration ()
47- config .whitelisted = None
48- self .assertEqual (config .whitelisted , [])
47+ config .allowlisted = None
48+ self .assertEqual (config .allowlisted , [])
4949
50- def test_whitelisted_setter_empty (self ):
50+ def test_allowlisted_setter_empty (self ):
5151 config = Configuration ()
52- config .whitelisted = ''
53- self .assertEqual (config .whitelisted , [])
52+ config .allowlisted = ''
53+ self .assertEqual (config .allowlisted , [])
5454
55- def test_blacklisted_setter_list (self ):
55+ def test_denylisted_setter_list (self ):
5656 config = Configuration ()
57- config .blacklisted = ['test' ]
58- self .assertEqual (config .blacklisted , ['Test' ])
57+ config .denylisted = ['test' ]
58+ self .assertEqual (config .denylisted , ['Test' ])
5959
60- def test_blacklisted_setter_none (self ):
60+ def test_denylisted_setter_none (self ):
6161 config = Configuration ()
62- config .blacklisted = None
63- self .assertEqual (config .blacklisted , [])
62+ config .denylisted = None
63+ self .assertEqual (config .denylisted , [])
6464
65- def test_blacklisted_setter_empty (self ):
65+ def test_denylisted_setter_empty (self ):
6666 config = Configuration ()
67- config .blacklisted = ''
68- self .assertEqual (config .blacklisted , [])
67+ config .denylisted = ''
68+ self .assertEqual (config .denylisted , [])
6969
7070 def test_request_timeout_setter (self ):
7171 config = Configuration ()
0 commit comments