From 4def2e376868078decb8f74c5818863d3a45996e Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 19 Sep 2025 15:37:30 +0400 Subject: [PATCH] Add streams YAML tests to rest-resources-zip (#134869) * Add streams YAML tests to restResourcesZip * Rename basicRestSpecs to restTests (cherry picked from commit 78858bec69f88d077053cd57516192856d7cdb12) # Conflicts: # x-pack/qa/multi-project/core-rest-tests-with-multiple-projects/build.gradle --- modules/streams/build.gradle | 4 ++-- x-pack/rest-resources-zip/build.gradle | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/streams/build.gradle b/modules/streams/build.gradle index fd56a627026b6..f3da1ff905003 100644 --- a/modules/streams/build.gradle +++ b/modules/streams/build.gradle @@ -25,7 +25,7 @@ restResources { } configurations { - basicRestSpecs { + restTests { attributes { attribute(ArtifactTypeDefinition.ARTIFACT_TYPE_ATTRIBUTE, ArtifactTypeDefinition.DIRECTORY_TYPE) } @@ -33,7 +33,7 @@ configurations { } artifacts { - basicRestSpecs(new File(projectDir, "src/yamlRestTest/resources/rest-api-spec/test")) + restTests(new File(projectDir, "src/yamlRestTest/resources/rest-api-spec/test")) } dependencies { diff --git a/x-pack/rest-resources-zip/build.gradle b/x-pack/rest-resources-zip/build.gradle index ab684c8b0c367..18b3d71957f1c 100644 --- a/x-pack/rest-resources-zip/build.gradle +++ b/x-pack/rest-resources-zip/build.gradle @@ -22,6 +22,7 @@ dependencies { freeTests project(path: ':modules:analysis-common', configuration: 'restTests') freeTests project(path: ':modules:data-streams', configuration: 'restTests') freeTests project(path: ':modules:ingest-geoip', configuration: 'restTests') + freeTests project(path: ':modules:streams', configuration: 'restTests') compatApis project(path: ':rest-api-spec', configuration: 'restCompatSpecs') compatApis project(path: ':x-pack:plugin', configuration: 'restCompatSpecs') freeCompatTests project(path: ':rest-api-spec', configuration: 'restCompatTests')