From c7a0a3061da6386b8279ec1a2810f99955822d58 Mon Sep 17 00:00:00 2001 From: Dima Arnautov Date: Wed, 14 Aug 2024 13:54:19 +0200 Subject: [PATCH] [ML] Enable PUT trained model API integration tests (#189697) ## Summary Closes https://github.com/elastic/kibana/issues/189637 ### Checklist - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed (cherry picked from commit 0e18fb39f3f3f0aa51b553a16023e78434877cf7) --- .../api_integration/apis/ml/trained_models/put_model.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/x-pack/test/api_integration/apis/ml/trained_models/put_model.ts b/x-pack/test/api_integration/apis/ml/trained_models/put_model.ts index 9893e19c3c8c48..15c650d0d384ce 100644 --- a/x-pack/test/api_integration/apis/ml/trained_models/put_model.ts +++ b/x-pack/test/api_integration/apis/ml/trained_models/put_model.ts @@ -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(); @@ -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,