|
4 | 4 |
|
5 | 5 | namespace CrowdSecBouncer\Tests\Integration;
|
6 | 6 |
|
7 |
| -use CrowdSecBouncer\ApiCache; |
8 |
| -use CrowdSecBouncer\ApiClient; |
9 | 7 | use CrowdSecBouncer\Bouncer;
|
10 | 8 | use CrowdSecBouncer\Constants;
|
11 |
| -use PHPUnit\Framework\MockObject\MockObject; |
12 | 9 | use PHPUnit\Framework\TestCase;
|
13 | 10 | use Psr\Log\LoggerInterface;
|
14 | 11 |
|
@@ -49,7 +46,7 @@ public function testCanVerifyIpInLiveModeWithCacheSystem($cacheAdapterName, $ori
|
49 | 46 | 'api_key' => TestHelpers::getBouncerKey(),
|
50 | 47 | 'api_url' => TestHelpers::getLapiUrl(),
|
51 | 48 | 'use_curl' => $this->useCurl,
|
52 |
| - 'api_user_agent' => 'Unit test/'.Constants::BASE_USER_AGENT, |
| 49 | + 'api_user_agent' => TestHelpers::UNIT_TEST_AGENT_PREFIX . '/' . Constants::BASE_USER_AGENT, |
53 | 50 | 'cache_system' => $cacheAdapterName,
|
54 | 51 | 'redis_dsn' => getenv('REDIS_DSN'),
|
55 | 52 | 'memcached_dsn' => getenv('MEMCACHED_DSN'),
|
@@ -159,7 +156,7 @@ public function testCanVerifyIpInStreamModeWithCacheSystem($cacheAdapterName, $o
|
159 | 156 | $bouncerConfigs = [
|
160 | 157 | 'api_key' => TestHelpers::getBouncerKey(),
|
161 | 158 | 'api_url' => TestHelpers::getLapiUrl(),
|
162 |
| - 'api_user_agent' => 'Unit test/'.Constants::BASE_USER_AGENT, |
| 159 | + 'api_user_agent' => TestHelpers::UNIT_TEST_AGENT_PREFIX . '/' . Constants::BASE_USER_AGENT, |
163 | 160 | 'stream_mode' => true,
|
164 | 161 | 'use_curl' => $this->useCurl,
|
165 | 162 | 'cache_system' => $cacheAdapterName,
|
@@ -260,7 +257,7 @@ public function testCanVerifyIpInStreamModeWithCacheSystem($cacheAdapterName, $o
|
260 | 257 | 'api_url' => TestHelpers::getLapiUrl(),
|
261 | 258 | 'stream_mode' => true,
|
262 | 259 | 'use_curl' => $this->useCurl,
|
263 |
| - 'api_user_agent' => 'Unit test/'.Constants::BASE_USER_AGENT, |
| 260 | + 'api_user_agent' => TestHelpers::UNIT_TEST_AGENT_PREFIX . '/' . Constants::BASE_USER_AGENT, |
264 | 261 | 'cache_system' => $cacheAdapterName,
|
265 | 262 | 'redis_dsn' => getenv('REDIS_DSN'),
|
266 | 263 | 'memcached_dsn' => getenv('MEMCACHED_DSN'),
|
|
0 commit comments