forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick elastic#17773 to 7.x: [ci] Add 'mage test' to each project (
elastic#17956) * Remove legacy Windows CI mage targets and files GoTestUnit and Fields are not longer required for Windows CI tests. * Ensure all projects have a test target Ensure that each project has a test target. Additionally, if the project has unit tests then make sure it has an unitTest target. And likewise, an integTest target if the project has integration tests. This also ensures that for python notetests that the NOSE_TESTMATCH environment variable can be set to select a subset of tests to execute. For example `NOSE_TESTMATCH=test_kafka mage pythonIntegTest`. * Fix metricbeat dashboard test Mage writes dashboards to build/kibana. The old Makefile convention was to use _meta/kibana.generated. * Add kafka-python to python requirements Each project is sharing the same python virtual environment as an optimization when using Mage. Metricbeat had one additional dependency than what was listed in libbeat's requirements.txt. * Update libbeat integ tests to work under mage The mage integTest environment does not create a test.env file to pass to docker-compose. So move the variables into the docker-compose.yml file. If variables from a file are wanted at a later time then the built-in support for a ".env" file in docker-compose should be used instead. The python integration test was written to require code coverage instrumentation in the Go binaries. I updated the test to work when code coverage is not enabled. * Decrease verbosity of the chown function when using mage -v * Test Metricbeat using mage directly * Ignore generators/_templates for goimports This contains templates rather than .go files despite their file extensions. * Add integTest stub to Packetbeat * Add integTest to Heartbeat magefile (cherry picked from commit 62b1e90)
- Loading branch information
1 parent
1205e19
commit 5b17a87
Showing
31 changed files
with
162 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.