libnet/tests
Susant Sahani 9cda7a4c0a Adds tests according to the CI
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

```
2018-06-29 18:10:21 +05:30
..
sanity-tests Adds tests according to the CI 2018-06-29 18:10:21 +05:30
tests.yml Adds tests according to the CI 2018-06-29 18:10:21 +05:30