Skip to content

Commit

Permalink
Add Integration tests to Auditbeat CI pipeline
Browse files Browse the repository at this point in the history
Add an integration test step for auditbeat, as part of the extended test suite.
  • Loading branch information
mjwolf committed Feb 6, 2024
1 parent df9694e commit 622fdfe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .buildkite/auditbeat/auditbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,26 @@ steps:
imagePrefix: "${IMAGE_MACOS_X86_64}"
artifact_paths: "auditbeat/build/*.xml"

- label: ":linux:-{{matrix.image}} Integration Tests"
key: "linux-integration"
command: ".buildkite/auditbeat/scripts/integ-tests.sh"
notify:
- github_commit_status:
context: "auditbeat/Extended: Linux Integration Tests"
agents:
provider: "gcp"
image: "{{matrix.image}}"
machine_type: "c3-standard-4"
disk_size: 100
disk_type: "pd_ssd"
matrix:
setup:
image:
- "${IMAGE_UBUNTU_X86_64}"
artifact_paths:
- "auditbeat/build/*.xml"
- "auditbeat/build/*.json"

- group: "Windows Extended Testing"
key: "extended-tests-win"
if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "auditbeat for windows" || build.env("GITHUB_PR_LABELS") =~ /.*windows.*/
Expand Down
12 changes: 12 additions & 0 deletions .buildkite/auditbeat/scripts/integ-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -euo pipefail

source .buildkite/env-scripts/linux-env.sh

echo "--- Running Integration Tests"
sudo chmod -R go-w auditbeat/

cd auditbeat
umask 0022
mage build integTest

0 comments on commit 622fdfe

Please sign in to comment.