* add custom runner and config for load testing * add full maven command * add jenkins script * run tests against build * run kibana with no-base-path flag Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
30 lines
913 B
Bash
Executable file
30 lines
913 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
cd "$KIBANA_DIR"
|
|
source src/dev/ci_setup/setup_env.sh
|
|
|
|
if [[ ! "$TASK_QUEUE_PROCESS_ID" ]]; then
|
|
./test/scripts/jenkins_xpack_build_plugins.sh
|
|
fi
|
|
|
|
# doesn't persist, also set in kibanaPipeline.groovy
|
|
export KBN_NP_PLUGINS_BUILT=true
|
|
|
|
echo " -> building and extracting default Kibana distributable for use in functional tests"
|
|
cd "$KIBANA_DIR"
|
|
node scripts/build --debug --no-oss
|
|
linuxBuild="$(find "$KIBANA_DIR/target" -name 'kibana-*-linux-x86_64.tar.gz')"
|
|
installDir="$KIBANA_DIR/install/kibana"
|
|
mkdir -p "$installDir"
|
|
tar -xzf "$linuxBuild" -C "$installDir" --strip=1
|
|
|
|
mkdir -p "$WORKSPACE/kibana-build-xpack"
|
|
cp -pR install/kibana/. $WORKSPACE/kibana-build-xpack/
|
|
|
|
echo " -> test setup"
|
|
source test/scripts/jenkins_test_setup_xpack.sh
|
|
|
|
echo " -> run gatling load testing"
|
|
node scripts/functional_tests \
|
|
--kibana-install-dir "$KIBANA_INSTALL_DIR" \
|
|
--config test/load/config.ts
|