Skip to content

Commit

Permalink
ci(test): Fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Oct 4, 2024
1 parent 162669a commit caa5509
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions tests/Integration/AbstractBouncerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,16 @@ public function testAppSecFlow()
);

$originCountItem = $cache->getItem(AbstractCache::ORIGINS_COUNT)->get();
$this->assertEquals(
1,
$originCountItem['appsec'],
'The origin count for appsec should be 1'
);
if ($this->useTls) {
$this->assertArrayNotHasKey('appsec', $originCountItem, 'The origin count for appsec should not be present');
} else {
$this->assertEquals(
1,
$originCountItem['appsec'],
'The origin count for appsec should be 1'
);
}

$this->assertEquals(
1,
$originCountItem['clean'],
Expand All @@ -494,11 +499,16 @@ public function testAppSecFlow()
);

$originCountItem = $cache->getItem(AbstractCache::ORIGINS_COUNT)->get();
$this->assertEquals(
1,
$originCountItem['clean_appsec'],
'The origin count for clean_appsec should be 1'
);
if ($this->useTls) {
$this->assertArrayNotHasKey('appsec', $originCountItem, 'The origin count for appsec should not be present');
} else {
$this->assertEquals(
1,
$originCountItem['clean_appsec'],
'The origin count for appsec should be 1'
);
}

$this->assertEquals(
1,
$originCountItem['clean'],
Expand Down

0 comments on commit caa5509

Please sign in to comment.