Go to file
Susant Sahani d3febaaaa0 Adds tests according to the CI
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:
```

net-snmp-5.7.3-38.fc29.x86_64
:: [ 17:12:37 ] :: [   PASS   ] :: Checking for the presence of net-snmp rpm
:: [ 17:12:37 ] :: [   PASS   ] :: Checking for the presence of net-snmp rpm
:: [ 17:12:37 ] :: [   LOG    ] :: Package versions:
:: [ 17:12:37 ] :: [   LOG    ] :: Package versions:
:: [ 17:12:37 ] :: [   LOG    ] ::   net-snmp-5.7.3-38.fc29.x86_64
:: [ 17:12:37 ] :: [   LOG    ] ::   net-snmp-5.7.3-38.fc29.x86_64
net-snmp-utils-5.7.3-38.fc29.x86_64
:: [ 17:12:37 ] :: [   PASS   ] :: Checking for the presence of net-snmp-utils rpm
:: [ 17:12:37 ] :: [   PASS   ] :: Checking for the presence of net-snmp-utils rpm
:: [ 17:12:37 ] :: [   LOG    ] :: Package versions:
:: [ 17:12:37 ] :: [   LOG    ] :: Package versions:
:: [ 17:12:37 ] :: [   LOG    ] ::   net-snmp-utils-5.7.3-38.fc29.x86_64
:: [ 17:12:37 ] :: [   LOG    ] ::   net-snmp-utils-5.7.3-38.fc29.x86_64
:: [ 17:12:37 ] :: [  BEGIN   ] :: Running 'systemctl stop firewalld'
:: [ 17:12:37 ] :: [   PASS   ] :: Command 'systemctl stop firewalld' (Expected 0,5, got 0)
:: [ 17:12:37 ] :: [   PASS   ] :: Command 'systemctl stop firewalld' (Expected 0,5, got 0)
:: [ 17:12:37 ] :: [  BEGIN   ] :: Running 'setenforce 0'
:: [ 17:12:37 ] :: [   PASS   ] :: Command 'setenforce 0' (Expected 0,1, got 0)
:: [ 17:12:37 ] :: [   PASS   ] :: Command 'setenforce 0' (Expected 0,1, got 0)
:: [ 17:12:37 ] :: [  BEGIN   ] :: Running '[ -e /sys/class/net/veth-test ] && ip link del veth-test'
:: [ 17:12:37 ] :: [   PASS   ] :: Command '[ -e /sys/class/net/veth-test ] && ip link del veth-test' (Expected 0,1, got 1)
:: [ 17:12:37 ] :: [   PASS   ] :: Command '[ -e /sys/class/net/veth-test ] && ip link del veth-test' (Expected 0,1, got 1)
:: [ 17:12:37 ] :: [  BEGIN   ] :: Running 'cp net-snmp-tests.py /usr/bin/'
:: [ 17:12:37 ] :: [   PASS   ] :: Command 'cp net-snmp-tests.py /usr/bin/' (Expected 0, got 0)
:: [ 17:12:37 ] :: [   PASS   ] :: Command 'cp net-snmp-tests.py /usr/bin/' (Expected 0, got 0)
:: [ 17:12:37 ] :: [   INFO   ] :: using '/var/tmp/beakerlib-FznqAiL/backup' as backup destination
:: [ 17:12:37 ] :: [   INFO   ] :: using '/var/tmp/beakerlib-FznqAiL/backup' as backup destination
:: [ 17:12:38 ] :: [  BEGIN   ] :: Running 'cp snmpd.conf /etc/snmp/snmpd.conf'

: [ 17:12:38 ] :: [  BEGIN   ] :: Running 'cp snmpd.conf /etc/snmp/snmpd.conf'
:: [ 17:12:38 ] :: [   PASS   ] :: Command 'cp snmpd.conf /etc/snmp/snmpd.conf' (Expected 0, got 0)
:: [ 17:12:38 ] :: [   PASS   ] :: Command 'cp snmpd.conf /etc/snmp/snmpd.conf' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 1s
::   Duration: 1s
::   Assertions: 7 good, 0 bad
::   Assertions: 7 good, 0 bad
::   RESULT: PASS
::   RESULT: PASS

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

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

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

:: [ 17:12:38 ] :: [   LOG    ] :: Starting net-snmp tests ...
:: [ 17:12:38 ] :: [   LOG    ] :: Starting net-snmp tests ...
:: [ 17:12:38 ] :: [  BEGIN   ] :: Running '/usr/bin/python3 /usr/bin/net-snmp-tests.py'
test_SNMP_IF_MIB_network_interface (__main__.SnmpdTests)
verify network interface (1.3.6.1.2.1.2.2.1) SNMP variables ... ok
test_SNMP_MIB_2_System (__main__.SnmpdTests)
verify RFC 1213 System (1.3.6.1.2.1.1) SNMP variables ... ok
test_SNMP_hrSWRunPath (__main__.SnmpdTests)
process id ... ok
test_UCD_SNMP_MIB_memory (__main__.SnmpdTests)
UCD-SNMP-MIB::memory ... ok
test_basic_snmpwalk (__main__.SnmpdTests)
verify snmpwalk getting success snmpwalk -v2c -c public localhost ... ok

----------------------------------------------------------------------
Ran 5 tests in 7.450s

OK
:: [ 17:12:45 ] :: [   PASS   ] :: Command '/usr/bin/python3 /usr/bin/net-snmp-tests.py' (Expected 0, got 0)
:: [ 17:12:45 ] :: [   PASS   ] :: Command '/usr/bin/python3 /usr/bin/net-snmp-tests.py' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2018-06-08 17:38:05 +05:30
tests Adds tests according to the CI 2018-06-08 17:38:05 +05:30
.gitignore Add source files 2015-02-17 15:49:36 +01:00
0001-Link-libnetsnmptrapd-against-MYSQL_LIBS.patch Add patch (whoops) 2017-07-20 11:23:06 -07:00
IETF-MIB-LICENSE.txt add IETF MIB license text 2013-02-14 12:31:43 -05:00
net-snmp-5.5-agentx-disconnect-crash.patch Fixed snmpd crashing when AgentX subagent disconnects in the middle of request processing 2013-12-05 13:21:03 +01:00
net-snmp-5.5-apsl-copying.patch Update to 5.7.3 2015-02-17 15:41:13 +01:00
net-snmp-5.5-dir-fix.patch - update to Net-SNMP 5.5 2009-09-29 15:23:38 +00:00
net-snmp-5.5-perl-linking.patch Update to net-snmp-5.7 2011-07-07 15:03:51 +02:00
net-snmp-5.6-multilib.patch Update to 5.7.3 2015-02-17 15:41:13 +01:00
net-snmp-5.6-test-debug.patch rediff patch 2012-10-18 10:18:21 +02:00
net-snmp-5.7-agentx-crash.patch Fixed snmpd crashing when AgentX subagent disconnects in the middle of request processing 2013-12-05 13:21:03 +01:00
net-snmp-5.7.2-autoreconf.patch Update autoconf version to make test suite happy. 2013-03-25 13:02:27 +01:00
net-snmp-5.7.2-cert-path.patch Fixed net-snmp-cert tool, now it does not depend on net-snmp-devel 2014-09-01 12:08:56 +02:00
net-snmp-5.7.2-create-user-multilib.patch fixed net-snmp-create-v3-user to have the same content on all architectures 2013-02-07 10:23:05 +01:00
net-snmp-5.7.2-pie.patch Updated to 5.7.2 2012-10-18 10:02:05 +02:00
net-snmp-5.7.2-systemd.patch Fix wrong systemd patch (#1545946) 2018-02-16 07:35:56 +01:00
net-snmp-5.7.3-CVE-2018-1000116.patch Resolves: #1552844 - CVE-2018-1000116 Heap corruption in snmp_pdu_parse 2018-03-08 09:59:42 +01:00
net-snmp-5.7.3-Fix-Makefile-PL.patch Updated net-snmp to build against Perl 5.24 2016-05-09 13:39:48 +02:00
net-snmp-5.7.3-Remove-U64-typedef.patch Updated net-snmp to build against Perl 5.24 2016-05-09 13:39:48 +02:00
net-snmp-5.7.3-autofs.patch Fix issue with statistics from autofs 2018-02-08 12:25:46 +01:00
net-snmp-5.7.3-cflags.patch Trim net-snmp-config --cflags output 2016-02-24 12:26:08 +01:00
net-snmp-5.7.3-iterator-fix.patch Upstream iterator fix 2018-03-27 10:55:06 +02:00
net-snmp-5.7.3-mariadb-connector-c.patch Using mariadb-connector-c package (#1339272) 2017-12-14 06:17:43 +01:00
net-snmp-5.7.3-mariadb102.patch Fix build with MariaDB 10.2 (#1470642) 2017-07-19 11:03:20 -07:00
net-snmp-5.7.3-modern-rpm-api.patch Update net-snmp to use modern (rpm >= 4.6) API 2017-08-11 00:24:30 +02:00
net-snmp-5.7.3-openssl.patch remove modifications of backup files 2018-01-31 14:55:32 +01:00
net-snmp-5.7.3-python3.patch Python3 patch update 2018-05-31 11:24:43 +02:00
net-snmp-5.7.3-snmpstatus-null.patch Fixed snmpstatus crashing when receiving invalid response 2015-06-26 14:10:02 +02:00
net-snmp-5.7.3-strstr.patch Fix strstr() crash when looking for RPM Group tag 2018-02-08 12:15:50 +01:00
net-snmp-5.7.3-strtok-r.patch Resolves: #1366282 - use strtok_r for strtok to avoid a race condition 2016-08-12 13:09:04 +02:00
net-snmp-config added aarch64 to multilib architectures. 2013-05-06 09:59:00 +02:00
net-snmp-config.h Do not use dash '-' in C macro names. 2014-01-09 14:14:05 +01:00
net-snmp-tmpfs.conf re-create /var/run/net-snmp on boot using tmpfiles.d 2010-12-06 14:45:52 +01:00
net-snmp-trapd.redhat.conf Fixing the default snmptrapd.conf 2007-06-28 10:20:13 +00:00
net-snmp.redhat.conf Resolves: #1359123 - update default configuration to conform to the best practices 2016-08-12 12:42:05 +02:00
net-snmp.spec Python3 support draft 2018-05-28 14:21:45 +02:00
net-snmpd.sysconfig re-introduce /etc/sysconfig files 2011-11-28 14:12:57 +01:00
net-snmptrapd.sysconfig re-introduce /etc/sysconfig files 2011-11-28 14:12:57 +01:00
snmpd.service re-introduce /etc/sysconfig files 2011-11-28 14:12:57 +01:00
snmptrapd.service re-introduce /etc/sysconfig files 2011-11-28 14:12:57 +01:00
sources Add source files 2015-02-17 15:49:36 +01:00