Commit 78caf87
🛡️ Sentinel: [MEDIUM] Fix test suite SSRF mock bypass
Added explicit mock assertions (`assert_called_once()`) to `test_is_reachable_failure` and `test_is_reachable_success` to prevent false positive test passes. Updated test IP to a globally routable address (`8.8.4.4`) to bypass SSRF logic correctly so that failure simulation path can be executed.
Co-authored-by: ManupaKDU <95234271+ManupaKDU@users.noreply.github.com>1 parent 0003a7a commit 78caf87
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
0 commit comments