Skip to content

Commit

Permalink
[ML] Enable PUT trained model API integration tests (elastic#189697)
Browse files Browse the repository at this point in the history
## Summary

Closes elastic#189637


### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
  • Loading branch information
darnautov authored Aug 14, 2024
1 parent 2a33601 commit 0e18fb3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export default ({ getService }: FtrProviderContext) => {
const supertest = getService('supertestWithoutAuth');
const ml = getService('ml');

// FLAKY: https://github.com/elastic/kibana/issues/189637
describe.skip('PUT trained_models', () => {
describe('PUT trained_models', function () {
before(async () => {
await ml.api.initSavedObjects();
await ml.testResources.setKibanaTimeZoneToUTC();
Expand All @@ -38,9 +37,8 @@ export default ({ getService }: FtrProviderContext) => {
.send(requestBody);
ml.api.assertResponseStatusCode(200, putResponseStatus, putResponseBody);

expect(omit(putResponseBody, 'create_time')).to.eql({
expect(omit(putResponseBody, ['create_time', 'model_type'])).to.eql({
model_id: 'dfa_regression_model_n_0',
model_type: 'tree_ensemble',
created_by: 'api_user',
version: '12.0.0',
model_size_bytes: 304,
Expand Down

0 comments on commit 0e18fb3

Please sign in to comment.