瀏覽代碼

Add inference YAML tests to rest-resources-zip (#130070) (#130105)

(cherry picked from commit 21180dfd8dd5a0b1a09db25013675d484aa8784f)
Quentin Pradet 3 月之前
父節點
當前提交
6517d70df8
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 4 0
      x-pack/plugin/inference/build.gradle
  2. 1 0
      x-pack/rest-resources-zip/build.gradle

+ 4 - 0
x-pack/plugin/inference/build.gradle

@@ -406,3 +406,7 @@ tasks.named("thirdPartyAudit").configure {
 tasks.named('yamlRestTest') {
   usesDefaultDistribution("Uses the inference API")
 }
+
+artifacts {
+  restXpackTests(new File(projectDir, "src/yamlRestTest/resources/rest-api-spec/test"))
+}

+ 1 - 0
x-pack/rest-resources-zip/build.gradle

@@ -27,6 +27,7 @@ dependencies {
   platinumTests project(path: ':x-pack:plugin', configuration: 'restXpackTests')
   platinumTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restXpackTests')
   platinumTests project(path: ':x-pack:plugin:ent-search', configuration: 'restXpackTests')
+  platinumTests project(path: ':x-pack:plugin:inference', configuration: 'restXpackTests')
   platinumCompatTests project(path: ':x-pack:plugin', configuration: 'restCompatTests')
   platinumCompatTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restCompatTests')
 }