[TEST] Fix some assertions to match prior code change
Original commit: elastic/x-pack-elasticsearch@be4cc9cbef
This commit is contained in:
parent
8e2e26fc44
commit
b9941de39d
|
@ -352,7 +352,7 @@ public class BasicDistributedJobsIT extends BaseMlIntegTestCase {
|
|||
|
||||
Exception e = expectThrows(ElasticsearchStatusException.class,
|
||||
() -> client().execute(OpenJobAction.INSTANCE, openJobRequest).actionGet());
|
||||
assertTrue(e.getMessage().startsWith("cannot open job [job_id], no suitable nodes found, allocation explanation"));
|
||||
assertTrue(e.getMessage().startsWith("Could not open job because no suitable nodes were found, allocation explanation"));
|
||||
assertTrue(e.getMessage().endsWith("because not all primary shards are active for the following indices [.ml-anomalies-shared]]"));
|
||||
|
||||
logger.info("Start data node");
|
||||
|
|
|
@ -86,8 +86,8 @@ public class TooManyJobsIT extends BaseMlIntegTestCase {
|
|||
});
|
||||
logger.info("Opened {}th job", i);
|
||||
} catch (ElasticsearchStatusException e) {
|
||||
assertTrue(e.getMessage().startsWith("cannot open job [" + i + "], no suitable nodes found, allocation explanation"));
|
||||
assertTrue(e.getMessage().endsWith("because this node is full. Number of opened jobs [" + maxNumberOfJobsPerNode +
|
||||
assertTrue(e.getMessage(), e.getMessage().startsWith("Could not open job because no suitable nodes were found, allocation explanation"));
|
||||
assertTrue(e.getMessage(), e.getMessage().endsWith("because this node is full. Number of opened jobs [" + maxNumberOfJobsPerNode +
|
||||
"], max_running_jobs [" + maxNumberOfJobsPerNode + "]]"));
|
||||
logger.info("good news everybody --> reached maximum number of allowed opened jobs, after trying to open the {}th job", i);
|
||||
|
||||
|
|
Loading…
Reference in New Issue