Skip to content

Commit 42c3eab

Browse files
Merge pull request #136 from AikidoSec/remove-broken-bypassed-ips-test
Remove broken test leftover from the bypassed IP PR
2 parents b24ab83 + 27c955d commit 42c3eab

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

agent_api/src/test/java/vulnerabilities/SkipVulnerabilityScanDeciderTest.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,6 @@ public void testShouldSkipVulnerabilityScan_NullContext() {
4949
assertTrue(SkipVulnerabilityScanDecider.shouldSkipVulnerabilityScan(null));
5050
}
5151

52-
@Test
53-
public void testShouldSkipVulnerabilityScan_BypassedIP() {
54-
55-
// Mock the ThreadCacheObject to return a bypassed IP
56-
ThreadCacheObject mockThreadCache = mock(ThreadCacheObject.class);
57-
when(mockThreadCache.isBypassedIP(context.getRemoteAddress())).thenReturn(true);
58-
ThreadCache.set(mockThreadCache);
59-
60-
assertTrue(SkipVulnerabilityScanDecider.shouldSkipVulnerabilityScan(context));
61-
}
62-
6352
@Test
6453
public void testShouldSkipVulnerabilityScan_ProtectionForcedOff_1() {
6554
// Mock the ThreadCacheObject to return a matched endpoint

0 commit comments

Comments
 (0)