Skip to content

Commit 38e9423

Browse files
committed
Revert "Add failing test for route level allowed IPs"
This reverts commit e1582fd.
1 parent e1582fd commit 38e9423

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

end2end/tests/hono-xml-blocklists.test.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,6 @@ t.beforeEach(async () => {
2222
},
2323
body: JSON.stringify({
2424
allowedIPAddresses: ["1.3.2.1"],
25-
endpoints: [
26-
{
27-
route: "/route-level",
28-
method: "GET",
29-
forceProtectionOff: false,
30-
allowedIPAddresses: ["1.3.2.2"],
31-
rateLimiting: {
32-
enabled: true,
33-
maxRequests: 1,
34-
windowSizeInMS: 60 * 1000,
35-
},
36-
},
37-
],
3825
}),
3926
});
4027
t.same(config.status, 200);
@@ -257,14 +244,6 @@ t.test("it does not block bypass IP if in blocklist", (t) => {
257244
signal: AbortSignal.timeout(5000),
258245
});
259246
t.same(resp1.status, 200);
260-
261-
const resp2 = await fetch("http://127.0.0.1:4004/route-level", {
262-
headers: {
263-
"X-Forwarded-For": "1.3.2.2",
264-
},
265-
signal: AbortSignal.timeout(5000),
266-
});
267-
t.same(resp2.status, 200);
268247
})
269248
.catch((error) => {
270249
t.fail(error);

0 commit comments

Comments
 (0)