Test: Move rest-api-spec for plugins into test resources
Plugin tests require having rest-api tests, and currently copy that spec from a directory in the root of the plugin source into the test resources. This change moves the rest-api-spec dir into test resources so it is like any other test resources. It also removes unnecessary configuration for resources from the shared plugin pom.
This commit is contained in:
parent
76b027a979
commit
45f757de6d
|
@ -221,46 +221,11 @@
|
|||
|
||||
<!-- typical layout for plugins -->
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
<includes>
|
||||
<include>**/*.properties</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<testResources>
|
||||
<testResource>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**/*.json</include>
|
||||
<include>**/*.txt</include>
|
||||
</includes>
|
||||
</testResource>
|
||||
<testResource>
|
||||
<directory>src/test/resources</directory>
|
||||
<excludes>
|
||||
<exclude>elasticsearch.yml</exclude>
|
||||
<exclude>**/*.properties</exclude>
|
||||
</excludes>
|
||||
</testResource>
|
||||
<testResource>
|
||||
<directory>src/test/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
<includes>
|
||||
<include>elasticsearch.yml</include>
|
||||
<include>**/*.properties</include>
|
||||
</includes>
|
||||
</testResource>
|
||||
<!-- REST API specification and test suites -->
|
||||
<testResource>
|
||||
<directory>${project.basedir}/rest-api-spec</directory>
|
||||
<targetPath>rest-api-spec</targetPath>
|
||||
<includes>
|
||||
<include>api/*.json</include>
|
||||
<include>test/**/*.yaml</include>
|
||||
<include>**/*</include>
|
||||
</includes>
|
||||
</testResource>
|
||||
<!-- REST API specifications copied from main Elasticsearch specs
|
||||
|
|
Loading…
Reference in New Issue