ESS Kibana API integration tests fail with Error: self-signed certificate in certificate chain
when calling getService('ml').importTrainedModel()
with ssl:true
configured
#193477
Labels
bug
Fixes for quality problems that affect the customer experience
needs-team
Issues missing a team label
Build Details
Kibana version:
main
/8.16
3bea483Elasticsearch version: Same, run via Kibana API Integration Server
Summary
In ESS Kibana API integration tests, when calling
getService('ml').importTrainedModel()
withssl:true
configured, the test fails with the followingError: self-signed certificate in certificate chain
:From the
│ debg > Trained model created
log we can see thecreateTrainedModel
call to/internal/ml/trained_models/${modelId}
was successful:kibana/x-pack/test/functional/services/ml/api.ts
Lines 1381 to 1391 in f18224c
However the subsequent
createTrainedModelVocabularyES
call to/_ml/trained_models/${modelId}/vocabulary
, surfaces the error:kibana/x-pack/test/functional/services/ml/api.ts
Lines 1404 to 1412 in f18224c
Steps to reproduce
Create an API Integration test that calls
getService('ml').importTrainedModel()
. This is the configuration I used, which was within thesecurity_solution_api_integration
directory, extending from theconfig.base.trial
config:ess.config.ts
ess.config.json
integration_test.ts
Workaround
Disabling SSL via
ssl:false
in the configuration prevents this issue from occurring, so since the other parts of my tests do not require SSL I've disabled it in my suite for the time being.The text was updated successfully, but these errors were encountered: