From 45f757de6deebd043015b534f4115b274f6b223a Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 16 Sep 2015 03:04:53 -0700 Subject: [PATCH] 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. --- .../test/analysis_icu/10_basic.yaml | 0 .../test/analysis_icu/20_search.yaml | 0 .../test/analysis_kuromoji/10_basic.yaml | 0 .../test/analysis_kuromoji/20_search.yaml | 0 .../test/analysis_phonetic/10_metaphone.yaml | 0 .../20_double_metaphone.yaml | 0 .../analysis_phonetic/30_beider_morse.yaml | 0 .../test/analysis_phonetic/40_search.yaml | 0 .../test/analysis_smartcn/10_basic.yaml | 0 .../test/analysis_smartcn/20_search.yaml | 0 .../test/analysis_stempel/10_basic.yaml | 0 .../test/analysis_stempel/20_search.yaml | 0 .../test/cloud_azure/10_basic.yaml | 0 .../test/cloud_gce/10_basic.yaml | 0 .../rest-api-spec/api/delete_by_query.json | 0 .../test/delete_by_query/10_basic.yaml | 0 .../test/discovery_ec2/10_basic.yaml | 0 .../test/discovery_multicast/10_basic.yaml | 0 .../api/cat.configured_example.json | 0 .../test/jvm_example/10_basic.yaml | 0 .../jvm_example/20_configured_example.yaml | 0 .../test/lang_javascript/10_basic.yaml | 0 .../test/lang_javascript/20_search.yaml | 0 .../test/lang_python/10_basic.yaml | 0 .../test/lang_python/20_search.yaml | 0 .../test/lang_python/30_update.yaml | 0 .../test/mapper_murmur3/10_basic.yaml | 0 .../test/mapper_size/10_basic.yaml | 0 plugins/pom.xml | 37 +------------------ .../test/repository_s3/10_basic.yaml | 0 .../test/repository_s3/20_repository.yaml | 0 .../rest-api-spec/test/example/10_basic.yaml | 0 32 files changed, 1 insertion(+), 36 deletions(-) rename plugins/analysis-icu/{ => src/test/resources}/rest-api-spec/test/analysis_icu/10_basic.yaml (100%) rename plugins/analysis-icu/{ => src/test/resources}/rest-api-spec/test/analysis_icu/20_search.yaml (100%) rename plugins/analysis-kuromoji/{ => src/test/resources}/rest-api-spec/test/analysis_kuromoji/10_basic.yaml (100%) rename plugins/analysis-kuromoji/{ => src/test/resources}/rest-api-spec/test/analysis_kuromoji/20_search.yaml (100%) rename plugins/analysis-phonetic/{ => src/test/resources}/rest-api-spec/test/analysis_phonetic/10_metaphone.yaml (100%) rename plugins/analysis-phonetic/{ => src/test/resources}/rest-api-spec/test/analysis_phonetic/20_double_metaphone.yaml (100%) rename plugins/analysis-phonetic/{ => src/test/resources}/rest-api-spec/test/analysis_phonetic/30_beider_morse.yaml (100%) rename plugins/analysis-phonetic/{ => src/test/resources}/rest-api-spec/test/analysis_phonetic/40_search.yaml (100%) rename plugins/analysis-smartcn/{ => src/test/resources}/rest-api-spec/test/analysis_smartcn/10_basic.yaml (100%) rename plugins/analysis-smartcn/{ => src/test/resources}/rest-api-spec/test/analysis_smartcn/20_search.yaml (100%) rename plugins/analysis-stempel/{ => src/test/resources}/rest-api-spec/test/analysis_stempel/10_basic.yaml (100%) rename plugins/analysis-stempel/{ => src/test/resources}/rest-api-spec/test/analysis_stempel/20_search.yaml (100%) rename plugins/cloud-azure/{ => src/test/resources}/rest-api-spec/test/cloud_azure/10_basic.yaml (100%) rename plugins/cloud-gce/{ => src/test/resources}/rest-api-spec/test/cloud_gce/10_basic.yaml (100%) rename plugins/delete-by-query/{ => src/test/resources}/rest-api-spec/api/delete_by_query.json (100%) rename plugins/delete-by-query/{ => src/test/resources}/rest-api-spec/test/delete_by_query/10_basic.yaml (100%) rename plugins/discovery-ec2/{ => src/test/resources}/rest-api-spec/test/discovery_ec2/10_basic.yaml (100%) rename plugins/discovery-multicast/{ => src/test/resources}/rest-api-spec/test/discovery_multicast/10_basic.yaml (100%) rename plugins/jvm-example/{ => src/test/resources}/rest-api-spec/api/cat.configured_example.json (100%) rename plugins/jvm-example/{ => src/test/resources}/rest-api-spec/test/jvm_example/10_basic.yaml (100%) rename plugins/jvm-example/{ => src/test/resources}/rest-api-spec/test/jvm_example/20_configured_example.yaml (100%) rename plugins/lang-javascript/{ => src/test/resources}/rest-api-spec/test/lang_javascript/10_basic.yaml (100%) rename plugins/lang-javascript/{ => src/test/resources}/rest-api-spec/test/lang_javascript/20_search.yaml (100%) rename plugins/lang-python/{ => src/test/resources}/rest-api-spec/test/lang_python/10_basic.yaml (100%) rename plugins/lang-python/{ => src/test/resources}/rest-api-spec/test/lang_python/20_search.yaml (100%) rename plugins/lang-python/{ => src/test/resources}/rest-api-spec/test/lang_python/30_update.yaml (100%) rename plugins/mapper-murmur3/{ => src/test/resources}/rest-api-spec/test/mapper_murmur3/10_basic.yaml (100%) rename plugins/mapper-size/{ => src/test/resources}/rest-api-spec/test/mapper_size/10_basic.yaml (100%) rename plugins/repository-s3/{ => src/test/resources}/rest-api-spec/test/repository_s3/10_basic.yaml (100%) rename plugins/repository-s3/{ => src/test/resources}/rest-api-spec/test/repository_s3/20_repository.yaml (100%) rename plugins/site-example/{ => src/test/resources}/rest-api-spec/test/example/10_basic.yaml (100%) diff --git a/plugins/analysis-icu/rest-api-spec/test/analysis_icu/10_basic.yaml b/plugins/analysis-icu/src/test/resources/rest-api-spec/test/analysis_icu/10_basic.yaml similarity index 100% rename from plugins/analysis-icu/rest-api-spec/test/analysis_icu/10_basic.yaml rename to plugins/analysis-icu/src/test/resources/rest-api-spec/test/analysis_icu/10_basic.yaml diff --git a/plugins/analysis-icu/rest-api-spec/test/analysis_icu/20_search.yaml b/plugins/analysis-icu/src/test/resources/rest-api-spec/test/analysis_icu/20_search.yaml similarity index 100% rename from plugins/analysis-icu/rest-api-spec/test/analysis_icu/20_search.yaml rename to plugins/analysis-icu/src/test/resources/rest-api-spec/test/analysis_icu/20_search.yaml diff --git a/plugins/analysis-kuromoji/rest-api-spec/test/analysis_kuromoji/10_basic.yaml b/plugins/analysis-kuromoji/src/test/resources/rest-api-spec/test/analysis_kuromoji/10_basic.yaml similarity index 100% rename from plugins/analysis-kuromoji/rest-api-spec/test/analysis_kuromoji/10_basic.yaml rename to plugins/analysis-kuromoji/src/test/resources/rest-api-spec/test/analysis_kuromoji/10_basic.yaml diff --git a/plugins/analysis-kuromoji/rest-api-spec/test/analysis_kuromoji/20_search.yaml b/plugins/analysis-kuromoji/src/test/resources/rest-api-spec/test/analysis_kuromoji/20_search.yaml similarity index 100% rename from plugins/analysis-kuromoji/rest-api-spec/test/analysis_kuromoji/20_search.yaml rename to plugins/analysis-kuromoji/src/test/resources/rest-api-spec/test/analysis_kuromoji/20_search.yaml diff --git a/plugins/analysis-phonetic/rest-api-spec/test/analysis_phonetic/10_metaphone.yaml b/plugins/analysis-phonetic/src/test/resources/rest-api-spec/test/analysis_phonetic/10_metaphone.yaml similarity index 100% rename from plugins/analysis-phonetic/rest-api-spec/test/analysis_phonetic/10_metaphone.yaml rename to plugins/analysis-phonetic/src/test/resources/rest-api-spec/test/analysis_phonetic/10_metaphone.yaml diff --git a/plugins/analysis-phonetic/rest-api-spec/test/analysis_phonetic/20_double_metaphone.yaml b/plugins/analysis-phonetic/src/test/resources/rest-api-spec/test/analysis_phonetic/20_double_metaphone.yaml similarity index 100% rename from plugins/analysis-phonetic/rest-api-spec/test/analysis_phonetic/20_double_metaphone.yaml rename to plugins/analysis-phonetic/src/test/resources/rest-api-spec/test/analysis_phonetic/20_double_metaphone.yaml diff --git a/plugins/analysis-phonetic/rest-api-spec/test/analysis_phonetic/30_beider_morse.yaml b/plugins/analysis-phonetic/src/test/resources/rest-api-spec/test/analysis_phonetic/30_beider_morse.yaml similarity index 100% rename from plugins/analysis-phonetic/rest-api-spec/test/analysis_phonetic/30_beider_morse.yaml rename to plugins/analysis-phonetic/src/test/resources/rest-api-spec/test/analysis_phonetic/30_beider_morse.yaml diff --git a/plugins/analysis-phonetic/rest-api-spec/test/analysis_phonetic/40_search.yaml b/plugins/analysis-phonetic/src/test/resources/rest-api-spec/test/analysis_phonetic/40_search.yaml similarity index 100% rename from plugins/analysis-phonetic/rest-api-spec/test/analysis_phonetic/40_search.yaml rename to plugins/analysis-phonetic/src/test/resources/rest-api-spec/test/analysis_phonetic/40_search.yaml diff --git a/plugins/analysis-smartcn/rest-api-spec/test/analysis_smartcn/10_basic.yaml b/plugins/analysis-smartcn/src/test/resources/rest-api-spec/test/analysis_smartcn/10_basic.yaml similarity index 100% rename from plugins/analysis-smartcn/rest-api-spec/test/analysis_smartcn/10_basic.yaml rename to plugins/analysis-smartcn/src/test/resources/rest-api-spec/test/analysis_smartcn/10_basic.yaml diff --git a/plugins/analysis-smartcn/rest-api-spec/test/analysis_smartcn/20_search.yaml b/plugins/analysis-smartcn/src/test/resources/rest-api-spec/test/analysis_smartcn/20_search.yaml similarity index 100% rename from plugins/analysis-smartcn/rest-api-spec/test/analysis_smartcn/20_search.yaml rename to plugins/analysis-smartcn/src/test/resources/rest-api-spec/test/analysis_smartcn/20_search.yaml diff --git a/plugins/analysis-stempel/rest-api-spec/test/analysis_stempel/10_basic.yaml b/plugins/analysis-stempel/src/test/resources/rest-api-spec/test/analysis_stempel/10_basic.yaml similarity index 100% rename from plugins/analysis-stempel/rest-api-spec/test/analysis_stempel/10_basic.yaml rename to plugins/analysis-stempel/src/test/resources/rest-api-spec/test/analysis_stempel/10_basic.yaml diff --git a/plugins/analysis-stempel/rest-api-spec/test/analysis_stempel/20_search.yaml b/plugins/analysis-stempel/src/test/resources/rest-api-spec/test/analysis_stempel/20_search.yaml similarity index 100% rename from plugins/analysis-stempel/rest-api-spec/test/analysis_stempel/20_search.yaml rename to plugins/analysis-stempel/src/test/resources/rest-api-spec/test/analysis_stempel/20_search.yaml diff --git a/plugins/cloud-azure/rest-api-spec/test/cloud_azure/10_basic.yaml b/plugins/cloud-azure/src/test/resources/rest-api-spec/test/cloud_azure/10_basic.yaml similarity index 100% rename from plugins/cloud-azure/rest-api-spec/test/cloud_azure/10_basic.yaml rename to plugins/cloud-azure/src/test/resources/rest-api-spec/test/cloud_azure/10_basic.yaml diff --git a/plugins/cloud-gce/rest-api-spec/test/cloud_gce/10_basic.yaml b/plugins/cloud-gce/src/test/resources/rest-api-spec/test/cloud_gce/10_basic.yaml similarity index 100% rename from plugins/cloud-gce/rest-api-spec/test/cloud_gce/10_basic.yaml rename to plugins/cloud-gce/src/test/resources/rest-api-spec/test/cloud_gce/10_basic.yaml diff --git a/plugins/delete-by-query/rest-api-spec/api/delete_by_query.json b/plugins/delete-by-query/src/test/resources/rest-api-spec/api/delete_by_query.json similarity index 100% rename from plugins/delete-by-query/rest-api-spec/api/delete_by_query.json rename to plugins/delete-by-query/src/test/resources/rest-api-spec/api/delete_by_query.json diff --git a/plugins/delete-by-query/rest-api-spec/test/delete_by_query/10_basic.yaml b/plugins/delete-by-query/src/test/resources/rest-api-spec/test/delete_by_query/10_basic.yaml similarity index 100% rename from plugins/delete-by-query/rest-api-spec/test/delete_by_query/10_basic.yaml rename to plugins/delete-by-query/src/test/resources/rest-api-spec/test/delete_by_query/10_basic.yaml diff --git a/plugins/discovery-ec2/rest-api-spec/test/discovery_ec2/10_basic.yaml b/plugins/discovery-ec2/src/test/resources/rest-api-spec/test/discovery_ec2/10_basic.yaml similarity index 100% rename from plugins/discovery-ec2/rest-api-spec/test/discovery_ec2/10_basic.yaml rename to plugins/discovery-ec2/src/test/resources/rest-api-spec/test/discovery_ec2/10_basic.yaml diff --git a/plugins/discovery-multicast/rest-api-spec/test/discovery_multicast/10_basic.yaml b/plugins/discovery-multicast/src/test/resources/rest-api-spec/test/discovery_multicast/10_basic.yaml similarity index 100% rename from plugins/discovery-multicast/rest-api-spec/test/discovery_multicast/10_basic.yaml rename to plugins/discovery-multicast/src/test/resources/rest-api-spec/test/discovery_multicast/10_basic.yaml diff --git a/plugins/jvm-example/rest-api-spec/api/cat.configured_example.json b/plugins/jvm-example/src/test/resources/rest-api-spec/api/cat.configured_example.json similarity index 100% rename from plugins/jvm-example/rest-api-spec/api/cat.configured_example.json rename to plugins/jvm-example/src/test/resources/rest-api-spec/api/cat.configured_example.json diff --git a/plugins/jvm-example/rest-api-spec/test/jvm_example/10_basic.yaml b/plugins/jvm-example/src/test/resources/rest-api-spec/test/jvm_example/10_basic.yaml similarity index 100% rename from plugins/jvm-example/rest-api-spec/test/jvm_example/10_basic.yaml rename to plugins/jvm-example/src/test/resources/rest-api-spec/test/jvm_example/10_basic.yaml diff --git a/plugins/jvm-example/rest-api-spec/test/jvm_example/20_configured_example.yaml b/plugins/jvm-example/src/test/resources/rest-api-spec/test/jvm_example/20_configured_example.yaml similarity index 100% rename from plugins/jvm-example/rest-api-spec/test/jvm_example/20_configured_example.yaml rename to plugins/jvm-example/src/test/resources/rest-api-spec/test/jvm_example/20_configured_example.yaml diff --git a/plugins/lang-javascript/rest-api-spec/test/lang_javascript/10_basic.yaml b/plugins/lang-javascript/src/test/resources/rest-api-spec/test/lang_javascript/10_basic.yaml similarity index 100% rename from plugins/lang-javascript/rest-api-spec/test/lang_javascript/10_basic.yaml rename to plugins/lang-javascript/src/test/resources/rest-api-spec/test/lang_javascript/10_basic.yaml diff --git a/plugins/lang-javascript/rest-api-spec/test/lang_javascript/20_search.yaml b/plugins/lang-javascript/src/test/resources/rest-api-spec/test/lang_javascript/20_search.yaml similarity index 100% rename from plugins/lang-javascript/rest-api-spec/test/lang_javascript/20_search.yaml rename to plugins/lang-javascript/src/test/resources/rest-api-spec/test/lang_javascript/20_search.yaml diff --git a/plugins/lang-python/rest-api-spec/test/lang_python/10_basic.yaml b/plugins/lang-python/src/test/resources/rest-api-spec/test/lang_python/10_basic.yaml similarity index 100% rename from plugins/lang-python/rest-api-spec/test/lang_python/10_basic.yaml rename to plugins/lang-python/src/test/resources/rest-api-spec/test/lang_python/10_basic.yaml diff --git a/plugins/lang-python/rest-api-spec/test/lang_python/20_search.yaml b/plugins/lang-python/src/test/resources/rest-api-spec/test/lang_python/20_search.yaml similarity index 100% rename from plugins/lang-python/rest-api-spec/test/lang_python/20_search.yaml rename to plugins/lang-python/src/test/resources/rest-api-spec/test/lang_python/20_search.yaml diff --git a/plugins/lang-python/rest-api-spec/test/lang_python/30_update.yaml b/plugins/lang-python/src/test/resources/rest-api-spec/test/lang_python/30_update.yaml similarity index 100% rename from plugins/lang-python/rest-api-spec/test/lang_python/30_update.yaml rename to plugins/lang-python/src/test/resources/rest-api-spec/test/lang_python/30_update.yaml diff --git a/plugins/mapper-murmur3/rest-api-spec/test/mapper_murmur3/10_basic.yaml b/plugins/mapper-murmur3/src/test/resources/rest-api-spec/test/mapper_murmur3/10_basic.yaml similarity index 100% rename from plugins/mapper-murmur3/rest-api-spec/test/mapper_murmur3/10_basic.yaml rename to plugins/mapper-murmur3/src/test/resources/rest-api-spec/test/mapper_murmur3/10_basic.yaml diff --git a/plugins/mapper-size/rest-api-spec/test/mapper_size/10_basic.yaml b/plugins/mapper-size/src/test/resources/rest-api-spec/test/mapper_size/10_basic.yaml similarity index 100% rename from plugins/mapper-size/rest-api-spec/test/mapper_size/10_basic.yaml rename to plugins/mapper-size/src/test/resources/rest-api-spec/test/mapper_size/10_basic.yaml diff --git a/plugins/pom.xml b/plugins/pom.xml index cd131328d38..82a79510bd7 100644 --- a/plugins/pom.xml +++ b/plugins/pom.xml @@ -221,46 +221,11 @@ - - - src/main/resources - true - - **/*.properties - - - - - - src/test/java - - **/*.json - **/*.txt - - src/test/resources - - elasticsearch.yml - **/*.properties - - - - src/test/resources - true - elasticsearch.yml - **/*.properties - - - - - ${project.basedir}/rest-api-spec - rest-api-spec - - api/*.json - test/**/*.yaml + **/*