justification
Adds tests according to the CI wiki specifically the standard test interface in the spec.
The playbook includes Tier1 level test cases that have been tested in the following contexts and
is passing reliably: Classic. Test logs are stored in the artifacts directory.
The following steps are used to execute the tests using the standard test interface:
Test enveronment
Make sure you have installed packages from the spec
```
ansible-2.4.1.0-2.fc28.noarch
python2-dnf-2.7.5-1.fc28.noarch
libselinux-python-2.7-2.fc28.x86_64
standard-test-roles-2.5-1.fc28.noarch
```
Run tests for Classic
Snip of the example test run for Classic tests:
```
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Test
:: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 17:42:55 ] :: [ LOG ] :: Starting libnet tests ...
:: [ 17:42:55 ] :: [ LOG ] :: Starting libnet tests ...
:: [ 17:42:55 ] :: [ BEGIN ] :: Running '/usr/bin/test-libnet'
[==========] Running 2 test(s).
[ RUN ] test_udp_packet_ipv4
UDP src_port=2425 dst_port=2426
UDP src_port=2425 dst_port=2426
UDP src_port=2425 dst_port=2426
UDP src_port=2425 dst_port=2426
[ OK ] test_udp_packet_ipv4
[ RUN ] test_tcp_packet_ipv4
TCP src_port=2425 dst_port=2426
TCP src_port=2425 dst_port=2426
TCP src_port=2425 dst_port=2426
TCP src_port=2425 dst_port=2426
[ OK ] test_tcp_packet_ipv4
[==========] 2 test(s) run.
[ PASSED ] 2 test(s).
:: [ 17:43:05 ] :: [ PASS ] :: Command '/usr/bin/test-libnet' (Expected 0, got 0)
:: [ 17:43:05 ] :: [ PASS ] :: Command '/usr/bin/test-libnet' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 10s
:: Duration: 10s
:: Assertions: 1 good, 0 bad
:: Assertions: 1 good, 0 bad
:: RESULT: PASS
:: RESULT: PASS
```
kernel-devel package was added because I thought it may resolve bluetooth
related build failure. After addition of dependency packages started building
again however with bluetooth support disabled.
Probably the *right* thing to do would be to move away from bluez
dependency, because code that use bluez-libs anyway. This is currently discussed
upstream.
See: https://github.com/the-tcpdump-group/libpcap/pull/417/
Linking against libnl is no longer desired by upstream and there has been a
discusion about dropping the code using libnl and to write libpcap's own netlink
library/wrapper. Preserve status quo for now and drop linking against libnl.
Using libnl to create a monN interface works better than using Wireless
Extension ioctls to turn on monitor mode, which is what libpcap does if *not*
linked with libnl.
Resolves: #765716