[ML] Functional tests - skip lang_ident_model_1 in saved object cleanup (#134028)

This PR skips the cleanup of the lang_ident_model_1 saved object for functional ML tests.
This commit is contained in:
Robert Oskamp 2022-06-13 12:16:23 +02:00 committed by GitHub
parent 8e81a6e569
commit 027dad3d3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -483,6 +483,10 @@ export function MachineLearningTestResourcesProvider(
SavedObjectType.ML_TRAINED_MODEL_SAVED_OBJECT_TYPE
);
for (const id of savedObjectIds) {
if (id === 'lang_ident_model_1') {
log.debug('> Skipping internal lang_ident_model_1');
continue;
}
await this.deleteSavedObjectById(
id,
SavedObjectType.ML_TRAINED_MODEL_SAVED_OBJECT_TYPE,