Skip to content

Commit

Permalink
[7.17] Fix Kubernetes module metricbeat Go integration tests (#39928)
Browse files Browse the repository at this point in the history
* Always use mage -v goIntegTest

* Switch to batch/v1 for CronJobs.
  • Loading branch information
cmacknz authored Jun 17, 2024
1 parent 1cd6070 commit 666c446
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .buildkite/filebeat/filebeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ steps:
- label: ":ubuntu: Filebeat Go Integration Tests"
command: |
cd filebeat
mage goIntegTest
mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/heartbeat/heartbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ steps:
echo "~~~ Running tests"
cd heartbeat
mage goIntegTest
mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/libbeat/pipeline.libbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ steps:
command: |
set -euo pipefail
cd libbeat
mage goIntegTest
mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/metricbeat/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ steps:
echo "~~~ Running tests"
export KUBECONFIG="$$PWD/kubecfg"
cd metricbeat
mage goIntegTest
mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/scripts/go_int_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ set -euo pipefail
echo "--- Run Go Intergration Tests for $BEATS_PROJECT_NAME"
pushd "${BEATS_PROJECT_NAME}" > /dev/null

mage goIntegTest
mage -v goIntegTest

popd > /dev/null
2 changes: 1 addition & 1 deletion .buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ steps:
defineModuleFromTheChangeSet x-pack/dockerlogbeat
echo "~~~ Running tests"
cd x-pack/dockerlogbeat
mage goIntegTest
mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/x-pack/pipeline.xpack.filebeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ steps:
key: "x-pack-filebeat-mandatory-int-test"
command: |
cd x-pack/filebeat
mage goIntegTest
mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/x-pack/pipeline.xpack.heartbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ steps:
npm install -g @elastic/synthetics
echo "~~~ Running tests"
cd x-pack/heartbeat
mage goIntegTest
mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/x-pack/pipeline.xpack.libbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ steps:
key: "mandatory-int-test"
command: |
cd x-pack/libbeat
mage goIntegTest
mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/x-pack/pipeline.xpack.metricbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ steps:
source .buildkite/scripts/changesets.sh
defineModuleFromTheChangeSet x-pack/metricbeat
echo "~~~ Running tests"
cd x-pack/metricbeat && mage goIntegTest
cd x-pack/metricbeat && mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/x-pack/pipeline.xpack.osquerybeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ steps:
key: "mandatory-int-test"
command: |
cd x-pack/osquerybeat
mage goIntegTest
mage -v goIntegTest
retry:
automatic:
- limit: 3
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/kubernetes/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ spec:
requests:
storage: 1Mi
---
apiVersion: batch/v1beta1
apiVersion: batch/v1
kind: CronJob
metadata:
name: basic-cronjob
Expand Down

0 comments on commit 666c446

Please sign in to comment.