From fe24bcaa391ea70aa7bc0abfa184a4ddac827271 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 21 Sep 2015 15:43:32 -0400 Subject: [PATCH] [test] Fix plugin tests Fix the vagrant tests after azure was split into 3 plugins. The tests need to list all the plugins and some dependency so we can make sure the plugin can be installed and uninstalled. --- qa/vagrant/pom.xml | 24 +++------- .../packaging/scripts/plugin_test_cases.bash | 46 ++++++++++++------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/qa/vagrant/pom.xml b/qa/vagrant/pom.xml index 7e5396890b7..7613457e13a 100644 --- a/qa/vagrant/pom.xml +++ b/qa/vagrant/pom.xml @@ -141,18 +141,6 @@ ${elasticsearch.version} zip - - org.elasticsearch.plugin - discovery-azure - ${elasticsearch.version} - zip - - - org.elasticsearch.plugin - discovery-ec2 - ${elasticsearch.version} - zip - org.elasticsearch.plugin cloud-gce @@ -165,6 +153,12 @@ ${elasticsearch.version} zip + + org.elasticsearch.plugin + discovery-azure + ${elasticsearch.version} + zip + org.elasticsearch.plugin discovery-ec2 @@ -201,12 +195,6 @@ ${elasticsearch.version} zip - - org.elasticsearch.plugin - repository-s3 - ${elasticsearch.version} - zip - org.elasticsearch.plugin repository-azure diff --git a/qa/vagrant/src/test/resources/packaging/scripts/plugin_test_cases.bash b/qa/vagrant/src/test/resources/packaging/scripts/plugin_test_cases.bash index aa9f784c928..b6668d5c10c 100644 --- a/qa/vagrant/src/test/resources/packaging/scripts/plugin_test_cases.bash +++ b/qa/vagrant/src/test/resources/packaging/scripts/plugin_test_cases.bash @@ -94,7 +94,7 @@ fi install_jvm_example start_elasticsearch_service - # check that configuration was actually picked up + # check that configuration was actually picked up curl -s localhost:9200/_cat/configured_example | sed 's/ *$//' > /tmp/installed echo "foo" > /tmp/expected diff /tmp/installed /tmp/expected @@ -169,10 +169,6 @@ fi install_and_check_plugin analysis stempel } -@test "[$GROUP] install azure plugin" { - install_and_check_plugin cloud azure azure-core-*.jar -} - @test "[$GROUP] install gce plugin" { install_and_check_plugin cloud gce google-api-client-*.jar } @@ -181,7 +177,11 @@ fi install_and_check_plugin - delete-by-query } -@test "[$GROUP] install ec2 discovery plugin" { +@test "[$GROUP] install discovery-azure plugin" { + install_and_check_plugin discovery azure azure-core-*.jar +} + +@test "[$GROUP] install discovery-ec2 plugin" { install_and_check_plugin discovery ec2 aws-java-sdk-core-*.jar } @@ -205,7 +205,11 @@ fi install_and_check_plugin mapper size } -@test "[$GROUP] install s3 repository plugin" { +@test "[$GROUP] install repository-azure plugin" { + install_and_check_plugin repository azure azure-storage-*.jar +} + +@test "[$GROUP] install repository-s3 plugin" { install_and_check_plugin repository s3 aws-java-sdk-core-*.jar } @@ -215,6 +219,10 @@ fi assert_file_exist "$ESHOME/plugins/site-example/_site/index.html" } +@test "[$GROUP] install store-smb plugin" { + install_and_check_plugin store smb +} + @test "[$GROUP] check the installed plugins can be listed with 'plugins list' and result matches the list of plugins in plugins pom" { "$ESHOME/bin/plugin" list | tail -n +2 | sed 's/^......//' > /tmp/installed compare_plugins_list "/tmp/installed" "'plugins list'" @@ -257,14 +265,6 @@ fi remove_plugin analysis-stempel } -@test "[$GROUP] remove aws plugin" { - remove_plugin cloud-aws -} - -@test "[$GROUP] remove azure plugin" { - remove_plugin cloud-azure -} - @test "[$GROUP] remove gce plugin" { remove_plugin cloud-gce } @@ -273,7 +273,11 @@ fi remove_plugin delete-by-query } -@test "[$GROUP] remove ec2 discovery plugin" { +@test "[$GROUP] remove discovery-azure plugin" { + remove_plugin discovery-azure +} + +@test "[$GROUP] remove discovery-ec2 plugin" { remove_plugin discovery-ec2 } @@ -297,7 +301,11 @@ fi remove_plugin mapper-size } -@test "[$GROUP] remove s3 repository plugin" { +@test "[$GROUP] remove repository-azure plugin" { + remove_plugin repository-azure +} + +@test "[$GROUP] remove repository-s3 plugin" { remove_plugin repository-s3 } @@ -305,6 +313,10 @@ fi remove_plugin site-example } +@test "[$GROUP] remove store-smb plugin" { + remove_plugin store-smb +} + @test "[$GROUP] start elasticsearch with all plugins removed" { start_elasticsearch_service }