[test] packaging test logging for suse distros

This commit is contained in:
Andy Bristol 2018-05-29 11:06:14 -07:00
parent 544822c78b
commit ba8bb1d4a1
7 changed files with 14 additions and 0 deletions

View File

@ -68,6 +68,7 @@ setup() {
@test "[TAR] install archive" {
# Install the archive
install_archive
set_debug_logging
count=$(find /tmp -type d -name 'elasticsearch*' | wc -l)
[ "$count" -eq 1 ]

View File

@ -61,6 +61,7 @@ setup() {
[ ! -d "$ESHOME" ]; then
clean_before_test
install
set_debug_logging
fi
}

View File

@ -461,6 +461,13 @@ debug_collect_logs() {
describe_port 127.0.0.1 9201
}
set_debug_logging() {
if [ "$ESCONFIG" ] && [ -d "$ESCONFIG" ] && [ -f /etc/os-release ] && (grep -qi suse /etc/os-release); then
echo 'logger.org.elasticsearch.indices: DEBUG' >> "$ESCONFIG/elasticsearch.yml"
echo 'logger.org.elasticsearch.gateway: TRACE' >> "$ESCONFIG/elasticsearch.yml"
fi
}
# Waits for Elasticsearch to reach some status.
# $1 - expected status - defaults to green
wait_for_elasticsearch_status() {

View File

@ -30,6 +30,7 @@ setup() {
# Install the archive
install_archive
set_debug_logging
}
@test "[X-PACK] verify x-pack installation" {

View File

@ -13,6 +13,7 @@ setup() {
export PACKAGE_NAME="elasticsearch"
clean_before_test
install
set_debug_logging
generate_trial_license
verify_xpack_installation

View File

@ -96,6 +96,7 @@ install_node_using_archive() {
export_elasticsearch_paths
install_archive
set_debug_logging
verify_archive_installation
export ESPLUGIN_COMMAND_USER=$DEFAULT_ARCHIVE_USER
@ -123,6 +124,7 @@ install_node_using_package() {
export_elasticsearch_paths
install_package
set_debug_logging
verify_package_installation
export ESPLUGIN_COMMAND_USER=$DEFAULT_PACKAGE_USER

View File

@ -14,6 +14,7 @@ setup() {
export PACKAGE_NAME="elasticsearch"
clean_before_test
install
set_debug_logging
generate_trial_license
verify_xpack_installation