[ML] [DOCS] Clean up ML jobs after each docs test (elastic/x-pack-elasticsearch#2825)
Original commit: elastic/x-pack-elasticsearch@5ec4a4a752
This commit is contained in:
parent
d833af2046
commit
afec0fd6c9
|
@ -97,6 +97,7 @@ buildRestTests.expectedUnconvertedCandidates = [
|
|||
|
||||
dependencies {
|
||||
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'runtime')
|
||||
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'testArtifacts')
|
||||
}
|
||||
|
||||
Closure waitWithAuth = { NodeInfo node, AntBuilder ant ->
|
||||
|
|
|
@ -19,6 +19,7 @@ import org.elasticsearch.test.rest.yaml.ClientYamlTestClient;
|
|||
import org.elasticsearch.test.rest.yaml.ClientYamlTestResponse;
|
||||
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
|
||||
import org.elasticsearch.test.rest.yaml.restspec.ClientYamlSuiteRestSpec;
|
||||
import org.elasticsearch.xpack.ml.integration.MlRestTestStateCleaner;
|
||||
import org.junit.After;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -116,4 +117,9 @@ public class XDocsClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@After
|
||||
public void cleanMlState() {
|
||||
new MlRestTestStateCleaner(logger, adminClient(), this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue