Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .buildkite/pull_request_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,40 @@ steps:
source .buildkite/scripts/common/container-agent.sh
x-pack/ci/integration_tests.sh

- label: ":lab_coat: x-pack unit tests - FIPS mode"
key: "x-pack-unit-tests-fips"
agents:
provider: gcp
imageProject: elastic-images-prod
image: family/platform-ingest-logstash-ubuntu-2204
machineType: "n2-standard-4"
diskSizeGb: 64
retry:
automatic:
- limit: 3
command: |
set -euo pipefail

docker build -t test-runner-image -f x-pack/distributions/internal/observabilitySRE/docker/Dockerfile .
docker run -e FIPS_MODE=true test-runner-image x-pack/ci/unit_tests.sh

- label: ":lab_coat: x-pack integration - FIPS mode"
key: "integration-tests-x-pack-fips"
agents:
provider: gcp
imageProject: elastic-images-prod
image: family/platform-ingest-logstash-ubuntu-2204
machineType: "n2-standard-4"
diskSizeGb: 64
retry:
automatic:
- limit: 3
command: |
set -euo pipefail

docker build -t test-runner-image -f x-pack/distributions/internal/observabilitySRE/docker/Dockerfile .
docker run -e FIPS_MODE=true test-runner-image x-pack/ci/integration_tests.sh

- wait: ~
continue_on_failure: true

Expand Down
6 changes: 5 additions & 1 deletion x-pack/ci/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ if [ -n "$BUILD_JAVA_HOME" ]; then
export LS_JAVA_HOME="$BUILD_JAVA_HOME"
fi

./gradlew runXPackIntegrationTests
if [ -n "$FIPS_MODE" ]; then
./gradlew runXPackIntegrationTests -PrunTestsInFIPSMode=true
else
./gradlew runXPackIntegrationTests
fi
6 changes: 5 additions & 1 deletion x-pack/ci/unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ if [ -n "$BUILD_JAVA_HOME" ]; then
GRADLE_OPTS="$GRADLE_OPTS -Dorg.gradle.java.home=$BUILD_JAVA_HOME"
fi

./gradlew runXPackUnitTests
if [ -n "$FIPS_MODE" ]; then
./gradlew runXPackUnitTests -PrunTestsInFIPSMode=true
else
./gradlew runXPackUnitTests
fi