---
setup:
- skip:
    features:
    - "headers"
    - "allowed_warnings_regex"
---
Test with unknown model id:
- do:
    catch: "missing"
    ml.update_trained_model_deployment:
      model_id: "missing-model"
      body: "{\n  \"number_of_allocations\": 4\n}\n"
    headers:
      Content-Type: "application/vnd.elasticsearch+json;compatible-with=8"
      Accept: "application/vnd.elasticsearch+json;compatible-with=8"
    allowed_warnings_regex:
    - ".*rollup functionality will be removed in Elasticsearch.*"
    - "Index \\[\\.profiling-.*\\] name begins with a dot.* and will not be allowed\
      \ in a future Elasticsearch version."
    - "Parameter \\[default_metric\\] is deprecated and will be removed in a future\
      \ version"
