[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:
David Kyle 2017-11-15 09:45:57 +00:00 committed by GitHub
parent d833af2046
commit afec0fd6c9
2 changed files with 7 additions and 0 deletions

View File

@ -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 ->

View File

@ -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);
}
}