Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.15] [ML] Enable PUT trained model API integration tests (#189697) #190507

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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