@@ -111,13 +111,13 @@ public function testCanVerifyIpInLiveModeWithCacheSystem(AbstractAdapter $cacheA
111
111
unset($ bouncerConfig ['max_remediation_level ' ]);
112
112
$ bouncer ->configure ($ bouncerConfig );
113
113
114
- $ this ->logger ->info ('set "Large IPV4 range banned" state ' );
114
+ $ this ->logger ->info ('' , [ ' message ' => ' set "Large IPV4 range banned" state '] );
115
115
$ this ->watcherClient ->deleteAllDecisions ();
116
116
$ this ->watcherClient ->addDecision (new \DateTime (), '24h ' , '+24 hours ' , TestHelpers::BAD_IP .'/ ' .TestHelpers::LARGE_IPV4_RANGE , 'ban ' );
117
117
$ cappedRemediation = $ bouncer ->getRemediationForIp (TestHelpers::BAD_IP );
118
118
$ this ->assertEquals ('ban ' , $ cappedRemediation , 'The remediation for the banned IP with a too large range should now be "ban" as we are in live mode ' );
119
119
120
- $ this ->logger ->info ('set "IPV6 range banned" state ' );
120
+ $ this ->logger ->info ('' ,[ ' message ' => ' set "IPV6 range banned" state '] );
121
121
$ this ->watcherClient ->deleteAllDecisions ();
122
122
$ this ->watcherClient ->addDecision (new \DateTime (), '24h ' , '+24 hours ' , TestHelpers::BAD_IPV6 .'/ ' .TestHelpers::IPV6_RANGE , 'ban ' );
123
123
$ cappedRemediation = $ bouncer ->getRemediationForIp (TestHelpers::BAD_IPV6 );
@@ -163,7 +163,7 @@ public function testCanVerifyIpInStreamModeWithCacheSystem(AbstractAdapter $cach
163
163
164
164
$ bouncer ->refreshBlocklistCache ();
165
165
166
- $ this ->logger ->debug ('Refresh the cache just after the warm up. Nothing should append. ' );
166
+ $ this ->logger ->debug ('' , [ ' message ' => ' Refresh the cache just after the warm up. Nothing should append. '] );
167
167
$ bouncer ->refreshBlocklistCache ();
168
168
169
169
$ this ->assertEquals (
@@ -199,10 +199,10 @@ public function testCanVerifyIpInStreamModeWithCacheSystem(AbstractAdapter $cach
199
199
// Pull updates
200
200
$ bouncer ->refreshBlocklistCache ();
201
201
202
- $ this ->logger ->debug ('Refresh 2nd time the cache. Nothing should append. ' );
202
+ $ this ->logger ->debug ('' , [ ' message ' => ' Refresh 2nd time the cache. Nothing should append. '] );
203
203
$ bouncer ->refreshBlocklistCache ();
204
204
205
- $ this ->logger ->debug ('Refresh 3rd time the cache. Nothing should append. ' );
205
+ $ this ->logger ->debug ('' , [ ' message ' => ' Refresh 3rd time the cache. Nothing should append. '] );
206
206
$ bouncer ->refreshBlocklistCache ();
207
207
208
208
$ this ->assertEquals (
@@ -245,7 +245,7 @@ public function testCanVerifyIpInStreamModeWithCacheSystem(AbstractAdapter $cach
245
245
'The cache warm up should be stored across each instanciation '
246
246
);
247
247
248
- $ this ->logger ->info ('set "Large IPV4 range banned" + "IPV6 range banned" state ' );
248
+ $ this ->logger ->info ('' , [ ' message ' => ' set "Large IPV4 range banned" + "IPV6 range banned" state '] );
249
249
$ this ->watcherClient ->deleteAllDecisions ();
250
250
$ this ->watcherClient ->addDecision (new \DateTime (), '24h ' , '+24 hours ' , TestHelpers::BAD_IP .'/ ' .TestHelpers::LARGE_IPV4_RANGE , 'ban ' );
251
251
$ this ->watcherClient ->addDecision (new \DateTime (), '24h ' , '+24 hours ' , TestHelpers::BAD_IPV6 .'/ ' .TestHelpers::IPV6_RANGE , 'ban ' );
0 commit comments