use of io.crate.sql.tree.Expression in project crate by crate.
the class ESClusterUpdateSettingsTaskTest method testUpdateSettingsWithInvalidTimeValue.
@Test
public void testUpdateSettingsWithInvalidTimeValue() throws Exception {
expectedException.expect(IllegalArgumentException.class);
expectedException.expectMessage("Invalid value for argument 'cluster.graceful_stop.timeout'");
Map<String, List<Expression>> settings = new HashMap<String, List<Expression>>() {
{
put("cluster.graceful_stop.timeout", ImmutableList.<Expression>of(new ParameterExpression(1)));
}
};
ESClusterUpdateSettingsTask.buildSettingsFrom(settings, new RowN(new Object[] { "-1h" }));
}
Aggregations