Browse Source

Keep CCR REST API specification with all of X-Pack (#33743)

This commit moves the CCR REST API specification out of the CCR
sub-project to locate them with the rest of the REST API specifications
for X-Pack.
Jason Tedor 7 years ago
parent
commit
2d81fc3873

+ 10 - 0
x-pack/plugin/ccr/qa/build.gradle

@@ -1,3 +1,13 @@
+import org.elasticsearch.gradle.test.RestIntegTestTask
+
+subprojects {
+  project.tasks.withType(RestIntegTestTask) {
+    final File xPackResources = new File(xpackProject('plugin').projectDir, 'src/test/resources')
+    project.copyRestSpec.from(xPackResources) {
+      include 'rest-api-spec/api/**'
+    }
+  }
+}
 
 /* Remove assemble on all qa projects because we don't need to publish
  * artifacts for them. */

+ 0 - 0
x-pack/plugin/ccr/qa/rest/src/test/resources/rest-api-spec/api/ccr.create_and_follow_index.json → x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.create_and_follow_index.json


+ 0 - 0
x-pack/plugin/ccr/qa/rest/src/test/resources/rest-api-spec/api/ccr.delete_auto_follow_pattern.json → x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.delete_auto_follow_pattern.json


+ 0 - 0
x-pack/plugin/ccr/qa/rest/src/test/resources/rest-api-spec/api/ccr.follow_index.json → x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.follow_index.json


+ 0 - 0
x-pack/plugin/ccr/qa/rest/src/test/resources/rest-api-spec/api/ccr.put_auto_follow_pattern.json → x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.put_auto_follow_pattern.json


+ 0 - 0
x-pack/plugin/ccr/qa/rest/src/test/resources/rest-api-spec/api/ccr.stats.json → x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.stats.json


+ 0 - 0
x-pack/plugin/ccr/qa/rest/src/test/resources/rest-api-spec/api/ccr.unfollow_index.json → x-pack/plugin/src/test/resources/rest-api-spec/api/ccr.unfollow_index.json