Browse Source

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

(cherry picked from commit 21180dfd8dd5a0b1a09db25013675d484aa8784f)
Quentin Pradet 3 months ago
parent
commit
6517d70df8
2 changed files with 5 additions and 0 deletions
  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') {
 tasks.named('yamlRestTest') {
   usesDefaultDistribution("Uses the inference API")
   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', configuration: 'restXpackTests')
   platinumTests project(path: ':x-pack:plugin:eql:qa:rest', 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: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', configuration: 'restCompatTests')
   platinumCompatTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restCompatTests')
   platinumCompatTests project(path: ':x-pack:plugin:eql:qa:rest', configuration: 'restCompatTests')
 }
 }