forked from elastic/beats-tester
-
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.
- Add virtualenv for running Ansible in a reproducible manner. - Change regex for matching Metricbeat output from the system-cpu metricset The order of the JSON keys in the `metricset` object is different in the output than before (I haven't determined why.) - Update the win_copy dest argument to include the file name and not just the destination directory. - Refactor the Makefile and update the README. - Temporarily disable Filebeat testing on Windows while elastic/beats#6145 is resolved.
- Loading branch information
1 parent
998ad47
commit e0e5c18
Showing
16 changed files
with
81 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
# Directories | ||
/.vagrant | ||
/.idea | ||
/ve | ||
|
||
# Files | ||
.DS_Store | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,51 @@ | ||
# The Beats Tester | ||
|
||
Vagrant + Ansible setup for testing the OS packages and basic e2e tests for all | ||
the [Beats](https://www.elastic.co/products/beats) | ||
the [Beats](https://www.elastic.co/products/beats). | ||
|
||
|
||
## Execute | ||
|
||
First, you need to bring the machines up: | ||
|
||
vagrant up | ||
|
||
and make them known by name to SSH: | ||
|
||
vagrant ssh-config >> ~/.ssh/config | ||
make setup | ||
|
||
Then you can use Ansible to run the tests. Because they involve lots of VMs and | ||
commands executed over SSH, these tests are slow (currently 15 minutes in | ||
total). However, while creating tests or checking something quickly, you can | ||
use different Ansible commands to execute only a subset. | ||
total). However, while creating tests or checking something quickly, you can use | ||
different Ansible commands to execute only a subset. | ||
|
||
Here are some execution examples: | ||
|
||
* Test the most recent nightly builds (excluding OS X): | ||
* Test the most recent [nightly builds](https://internal-ci.elastic.co/job/elastic+release-manager+master+unified-snapshot/) (excluding OS X): | ||
|
||
make nightlies | ||
RUN_SETTINGS=snapshot make run | ||
|
||
* All tests, all platforms, a particular release: | ||
|
||
ansible-playbook -i hosts -e @run-settings-1.0.0-beta3.yml site.yml | ||
# Edit version contained in run-settings-released.yml. | ||
RUN_SETTINGS=released make run | ||
|
||
* Only a particular Beat, Packetbeat in the example: | ||
|
||
ansible-playbook -i hosts -e @run-settings-nightly.yml --tags packetbeat site.yml | ||
export ANSIBLE_EXTRA_FLAGS="--tags packetbeat" | ||
make run | ||
|
||
* Only a particular OS, Debian 6 amd64 in the example: | ||
|
||
ansible-playbook -i hosts -e @run-settings-nightly.yml --limit tester-debian6-64 site.yml | ||
# Instead using 'make setup' launch vagrant machines manually. | ||
vagrant up tester-debian6-64 | ||
vagrant ssh-config > ssh_config | ||
export ANSIBLE_LIMIT="tester-debian9-64" | ||
make run | ||
|
||
* Enable Ansible debug. | ||
|
||
export ANSIBLE_VERBOSE="-vvv" | ||
make run | ||
|
||
## Cleanup | ||
|
||
You need to tear down the VMs when you are finished. | ||
|
||
make clean |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ansible==2.4.2.0 | ||
pywinrm>=0.2.2 | ||
markupsafe |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Released artifacts. | ||
url_base: https://artifacts.elastic.co/downloads/beats | ||
version: 6.1.2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Snapshot builds. | ||
# Published by: https://internal-ci.elastic.co/job/elastic+release-manager+master+unified-snapshot/ | ||
url_base: https://snapshots.elastic.co/downloads/beats | ||
version: 7.0.0-alpha1-SNAPSHOT |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
url_base: https://staging.elastic.co/6.0.0-rc2-ba5a2827/downloads/beats | ||
version: 6.0.0-rc2 | ||
# Staged releases. | ||
url_base: https://staging.elastic.co/6.2.0-0557a3c6/downloads/beats | ||
version: 6.2.0 |
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