/**
* Only one parameter of the two 'output_file' or 'output_cmd' can be used.
*/
@Test
public void testOutputFileAndOutputCommand() {
ExportResponse response = executeExportRequest(
"{\"output_file\": \"/filename\", \"output_cmd\": \"cat\", \"fields\": [\"name\"]}");
List<Map<String, Object>> infos = getExports(response);
assertEquals(0, infos.size());
assertEquals(0, infos.size());
assertEquals(2, response.getShardFailures().length);
assertTrue(response.getShardFailures()[0].reason().contains(
"Concurrent definition of 'output_cmd' and 'output_file'"));
assertTrue(response.getShardFailures()[1].reason().contains(
"Concurrent definition of 'output_cmd' and 'output_file'"));
}