File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 33
44GROUP_NAME=$1
55TEST_SUDO=$2
6+ TEST_FIPS=$3
67
78if [ -z " $GROUP_NAME " ]; then
89 echo " Error: Specify the group name: sudo-integration-tests.sh [group_name]" >&2
@@ -14,6 +15,11 @@ if [ -z "$TEST_SUDO" ]; then
1415 exit 1
1516fi
1617
18+ if [ -z " $TEST_FIPS " ]; then
19+ echo " Error: Specify the test FIPS: sudo-integration-tests.sh [group_name] [test_sudo] [test_fips]" >&2
20+ exit 1
21+ fi
22+
1723if [ " $TEST_SUDO " == " true" ]; then
1824 echo " Re-initializing ASDF. The user is changed to root..."
1925 export ASDF_DATA_DIR=" /opt/buildkite-agent/.asdf"
@@ -51,7 +57,19 @@ outputJSON="build/${fully_qualified_group_name}.integration.out.json"
5157echo " ~~~ Integration tests: ${GROUP_NAME} "
5258
5359set +e
54- TEST_BINARY_NAME=" elastic-agent" AGENT_VERSION=" ${AGENT_VERSION} " SNAPSHOT=true gotestsum --no-color -f standard-quiet --junitfile " ${outputXML} " --jsonfile " ${outputJSON} " -- -tags integration -test.shuffle on -test.timeout 2h0m0s github.com/elastic/elastic-agent/testing/integration -v -args -integration.groups=" ${GROUP_NAME} " -integration.sudo=" ${TEST_SUDO} "
60+ TEST_BINARY_NAME=" elastic-agent" AGENT_VERSION=" ${AGENT_VERSION} " SNAPSHOT=true \
61+ gotestsum --no-color -f standard-quiet \
62+ --junitfile " ${outputXML} " \
63+ --jsonfile " ${outputJSON} " \
64+ -- \
65+ -tags integration -test.shuffle on -test.timeout 2h0m0s \
66+ github.com/elastic/elastic-agent/testing/integration \
67+ -v \
68+ -args \
69+ -integration.groups=" ${GROUP_NAME} " \
70+ -integration.sudo=" ${TEST_SUDO} " \
71+ -integration.fips=" ${TEST_FIPS} "
72+
5573TESTS_EXIT_STATUS=$?
5674set -e
5775
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ asdf install
1111
1212GROUP_NAME=$1
1313TEST_SUDO=$2
14+ TEST_FIPS=$3
1415if [ -z " $GROUP_NAME " ]; then
1516 echo " Error: Specify the group name: integration_tests_tf.sh [group_name]" >&2
1617 exit 1
@@ -21,6 +22,11 @@ if [ -z "$TEST_SUDO" ]; then
2122 exit 1
2223fi
2324
25+ if [ -z " $TEST_FIPS " ]; then
26+ echo " Error: Specify the test FIPS: sudo-integration-tests.sh [group_name] [test_sudo] [test_fips]" >&2
27+ exit 1
28+ fi
29+
2430# Override the agent package version using a string with format <major>.<minor>.<patch>
2531# There is a time when the snapshot is not built yet, so we cannot use the latest version automatically
2632# This file is managed by an automation (mage integration:UpdateAgentPackageVersion) that check if the snapshot is ready.
You can’t perform that action at this time.
0 commit comments