Skip to content

Commit

Permalink
install groovy plugin before running script test
Browse files Browse the repository at this point in the history
groovy moved to a plugin but the tests rely on it
see #13834
  • Loading branch information
brwe committed Oct 4, 2015
1 parent e5a10e9 commit b4350e3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
Expand Up @@ -31,6 +31,7 @@
# Load test utilities
load packaging_test_utils
load tar
load plugins

setup() {
skip_not_tar_gz
Expand Down Expand Up @@ -91,12 +92,9 @@ setup() {
# starting Elasticsearch so we don't have to wait for elasticsearch to scan for
# them.
install_elasticsearch_test_scripts

ESPLUGIN_COMMAND_USER=elasticsearch install_and_check_plugin lang groovy
start_elasticsearch_service

run_elasticsearch_tests

stop_elasticsearch_service

rm -rf "/tmp/elasticsearch"
}
Expand Up @@ -32,6 +32,7 @@
# Load test utilities
load packaging_test_utils
load os_package
load plugins

# Cleans everything for the 1st execution
setup() {
Expand Down Expand Up @@ -85,6 +86,7 @@ setup() {
# starting Elasticsearch so we don't have to wait for elasticsearch to scan for
# them.
install_elasticsearch_test_scripts
ESPLUGIN_COMMAND_USER=root install_and_check_plugin lang groovy
start_elasticsearch_service
run_elasticsearch_tests
}
Expand Down
Expand Up @@ -31,6 +31,7 @@
# Load test utilities
load packaging_test_utils
load os_package
load plugins

# Cleans everything for the 1st execution
setup() {
Expand Down Expand Up @@ -80,6 +81,7 @@ setup() {
# starting Elasticsearch so we don't have to wait for elasticsearch to scan for
# them.
install_elasticsearch_test_scripts
ESPLUGIN_COMMAND_USER=root install_and_check_plugin lang groovy
start_elasticsearch_service
run_elasticsearch_tests
}
Expand Down
Expand Up @@ -31,6 +31,7 @@
# Load test utilities
load packaging_test_utils
load os_package
load plugins

# Cleans everything for the 1st execution
setup() {
Expand Down Expand Up @@ -67,6 +68,7 @@ setup() {
# starting Elasticsearch so we don't have to wait for elasticsearch to scan for
# them.
install_elasticsearch_test_scripts
ESPLUGIN_COMMAND_USER=root install_and_check_plugin lang groovy
systemctl start elasticsearch.service
wait_for_elasticsearch_status
assert_file_exist "/var/run/elasticsearch/elasticsearch.pid"
Expand Down
Expand Up @@ -31,6 +31,7 @@
# Load test utilities
load packaging_test_utils
load os_package
load plugins

# Cleans everything for the 1st execution
setup() {
Expand Down Expand Up @@ -69,6 +70,7 @@ setup() {
# Install scripts used to test script filters and search templates before
# starting Elasticsearch so we don't have to wait for elasticsearch to scan for
# them.
ESPLUGIN_COMMAND_USER=root install_and_check_plugin lang groovy
install_elasticsearch_test_scripts
service elasticsearch start
wait_for_elasticsearch_status
Expand Down

0 comments on commit b4350e3

Please sign in to comment.