elastic / beats-tester

E2E tests for the Beats
18 stars 22 forks source link

The Beats Tester

Vagrant + Ansible setup for testing the OS packages and basic e2e tests for all the Beats.

OS matrix

OS Support
awslinux :white_check_mark:
awslinux2 :white_check_mark:
centos7-64 :white_check_mark:
centos8-64 :white_check_mark:
debian10-64 :white_check_mark:
debian8-64 :white_check_mark:
debian9-64 :white_check_mark:
sles12-64 :white_check_mark:
ubuntu1804-64 :white_check_mark:
ubuntu2004-64 :white_check_mark:
win12-64 :white_check_mark:

Requirements

Those versions are defined in the requirements.txt.

Execute

First, for Linux and macOS, you need to enable some IP address range for the host-only network. To do so, create (or edit) /etc/vbox/networks.conf and add the following range there:

192.168.33.0/24

For more information, check the official documentation

Second, you need to bring the machines up:

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.

Here are some execution examples:

Cleanup

You need to tear down the VMs when you are finished.

make clean