Adds test case for plugins script

This commit is contained in:
André Carvalho 2015-09-17 22:22:20 -03:00
parent 139a65770a
commit ab1bd5db53
1 changed files with 11 additions and 0 deletions

View File

@ -72,6 +72,17 @@ setup() {
verify_archive_installation
}
@test "[TAR] elasticsearch fails if java executable is not found" {
export JAVA=$(which java)
sudo chmod -x $JAVA
run "$ESHOME/bin/elasticsearch"
sudo chmod +x $JAVA
[ "$status" -eq 1 ]
[ "$output" = "Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME" ]
}
##################################
# Check that Elasticsearch is working
##################################