Skip to content

Commit d8c2ffb

Browse files
Make forbidden APIs check happy
1 parent 206242e commit d8c2ffb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/ingest-geoip/src/test/java/org/elasticsearch/ingest/geoip/GeoIpCacheTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import com.maxmind.geoip2.model.AbstractResponse;
1313

1414
import org.elasticsearch.cluster.metadata.ProjectId;
15+
import org.elasticsearch.core.PathUtils;
1516
import org.elasticsearch.core.TimeValue;
1617
import org.elasticsearch.ingest.geoip.stats.CacheStats;
1718
import org.elasticsearch.test.ESTestCase;
@@ -150,7 +151,7 @@ public void testPurgeCacheEntriesForDatabase() {
150151
cache.putIfAbsent(projectId1, ip2, databasePath1, ip -> response); // cache miss
151152
cache.putIfAbsent(projectId2, ip1, databasePath1, ip -> response); // cache miss
152153
cache.putIfAbsent(projectId1, ip1, databasePath2, ip -> response); // cache miss
153-
cache.purgeCacheEntriesForDatabase(projectId1, Path.of(databasePath1));
154+
cache.purgeCacheEntriesForDatabase(projectId1, PathUtils.get(databasePath1));
154155
// should have purged entries for projectId1 and databasePath1...
155156
assertNull(cache.get(projectId1, ip1, databasePath1));
156157
assertNull(cache.get(projectId1, ip2, databasePath1));

0 commit comments

Comments
 (0)