Merge pull request elastic/elasticsearch#2576 from javanna/fix/xpack-rest-testcase-watcher
[TEST] remove start and stop watcher from XPackRestTestCase Original commit: elastic/x-pack-elasticsearch@192be0db8b
This commit is contained in:
commit
b5bb2d2fdc
|
@ -8,7 +8,6 @@ package org.elasticsearch.xpack.test.rest;
|
|||
|
||||
import com.carrotsearch.randomizedtesting.annotations.Name;
|
||||
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
|
||||
import org.elasticsearch.client.ResponseException;
|
||||
import org.elasticsearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
|
@ -51,24 +50,6 @@ public abstract class XPackRestTestCase extends ESRestTestCase {
|
|||
return ESRestTestCase.createParameters(0, 1);
|
||||
}
|
||||
|
||||
@Before
|
||||
public void startWatcher() throws Exception {
|
||||
try {
|
||||
getAdminExecutionContext().callApi("xpack.watcher.start", emptyMap(), emptyList(), emptyMap());
|
||||
} catch(ResponseException e) {
|
||||
//TODO ignore for now, needs to be fixed though
|
||||
}
|
||||
}
|
||||
|
||||
@After
|
||||
public void stopWatcher() throws Exception {
|
||||
try {
|
||||
getAdminExecutionContext().callApi("xpack.watcher.stop", emptyMap(), emptyList(), emptyMap());
|
||||
} catch(ResponseException e) {
|
||||
//TODO ignore for now, needs to be fixed though
|
||||
}
|
||||
}
|
||||
|
||||
@Before
|
||||
public void installLicense() throws Exception {
|
||||
final XContentBuilder builder = XContentFactory.jsonBuilder();
|
||||
|
|
Loading…
Reference in New Issue