Tests: fix test bug (foo -> bar)
This commit is contained in:
parent
5351fbd8a0
commit
fe5af6f34d
|
@ -124,7 +124,7 @@ public class ShardSearchFailure implements ShardOperationFailedException, ToXCon
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "shard [" + (shardTarget == null ? "_na" : shardTarget) + "], reason [" + reason + "]";
|
return "shard [" + (shardTarget == null ? "_na" : shardTarget) + "], reason [" + reason + "], cause [" + (cause == null ? "_na" : ExceptionsHelper.stackTrace(cause)) + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ShardSearchFailure readShardSearchFailure(StreamInput in) throws IOException {
|
public static ShardSearchFailure readShardSearchFailure(StreamInput in) throws IOException {
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class GroovySecurityTests extends ElasticsearchIntegrationTest {
|
||||||
// numeric field access
|
// numeric field access
|
||||||
assertSuccess("def foo = doc['foo'].value; if (foo == null) { return 5; }");
|
assertSuccess("def foo = doc['foo'].value; if (foo == null) { return 5; }");
|
||||||
// string field access
|
// string field access
|
||||||
assertSuccess("def bar = doc['bar'].value; if (foo == null) { return 5; }");
|
assertSuccess("def bar = doc['bar'].value; if (bar == null) { return 5; }");
|
||||||
// List
|
// List
|
||||||
assertSuccess("def list = [doc['foo'].value, 3, 4]; def v = list.get(1); list.add(10)");
|
assertSuccess("def list = [doc['foo'].value, 3, 4]; def v = list.get(1); list.add(10)");
|
||||||
// Ranges
|
// Ranges
|
||||||
|
|
Loading…
Reference in New Issue