Skip to content

Commit

Permalink
Revert "Add failing test for route level allowed IPs"
Browse files Browse the repository at this point in the history
This reverts commit e1582fd.
  • Loading branch information
hansott committed Jan 27, 2025
1 parent e1582fd commit 38e9423
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions end2end/tests/hono-xml-blocklists.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ t.beforeEach(async () => {
},
body: JSON.stringify({
allowedIPAddresses: ["1.3.2.1"],
endpoints: [
{
route: "/route-level",
method: "GET",
forceProtectionOff: false,
allowedIPAddresses: ["1.3.2.2"],
rateLimiting: {
enabled: true,
maxRequests: 1,
windowSizeInMS: 60 * 1000,
},
},
],
}),
});
t.same(config.status, 200);
Expand Down Expand Up @@ -257,14 +244,6 @@ t.test("it does not block bypass IP if in blocklist", (t) => {
signal: AbortSignal.timeout(5000),
});
t.same(resp1.status, 200);

const resp2 = await fetch("http://127.0.0.1:4004/route-level", {
headers: {
"X-Forwarded-For": "1.3.2.2",
},
signal: AbortSignal.timeout(5000),
});
t.same(resp2.status, 200);
})
.catch((error) => {
t.fail(error);
Expand Down

0 comments on commit 38e9423

Please sign in to comment.