[TEST] packaging: enable trial license
x-pack used to generate a trial platinum license on startup, but now it generates a basic license. Configure security tests to use a trial license at startup Original commit: elastic/x-pack-elasticsearch@29382fe5ce
This commit is contained in:
parent
54b0fca88e
commit
3eeb38762a
|
@ -14,6 +14,7 @@ setup() {
|
|||
install
|
||||
|
||||
install_xpack
|
||||
generate_trial_license
|
||||
verify_xpack_installation
|
||||
fi
|
||||
}
|
||||
|
@ -61,7 +62,7 @@ NEW_PASS
|
|||
}
|
||||
|
||||
@test "[$GROUP] test bootstrap.password is in setting list" {
|
||||
run sudo -E -u $DATA_USER sh <<"NODE_SETTINGS"
|
||||
run sudo -E -u $ESPLUGIN_COMMAND_USER sh <<"NODE_SETTINGS"
|
||||
cat >> $ESCONFIG/elasticsearch.yml <<- EOF
|
||||
network.host: 127.0.0.1
|
||||
http.port: 9200
|
||||
|
|
|
@ -91,6 +91,7 @@ install_node_using_archive() {
|
|||
|
||||
export ESPLUGIN_COMMAND_USER=$DEFAULT_ARCHIVE_USER
|
||||
install_xpack
|
||||
generate_trial_license
|
||||
verify_xpack_installation
|
||||
}
|
||||
|
||||
|
@ -118,6 +119,7 @@ install_node_using_package() {
|
|||
|
||||
export ESPLUGIN_COMMAND_USER=$DEFAULT_PACKAGE_USER
|
||||
install_xpack
|
||||
generate_trial_license
|
||||
verify_xpack_installation
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ setup() {
|
|||
install
|
||||
|
||||
install_xpack
|
||||
generate_trial_license
|
||||
verify_xpack_installation
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -93,6 +93,14 @@ assert_number_of_files() {
|
|||
}
|
||||
}
|
||||
|
||||
generate_trial_license() {
|
||||
sudo -E -u $ESPLUGIN_COMMAND_USER sh <<"NODE_SETTINGS"
|
||||
cat >> $ESCONFIG/elasticsearch.yml <<- EOF
|
||||
xpack.license.self_generated.type: trial
|
||||
EOF
|
||||
NODE_SETTINGS
|
||||
}
|
||||
|
||||
wait_for_xpack() {
|
||||
local host=${1:-localhost}
|
||||
local port=${2:-9200}
|
||||
|
|
Loading…
Reference in New Issue