Skip to content

Commit d37d7a7

Browse files
committed
rename not in allowlist -> not allowed for qa tests
1 parent 14c3686 commit d37d7a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

agent_api/src/main/java/dev/aikido/agent_api/storage/ServiceConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public BlockedResult isIpBlocked(String ip) {
9797
// Check for allowed ip addresses (i.e. only one country is allowed to visit the site)
9898
// Always allow access from private IP addresses (those include local IP addresses)
9999
if (!isPrivateIp(ip) && !firewallLists.matchesAllowedIps(ip)) {
100-
return new BlockedResult(true, "not in allowlist");
100+
return new BlockedResult(true, "not allowed");
101101
}
102102

103103
// Check for monitored IP addresses

agent_api/src/test/java/collectors/WebRequestCollectorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void testReport_ipNotAllowedUsingLists() {
157157
contextObject.setIp("4.4.4.4");
158158
response = WebRequestCollector.report(contextObject);
159159
assertNotNull(response);
160-
assertEquals("Your IP address is blocked. Reason: not in allowlist (Your IP: 4.4.4.4)", response.msg());
160+
assertEquals("Your IP address is blocked. Reason: not allowed (Your IP: 4.4.4.4)", response.msg());
161161
assertEquals(403, response.status());
162162
}
163163

0 commit comments

Comments
 (0)