Merge pull request #13696 from nik9000/fix_azure_vagrant

Fix plugin tests
This commit is contained in:
Nik Everett 2015-09-22 09:01:45 -04:00
commit a6c8ac536f
2 changed files with 35 additions and 35 deletions

View File

@ -141,18 +141,6 @@
<version>${elasticsearch.version}</version> <version>${elasticsearch.version}</version>
<type>zip</type> <type>zip</type>
</artifactItem> </artifactItem>
<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>discovery-azure</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
</artifactItem>
<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>discovery-ec2</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
</artifactItem>
<artifactItem> <artifactItem>
<groupId>org.elasticsearch.plugin</groupId> <groupId>org.elasticsearch.plugin</groupId>
<artifactId>cloud-gce</artifactId> <artifactId>cloud-gce</artifactId>
@ -165,6 +153,12 @@
<version>${elasticsearch.version}</version> <version>${elasticsearch.version}</version>
<type>zip</type> <type>zip</type>
</artifactItem> </artifactItem>
<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>discovery-azure</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
</artifactItem>
<artifactItem> <artifactItem>
<groupId>org.elasticsearch.plugin</groupId> <groupId>org.elasticsearch.plugin</groupId>
<artifactId>discovery-ec2</artifactId> <artifactId>discovery-ec2</artifactId>
@ -201,12 +195,6 @@
<version>${elasticsearch.version}</version> <version>${elasticsearch.version}</version>
<type>zip</type> <type>zip</type>
</artifactItem> </artifactItem>
<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>repository-s3</artifactId>
<version>${elasticsearch.version}</version>
<type>zip</type>
</artifactItem>
<artifactItem> <artifactItem>
<groupId>org.elasticsearch.plugin</groupId> <groupId>org.elasticsearch.plugin</groupId>
<artifactId>repository-azure</artifactId> <artifactId>repository-azure</artifactId>

View File

@ -94,7 +94,7 @@ fi
install_jvm_example install_jvm_example
start_elasticsearch_service 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 curl -s localhost:9200/_cat/configured_example | sed 's/ *$//' > /tmp/installed
echo "foo" > /tmp/expected echo "foo" > /tmp/expected
diff /tmp/installed /tmp/expected diff /tmp/installed /tmp/expected
@ -169,10 +169,6 @@ fi
install_and_check_plugin analysis stempel 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" { @test "[$GROUP] install gce plugin" {
install_and_check_plugin cloud gce google-api-client-*.jar install_and_check_plugin cloud gce google-api-client-*.jar
} }
@ -181,7 +177,11 @@ fi
install_and_check_plugin - delete-by-query 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 install_and_check_plugin discovery ec2 aws-java-sdk-core-*.jar
} }
@ -205,7 +205,11 @@ fi
install_and_check_plugin mapper size 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 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" 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" { @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 "$ESHOME/bin/plugin" list | tail -n +2 | sed 's/^......//' > /tmp/installed
compare_plugins_list "/tmp/installed" "'plugins list'" compare_plugins_list "/tmp/installed" "'plugins list'"
@ -257,14 +265,6 @@ fi
remove_plugin analysis-stempel 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" { @test "[$GROUP] remove gce plugin" {
remove_plugin cloud-gce remove_plugin cloud-gce
} }
@ -273,7 +273,11 @@ fi
remove_plugin delete-by-query 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 remove_plugin discovery-ec2
} }
@ -297,7 +301,11 @@ fi
remove_plugin mapper-size 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 remove_plugin repository-s3
} }
@ -305,6 +313,10 @@ fi
remove_plugin site-example remove_plugin site-example
} }
@test "[$GROUP] remove store-smb plugin" {
remove_plugin store-smb
}
@test "[$GROUP] start elasticsearch with all plugins removed" { @test "[$GROUP] start elasticsearch with all plugins removed" {
start_elasticsearch_service start_elasticsearch_service
} }