Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 39e2741

Browse files
committedMar 21, 2025·
Add buildkite step to run unit tests that require fips provider
Add a buildkite step that runs FIPS=true make test-unit as these tests require msft/go and a FIPS provider.
1 parent 2e51560 commit 39e2741

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed
 

‎.buildkite/pipeline.yml

+13
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ steps:
9898
- build/*.xml
9999
- build/coverage*.out
100100

101+
- label: ":smartbear-testexecute: Run FIPS Provider tests"
102+
key: provider-test-fips
103+
command: ".buildkite/scripts/fips_provider_test.sh"
104+
agents:
105+
provider: "aws"
106+
imagePrefix: "elasticcloud-fips-ubuntu-2204-amd64-dev-jammyf-"
107+
diskSizeGb: 100
108+
instanceType: m5.large
109+
artifact_paths:
110+
- build/*.xml
111+
- build/coverage*.out
112+
113+
101114
- label: ":smartbear-testexecute: Run unit tests: MacOS 13"
102115
key: unit-test-macos-13
103116
command: ".buildkite/scripts/unit_test.sh"

‎.buildkite/scripts/common.sh

+13-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,18 @@ with_go() {
5151
export PATH="${PATH}:$(go env GOPATH):$(go env GOPATH)/bin"
5252
}
5353

54+
with_msft_go() {
55+
echo "Setting up microsoft/go"
56+
create_workspace
57+
check_platform_architeture
58+
MSFT_DOWNLOAD_URL=https://aka.ms/golang/release/latest/go$(cat .go-version)-1.${platform_type}-${arch_type}.tar.gz
59+
retry 5 $(curl -sL -o - $MSFT_DOWNLOAD_URL | tar -xz -f - -C ${WORKSPACE})
60+
export PATH="${PATH}:${WORKSPACE}/go/bin"
61+
go version
62+
which go
63+
export PATH="${PATH}:$(go env GOPATH):$(go env GOPATH)/bin"
64+
}
65+
5466
with_docker_compose() {
5567
echo "Setting up the Docker-compose environment..."
5668
create_workspace
@@ -160,4 +172,4 @@ cleanup() {
160172
echo "Deleting temporary files..."
161173
rm -rf ${WORKSPACE}/${TMP_FOLDER_TEMPLATE_BASE}.*
162174
echo "Done."
163-
}
175+
}
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
source .buildkite/scripts/common.sh
6+
7+
add_bin_path
8+
9+
with_msft_go
10+
11+
echo "Starting the provider tests..."
12+
FIPS=true make test-unit junit-report
13+

0 commit comments

Comments
 (0)
Please sign in to comment.