ladvd/tests
Susant Sahani ea61fcf965 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
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 19:12:25 ] :: [   LOG    ] :: ladvd tests
:: [ 19:12:25 ] :: [   LOG    ] :: ladvd tests
:: [ 19:12:25 ] :: [  BEGIN   ] :: Running '/usr/bin/python3 /usr/bin/ladvd-test.py'
test_ladvd_trasmitted_cdp_packets (__main__.ladvdTests)
verify at the other end of veth ifname ladvd has received CDP packets. tcpdump ... reading from file /tmp/ladvd-tcp-dump.pcap, link-type EN10MB (Ethernet)
ok
test_ladvd_trasmitted_edp_packets (__main__.ladvdTests)
verify at the other end of veth ifname ladvd has received EDP packets. tcpdump ... reading from file /tmp/ladvd-tcp-dump.pcap, link-type EN10MB (Ethernet)
ok
test_ladvd_trasmitted_fdp_packets (__main__.ladvdTests)
verify at the other end of veth ifname ladvd has received FDP (Foundry Discovery Protocol) packets. tcpdump ... reading from file /tmp/ladvd-tcp-dump.pcap, link-type EN10MB (Ethernet)
ok
test_ladvd_trasmitted_lldp_packets (__main__.ladvdTests)
verify at the other end of veth ifname ladvd has received LLDP packets. tcpdump ... reading from file /tmp/ladvd-tcp-dump.pcap, link-type EN10MB (Ethernet)
ok
test_systemd_networkd_lldp (__main__.ladvdTestsViaNetworkd) ... ok

----------------------------------------------------------------------
Ran 5 tests in 328.588s

OK
```
2018-06-27 19:21:06 +05:30
..
sanity-tests Adds tests according to the CI 2018-06-27 19:21:06 +05:30
tests.yml Adds tests according to the CI 2018-06-27 19:21:06 +05:30