test: fixed compile error due to https://github.com/elastic/elasticsearch/pull/13418
Original commit: elastic/x-pack-elasticsearch@24d22f2309
This commit is contained in:
parent
7eda007c46
commit
427891191f
|
@ -78,8 +78,7 @@ public class ShieldCachePermissionTests extends ShieldIntegTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testThatTermsFilterQueryDoesntLeakData() {
|
public void testThatTermsFilterQueryDoesntLeakData() {
|
||||||
SearchResponse response = client().prepareSearch("data").setTypes("a").setQuery(QueryBuilders.filteredQuery(
|
SearchResponse response = client().prepareSearch("data").setTypes("a").setQuery(QueryBuilders.constantScoreQuery(
|
||||||
QueryBuilders.matchAllQuery(),
|
|
||||||
QueryBuilders.termsLookupQuery("token")
|
QueryBuilders.termsLookupQuery("token")
|
||||||
.lookupIndex("tokens")
|
.lookupIndex("tokens")
|
||||||
.lookupType("tokens")
|
.lookupType("tokens")
|
||||||
|
@ -91,8 +90,7 @@ public class ShieldCachePermissionTests extends ShieldIntegTestCase {
|
||||||
|
|
||||||
// Repeat with unauthorized user!!!!
|
// Repeat with unauthorized user!!!!
|
||||||
try {
|
try {
|
||||||
response = client().prepareSearch("data").setTypes("a").setQuery(QueryBuilders.filteredQuery(
|
response = client().prepareSearch("data").setTypes("a").setQuery(QueryBuilders.constantScoreQuery(
|
||||||
QueryBuilders.matchAllQuery(),
|
|
||||||
QueryBuilders.termsLookupQuery("token")
|
QueryBuilders.termsLookupQuery("token")
|
||||||
.lookupIndex("tokens")
|
.lookupIndex("tokens")
|
||||||
.lookupType("tokens")
|
.lookupType("tokens")
|
||||||
|
|
Loading…
Reference in New Issue