Skip to content

Commit 907b4c5

Browse files
authored
Add debug assertions for userhome not existing (#46206)
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
1 parent fd8183e commit 907b4c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qa/os/bats/default/certgen.bash

+3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ install_node_using_archive() {
9494
export ESHOME="$DEFAULT_ARCHIVE_ESHOME"
9595
export_elasticsearch_paths
9696

97+
assert_file_not_exist "/home/elasticsearch"
9798
install_archive
9899
set_debug_logging
99100
verify_archive_installation
101+
assert_file_not_exist "/home/elasticsearch"
100102

101103
export ESPLUGIN_COMMAND_USER=$DEFAULT_ARCHIVE_USER
102104
generate_trial_license
@@ -122,6 +124,7 @@ install_node_using_package() {
122124
export ESHOME="$DEFAULT_PACKAGE_ESHOME"
123125
export_elasticsearch_paths
124126

127+
assert_file_not_exist "/home/elasticsearch"
125128
install_package
126129
set_debug_logging
127130
verify_package_installation

0 commit comments

Comments
 (0)