Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert changes in JWTRequestCountThrottlingTestCase.testAPILevelThrottlingWithIpCondition #13327

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@ public void testAPILevelThrottlingWithIpCondition() throws Exception {
requestHeaders.put("content-type", "application/json");
requestHeaders.put("X-Forwarded-For", "10.100.1.22");

Assert.assertFalse(isThrottled(requestHeaders, null, 12),
Assert.assertFalse(isThrottled(requestHeaders, null, -1),
"Request was throttled unexpectedly in Unlimited API tier");

apidto.setApiThrottlingPolicy(apiPolicyName2);
updatedAPI = restAPIPublisher.updateAPI(apidto, apiId);
Assert.assertEquals(updatedAPI.getApiThrottlingPolicy(), apiPolicyName2,
"API tier not updated.");
Assert.assertFalse(isThrottled(requestHeaders, null, 12), "Request not need to throttle since policy was " +
Assert.assertFalse(isThrottled(requestHeaders, null, -1), "Request not need to throttle since policy was " +
"Unlimited");
// Create Revision and Deploy to Gateway
createAPIRevisionAndDeployUsingRest(apiId, restAPIPublisher);
Expand Down
Loading