Skip to content

Commit

Permalink
[ML] API integration tests - adjust and re-enable anomalies table dat…
Browse files Browse the repository at this point in the history
…a test (#85405)

This PR adjusts and re-enables the get_anomalies_table_data API integration tests.
  • Loading branch information
pheyos authored Dec 9, 2020
1 parent 2cdc4ed commit efe3c59
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ export default ({ getService }: FtrProviderContext) => {
await ml.api.cleanMlIndices();
});

// Failing ES snapshot promotion after a ml-cpp change
// See https://github.com/elastic/kibana/issues/85363
it.skip('should fetch anomalies table data', async () => {
it('should fetch anomalies table data', async () => {
const requestBody = {
jobIds: [JOB_CONFIG.job_id],
criteriaFields: [{ fieldName: 'detector_index', fieldValue: 0 }],
Expand All @@ -78,7 +76,7 @@ export default ({ getService }: FtrProviderContext) => {
.expect(200);

expect(body.interval).to.eql('hour');
expect(body.anomalies.length).to.eql(12);
expect(body.anomalies.length).to.eql(13);
});

it('should validate request body', async () => {
Expand Down

0 comments on commit efe3c59

Please sign in to comment.