Commit Graph

51 Commits

Author SHA1 Message Date
Susant Sahani
451044af05 Add 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:
```

```
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

lldpad-1.0.1-9.git036e314.fc28.x86_64
:: [ 09:17:11 ] :: [   PASS   ] :: Checking for the presence of lldpad rpm
:: [ 09:17:11 ] :: [   LOG    ] :: Package versions:
:: [ 09:17:11 ] :: [   LOG    ] ::   lldpad-1.0.1-9.git036e314.fc28.x86_64
:: [ 09:17:11 ] :: [  BEGIN   ] :: Running 'systemctl stop firewalld'
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'systemctl stop firewalld' (Expected 0,5, got 0)
:: [ 09:17:11 ] :: [  BEGIN   ] :: Running 'setenforce 0'
setenforce: SELinux is disabled
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'setenforce 0' (Expected 0,1, got 1)
:: [ 09:17:11 ] :: [  BEGIN   ] :: Running 'mkdir -p /run/systemd/network'
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'mkdir -p /run/systemd/network' (Expected 0, got 0)
:: [ 09:17:11 ] :: [  BEGIN   ] :: Running 'cp lldp.network /run/systemd/network/'
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'cp lldp.network /run/systemd/network/' (Expected 0, got 0)
:: [ 09:17:11 ] :: [  BEGIN   ] :: Running 'cp tcpdumpd.service /run/systemd/system'
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'cp tcpdumpd.service /run/systemd/system' (Expected 0, got 0)
:: [ 09:17:11 ] :: [  BEGIN   ] :: Running 'systemctl daemon-reload'
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'systemctl daemon-reload' (Expected 0, got 0)
:: [ 09:17:11 ] :: [  BEGIN   ] :: Running 'cp lldpad-test.py /usr/bin/'
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'cp lldpad-test.py /usr/bin/' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 8 good, 0 bad
::   RESULT: PASS

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 09:17:11 ] :: [   LOG    ] :: lldpad tests
:: [ 09:17:11 ] :: [  BEGIN   ] :: Running '/usr/bin/python3 /usr/bin/lldpad-test.py'
test_lldpad_configured (__main__.lldpadTests)
Verify lldpad-peer interface configured ... ok
test_lldpad_trasmitted_packets (__main__.lldpadTests)
verify at the other end of veth(lldpad) lldpad has trasmitted packets. Extract from tcpdump ... reading from file /tmp/lldpad-tcp-dump.pcap, link-type EN10MB (Ethernet)
ok
test_lldptool_get_tlv (__main__.lldpadTests)
Verify lldpad got the packet transmitted from lldpad-peer interface ... ok
test_management_address (__main__.lldpadTests)
Test Get/Set a Management Address ... ok
test_systemd_networkd_lldp (__main__.lldpadTestsViaNetworkd)
Receive LLDP packets via networkd ... ok

----------------------------------------------------------------------
Ran 5 tests in 99.310s

OK
:: [ 09:18:50 ] :: [   PASS   ] :: Command '/usr/bin/python3 /usr/bin/lldpad-test.py' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 99s
::   Assertions: 1 good, 0 bad
::   RESULT: PASS

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Cleanup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 09:18:51 ] :: [  BEGIN   ] :: Running 'rm /usr/bin/lldpad-test.py /run/systemd/network/lldp.network /run/systemd/system/tcpdumpd.service'
:: [ 09:18:51 ] :: [   PASS   ] :: Command 'rm /usr/bin/lldpad-test.py /run/systemd/network/lldp.network /run/systemd/system/tcpdumpd.service' (Expected 0, got 0)
:: [ 09:18:51 ] :: [  BEGIN   ] :: Running 'systemctl daemon-reload'
:: [ 09:18:51 ] :: [   PASS   ] :: Command 'systemctl daemon-reload' (Expected 0, got 0)
:: [ 09:18:51 ] :: [  BEGIN   ] :: Running 'setenforce 1'
setenforce: SELinux is disabled
:: [ 09:18:51 ] :: [   PASS   ] :: Command 'setenforce 1' (Expected 0,1, got 1)
:: [ 09:18:51 ] :: [   LOG    ] :: lldpad tests done
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 3 good, 0 bad
::   RESULT: PASS

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   TEST PROTOCOL
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    Package       : lldpad
    Installed     : lldpad-1.0.1-9.git036e314.fc28.x86_64
    beakerlib RPM : beakerlib-1.17-13.fc28.noarch
    Test started  : 2018-06-10 09:17:10 IST
    Test finished : 2018-06-10 09:18:51 IST (still running)
    Test duration : 101 seconds
    Test name     : unknown
    Distro        : Fedora release 28 (Twenty Eight)
    Hostname      : Zeus
    Architecture  : x86_64
    CPUs          : 8 x Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
    RAM size      : 15731 MB
    HDD size      : 226.83 GB

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 09:17:11 ] :: [   PASS   ] :: Checking for the presence of lldpad rpm
:: [ 09:17:11 ] :: [   LOG    ] :: Package versions:
:: [ 09:17:11 ] :: [   LOG    ] ::   lldpad-1.0.1-9.git036e314.fc28.x86_64
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'systemctl stop firewalld' (Expected 0,5, got 0)
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'setenforce 0' (Expected 0,1, got 1)
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'mkdir -p /run/systemd/network' (Expected 0, got 0)
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'cp lldp.network /run/systemd/network/' (Expected 0, got 0)
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'cp tcpdumpd.service /run/systemd/system' (Expected 0, got 0)
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'systemctl daemon-reload' (Expected 0, got 0)
:: [ 09:17:11 ] :: [   PASS   ] :: Command 'cp lldpad-test.py /usr/bin/' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 8 good, 0 bad
::   RESULT: PASS

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 09:17:11 ] :: [   LOG    ] :: lldpad tests
:: [ 09:18:50 ] :: [   PASS   ] :: Command '/usr/bin/python3 /usr/bin/lldpad-test.py' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 99s
::   Assertions: 1 good, 0 bad
::   RESULT: PASS

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Cleanup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 09:18:51 ] :: [   PASS   ] :: Command 'rm /usr/bin/lldpad-test.py /run/systemd/network/lldp.network /run/systemd/system/tcpdumpd.service' (Expected 0, got 0)
:: [ 09:18:51 ] :: [   PASS   ] :: Command 'systemctl daemon-reload' (Expected 0, got 0)
:: [ 09:18:51 ] :: [   PASS   ] :: Command 'setenforce 1' (Expected 0,1, got 1)
:: [ 09:18:51 ] :: [   LOG    ] :: lldpad tests done
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 3 good, 0 bad
::   RESULT: PASS

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   unknown
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 09:18:51 ] :: [   LOG    ] :: JOURNAL XML: /var/tmp/beakerlib-RRyct40/journal.xml
:: [ 09:18:51 ] :: [   LOG    ] :: JOURNAL TXT: /var/tmp/beakerlib-RRyct40/journal.txt
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 101s
::   Phases: 3 good, 0 bad
::   OVERALL RESULT: PASS
```
2018-06-12 18:00:17 +05:30
Fedora Release Engineering
14833b505a - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 00:01:36 +00:00
Fedora Release Engineering
3c415a0fef - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 02:41:16 +00:00
Fedora Release Engineering
fa102179e4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 20:13:28 +00:00
Chris Leech
b09c517b52 disable -Werror from upstream to rebuild with newer compiler warnings 2017-02-12 11:39:56 -08:00
Fedora Release Engineering
043be0babc - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 19:54:24 +00:00
Dennis Gilmore
ab57474656 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 04:21:11 +00:00
Chris Leech
67dd5a91fb fix build failure due to new warning in rawhide 2016-02-01 15:04:32 -08:00
Chris Leech
f48ccb7e39 package should not attempt to own /etc/bash_completion.d 2016-02-01 13:54:37 -08:00
Chris Leech
68a9f33ff4 convert from sysv shm to posix, to allow selinux restorecon 2015-11-03 14:51:15 -08:00
Chris Leech
31e7d6b129 rebased to upstream v1.0.1-23-g986eb2e 2015-06-17 10:50:08 -07:00
Chris Leech
9e5b5a082f sync to upstream v0.9.46-123-g48a5f38 2014-10-23 15:37:29 -07:00
Peter Robinson
b4e3f3e5a3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 07:27:11 +00:00
Peter Robinson
d4c24bc36d Add upstream patch to build against libnl3, Drop legacy dcbd packaging support, we've not shipped it since F-13 2014-07-22 14:14:50 +01:00
Dennis Gilmore
495eb16761 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 01:36:48 -05:00
Petr Šabata
e4cd6c9338 Patch configure.ac to build in rawhide 2014-03-11 15:49:48 +01:00
Petr Šabata
c9eb4fefe9 Drop the explicit kernel runtime dependency 2014-03-11 15:00:16 +01:00
Petr Šabata
14d56aca84 Require 'systemd' instead of 'systemd-units' 2013-07-31 18:00:57 +02:00
Petr Šabata
fb503aeed0 Fix the hardened build flags 2013-07-02 15:19:18 +02:00
Petr Šabata
20798d8c32 0.9.46 bump
- 802.1Qaz fixes to enable support on not CEE DCBX-enabled hardware
- 802.1Qbg EVB module support
- lldpad now supports bonded interfaces
2013-06-04 15:33:19 +02:00
Petr Šabata
1418290a8c Fix build by patching the sizeof() call 2013-03-05 16:20:02 +01:00
Dennis Gilmore
88f99068c6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 23:45:11 -06:00
Petr Šabata
c59f8e5204 Migrate to systemd scriptlets 2012-08-28 13:28:28 +02:00
Petr Šabata
1ad910aaba Fix displaying of the Management Address TLV 2012-08-23 15:23:21 +02:00
Petr Šabata
22fc8f5861 0.9.45 bump 2012-08-15 14:03:03 +02:00
Petr Šabata
42ff57efa1 Make sure our configuration directory exists 2012-07-23 17:58:34 +02:00
Dennis Gilmore
f4e7d1029b - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-19 17:01:07 -05:00
Petr Šabata
41587237c7 0.9.44 bump 2012-01-27 11:34:25 +01:00
Dennis Gilmore
7d42de7c03 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 02:49:50 -06:00
Petr Sabata
e50f8e33bc Patches cleanup 2011-10-06 16:05:37 +02:00
Petr Sabata
28642b3aa4 Do not enable lldpad by default (#701999) 2011-10-06 16:05:01 +02:00
Petr Sabata
25b767cd04 Enable hardened build 2011-09-23 14:21:13 +02:00
Petr Sabata
61999fd6b7 Mute systemd output (#737897) 2011-09-13 13:39:06 +02:00
Petr Sabata
b7210ab7a2 Apply various upstream 0.9.43 bugfixes 2011-09-08 08:34:30 +02:00
Petr Sabata
e1e874c9cf 0.9.43 bump 2011-07-07 14:55:36 +02:00
Petr Sabata
af3a878ec4 Introduce systemd support 2011-06-21 16:22:29 +02:00
Petr Sabata
2f8ffeb7f2 0.9.42 bump 2011-06-13 11:20:47 +02:00
Petr Sabata
e9225f8d60 Fix the frequent, power consuming wake-ups 2011-05-04 17:49:39 +02:00
Petr Sabata
c639191703 Requires patches 2011-04-21 09:10:21 +02:00
Petr Sabata
b63f87477c Bring in 802.1Qbg bugfixes 2011-04-21 09:09:33 +02:00
Petr Sabata
2f7517e02c %patch2 suffix change 2011-02-10 14:23:41 +01:00
Petr Sabata
14868abda1 0.9.41 bump
Spec cleanup, BR changes, scriptlets sanitization
2011-02-10 14:06:13 +01:00
Dennis Gilmore
58bd133a89 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 07:25:59 -06:00
Fedora Release Engineering
3fb2c5db2e dist-git conversion 2010-07-29 02:29:19 +00:00
Jan Zeleny
0d8e0228b6 rebased to 0.9.38 2010-06-28 13:07:47 +00:00
Jan Zeleny
f8c1a0211f rebuild for the new libconfig 2010-05-10 06:23:52 +00:00
Jan Zeleny
61992b06a9 rebased to 0.9.32 (various enhancements and bugfixes) 2010-04-12 13:15:37 +00:00
Jan Zeleny
14d1ddb0de added Provides and Obsoletes tags to devel subpackage 2010-03-25 12:41:45 +00:00
Jan Zeleny
276491623a rebased to 0.9.29 (better support for fcoe-utils) 2010-03-16 08:35:07 +00:00
Jan Zeleny
a3e201ac48 initial import 2010-03-01 12:46:48 +00:00