setWaitForGreenStatus().execute().actionGet().getClusterName();
String filename_0 = "/tmp/" + clusterName + ".0.users.nocompressexport.gz";
String filename_1 = "/tmp/" + clusterName + ".1.users.nocompressexport.gz";
new File(filename_0).delete();
new File(filename_1).delete();
ExportResponse response = executeExportRequest(
"{\"output_file\": \"/tmp/${cluster}.${shard}.${index}.lzivexport.gz\", \"fields\": [\"name\", \"_id\"], \"compression\": \"LZIV\"}");
assertEquals(2, response.getFailedShards());
assertTrue(response.getShardFailures()[0].reason().contains(
"Compression format 'lziv' unknown or not supported."));
ExportResponse response2 = executeExportRequest(
"{\"output_file\": \"/tmp/${cluster}.${shard}.${index}.nocompressexport.gz\", \"fields\": [\"name\", \"_id\"], \"compression\": \"\"}");
assertEquals(0, response2.getFailedShards());
assertEquals(2, response2.getSuccessfulShards());
}