From 34c00d7a7b026d31c307e5740aa0e035ab8be870 Mon Sep 17 00:00:00 2001 From: dkirchan Date: Thu, 19 Oct 2023 12:16:13 +0300 Subject: [PATCH] Fixed yarn target after having multiple configuration files --- .../pipeline-api-integration-tests.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.buildkite/scripts/pipelines/security_solution_quality_gate/pipeline-api-integration-tests.sh b/.buildkite/scripts/pipelines/security_solution_quality_gate/pipeline-api-integration-tests.sh index 0bb294ebfe883..41df379cfb1f9 100755 --- a/.buildkite/scripts/pipelines/security_solution_quality_gate/pipeline-api-integration-tests.sh +++ b/.buildkite/scripts/pipelines/security_solution_quality_gate/pipeline-api-integration-tests.sh @@ -7,14 +7,23 @@ source .buildkite/scripts/common/util.sh buildkite-agent meta-data set "${BUILDKITE_JOB_ID}_is_test_execution_step" "true" echo "--- Serverless Security Second Quality Gate" -cd x-pack +cd x-pack/test/security_solution_api_integration set +e -VAULT_DEC_KEY=$(vault read -field=key secret/kibana-issues/dev/security-solution-qg-enc-key) +VAULT_DEC_KEY=$(retry 5 5 vault read -field=enc_key secret/kibana-issues/dev/security-solution-qg-enc-key) ENV_PWD=$(echo $TEST_ENV_PWD | openssl aes-256-cbc -d -a -pass pass:$VAULT_DEC_KEY) # Removing the https:// part of the url provided in order to use it in the command below. ES_URL="${TEST_ENV_ES_URL/https:\/\//}" KB_URL="${TEST_ENV_KB_URL/https:\/\//}" -TEST_CLOUD=1 TEST_ES_URL="https://elastic:$ENV_PWD@$ES_URL" TEST_KIBANA_URL="https://elastic:$ENV_PWD@$KB_URL" node scripts/functional_test_runner.js --config test/security_solution_api_integration/test_suites/detections_response/serverless.config.ts \ No newline at end of file +echo "Running the script exception_workflows:runner:serverless" +TEST_CLOUD=1 TEST_ES_URL="https://elastic:$ENV_PWD@$ES_URL" TEST_KIBANA_URL="https://elastic:$ENV_PWD@$KB_URL" yarn run exception_workflows:runner:serverless +echo "Running the script exception_operators_date_numeric_types:runner:serverless" +TEST_CLOUD=1 TEST_ES_URL="https://elastic:$ENV_PWD@$ES_URL" TEST_KIBANA_URL="https://elastic:$ENV_PWD@$KB_URL" yarn run exception_operators_date_numeric_types:runner:serverless +echo "Running the script exception_operators_keyword_text_long:runner:serverless" +TEST_CLOUD=1 TEST_ES_URL="https://elastic:$ENV_PWD@$ES_URL" TEST_KIBANA_URL="https://elastic:$ENV_PWD@$KB_URL" yarn run exception_operators_keyword_text_long:runner:serverless +echo "Running the script exception_operators_ips_text_array:runner:serverless" +TEST_CLOUD=1 TEST_ES_URL="https://elastic:$ENV_PWD@$ES_URL" TEST_KIBANA_URL="https://elastic:$ENV_PWD@$KB_URL" yarn run exception_operators_ips_text_array:runner:serverless +echo "Running the script rule_creation:runner:serverless" +TEST_CLOUD=1 TEST_ES_URL="https://elastic:$ENV_PWD@$ES_URL" TEST_KIBANA_URL="https://elastic:$ENV_PWD@$KB_URL" yarn run rule_creation:runner:serverless \ No newline at end of file