소스 검색

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')
 }