Skip to content

Commit

Permalink
Add debug assertions for userhome not existing (#46206)
Browse files Browse the repository at this point in the history
The elasticsearch user should not have a homedir, yet we have seen this
particular test fail rather frequently with a failed check that the
userhome does not exist. This commit adds some additional assertions on
the presumptive userhome to narrow down where it might be created.

relates #45903
  • Loading branch information
rjernst authored Sep 2, 2019
1 parent fd8183e commit 907b4c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qa/os/bats/default/certgen.bash
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ install_node_using_archive() {
export ESHOME="$DEFAULT_ARCHIVE_ESHOME"
export_elasticsearch_paths

assert_file_not_exist "/home/elasticsearch"
install_archive
set_debug_logging
verify_archive_installation
assert_file_not_exist "/home/elasticsearch"

export ESPLUGIN_COMMAND_USER=$DEFAULT_ARCHIVE_USER
generate_trial_license
Expand All @@ -122,6 +124,7 @@ install_node_using_package() {
export ESHOME="$DEFAULT_PACKAGE_ESHOME"
export_elasticsearch_paths

assert_file_not_exist "/home/elasticsearch"
install_package
set_debug_logging
verify_package_installation
Expand Down

0 comments on commit 907b4c5

Please sign in to comment.