test: adapt to removal of setting

Original commit: elastic/x-pack-elasticsearch@5f195001b9
This commit is contained in:
jaymode 2016-04-19 14:31:06 -04:00
parent 28bb39955c
commit 659439841e
2 changed files with 8 additions and 8 deletions

View File

@ -156,7 +156,7 @@ public class DocumentLevelSecurityTests extends ShieldIntegTestCase {
client().prepareIndex("test", "type1", "3").setSource("field3", "value3").get();
// test documents users can see
Boolean realtime = randomFrom(true, false, null);
boolean realtime = randomBoolean();
GetResponse response = client()
.filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user1", USERS_PASSWD)))
.prepareGet("test", "type1", "1")
@ -220,7 +220,7 @@ public class DocumentLevelSecurityTests extends ShieldIntegTestCase {
client().prepareIndex("test", "type1", "2").setSource("field2", "value2").get();
client().prepareIndex("test", "type1", "3").setSource("field3", "value3").get();
Boolean realtime = randomFrom(true, false, null);
boolean realtime = randomBoolean();
MultiGetResponse response = client()
.filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user1", USERS_PASSWD)))
.prepareMultiGet()
@ -300,7 +300,7 @@ public class DocumentLevelSecurityTests extends ShieldIntegTestCase {
.setRefresh(true)
.get();
Boolean realtime = randomFrom(true, false, null);
boolean realtime = randomBoolean();
TermVectorsResponse response = client()
.filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user1", USERS_PASSWD)))
.prepareTermVectors("test", "type1", "1")
@ -365,7 +365,7 @@ public class DocumentLevelSecurityTests extends ShieldIntegTestCase {
.setRefresh(true)
.get();
Boolean realtime = randomFrom(true, false, null);
boolean realtime = randomBoolean();
MultiTermVectorsResponse response = client()
.filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user1", USERS_PASSWD)))
.prepareMultiTermVectors()

View File

@ -281,7 +281,7 @@ public class FieldLevelSecurityTests extends ShieldIntegTestCase {
client().prepareIndex("test", "type1", "1").setSource("field1", "value1", "field2", "value2", "field3", "value3")
.get();
Boolean realtime = randomFrom(true, false, null);
boolean realtime = randomBoolean();
// user1 is granted access to field1 only:
GetResponse response = client()
.filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user1", USERS_PASSWD)))
@ -377,7 +377,7 @@ public class FieldLevelSecurityTests extends ShieldIntegTestCase {
);
client().prepareIndex("test", "type1", "1").setSource("field1", "value1", "field2", "value2", "field3", "value3").get();
Boolean realtime = randomFrom(true, false, null);
boolean realtime = randomBoolean();
// user1 is granted access to field1 only:
MultiGetResponse response = client()
.filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user1", USERS_PASSWD)))
@ -954,7 +954,7 @@ public class FieldLevelSecurityTests extends ShieldIntegTestCase {
.setRefresh(true)
.get();
Boolean realtime = randomFrom(true, false, null);
boolean realtime = randomBoolean();
TermVectorsResponse response = client()
.filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user1", USERS_PASSWD)))
.prepareTermVectors("test", "type1", "1")
@ -1038,7 +1038,7 @@ public class FieldLevelSecurityTests extends ShieldIntegTestCase {
.setRefresh(true)
.get();
Boolean realtime = randomFrom(true, false, null);
boolean realtime = randomBoolean();
MultiTermVectorsResponse response = client()
.filterWithHeader(Collections.singletonMap(BASIC_AUTH_HEADER, basicAuthHeaderValue("user1", USERS_PASSWD)))
.prepareMultiTermVectors()