Selaa lähdekoodia

[ML] fix inference pipeline agg rest tests (#72226)

Test failures for this test all relate to the ml-stats index being created.

Hopefully waiting for green on .ml-stats after the test run will work.

closes: #72189
Benjamin Trent 4 vuotta sitten
vanhempi
commit
8f8c8d6944

+ 10 - 1
x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/pipeline_inference.yml

@@ -105,7 +105,16 @@ setup:
       cluster.health:
         index: [".ml-inference-*", ".ml-stats-*"]
         wait_for_status: green
-
+---
+teardown:
+  - skip:
+      features: headers
+  - do:
+      headers:
+        Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
+      cluster.health:
+        index: [".ml-inference-*", ".ml-stats-*"]
+        wait_for_status: green
 ---
 "Test pipeline regression simple":