|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
olysonek commented 5 years ago | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
olysonek commented 5 years ago Again, assertFalse(0) is a true assertion. And why not use assertIn()? | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
olysonek commented 5 years ago Here as well. | ||
|
||
|
||
|
||
|
||
|
||
```
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
vsftpd-3.0.3-28.fc28.x86_64
:: [ 21:03:58 ] :: [ PASS ] :: Checking for the presence of vsftpd rpm
:: [ 21:03:58 ] :: [ LOG ] :: Package versions:
:: [ 21:03:58 ] :: [ LOG ] :: vsftpd-3.0.3-28.fc28.x86_64
:: [ 21:03:58 ] :: [ BEGIN ] :: Running 'systemctl stop firewalld'
:: [ 21:03:58 ] :: [ PASS ] :: Command 'systemctl stop firewalld' (Expected 0,5, got 0)
:: [ 21:03:58 ] :: [ BEGIN ] :: Running 'setenforce 0'
:: [ 21:03:58 ] :: [ PASS ] :: Command 'setenforce 0' (Expected 0,1, got 0)
:: [ 21:03:58 ] :: [ INFO ] :: using '/var/tmp/beakerlib-WkeNe2h/backup' as backup destination
:: [ 21:03:58 ] :: [ INFO ] :: using '/var/tmp/beakerlib-WkeNe2h/backup' as backup destination
:: [ 21:03:58 ] :: [ BEGIN ] :: Running 'useradd fedora-ci'
Creating mailbox file: File exists
:: [ 21:03:59 ] :: [ PASS ] :: Command 'useradd fedora-ci' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ BEGIN ] :: Running 'echo "test" | passwd --stdin fedora-ci'
Changing password for user fedora-ci.
passwd: all authentication tokens updated successfully.
:: [ 21:03:59 ] :: [ PASS ] :: Command 'echo "test" | passwd --stdin fedora-ci' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ BEGIN ] :: Running 'cp vsftpd-tests.py /usr/bin/'
:: [ 21:03:59 ] :: [ PASS ] :: Command 'cp vsftpd-tests.py /usr/bin/' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ BEGIN ] :: Running 'cp test_get test_list /home/fedora-ci'
:: [ 21:03:59 ] :: [ PASS ] :: Command 'cp test_get test_list /home/fedora-ci' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ BEGIN ] :: Running 'cp test_place /var/run/'
:: [ 21:03:59 ] :: [ PASS ] :: Command 'cp test_place /var/run/' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ BEGIN ] :: Running 'systemctl restart vsftpd'
:: [ 21:03:59 ] :: [ PASS ] :: Command 'systemctl restart vsftpd' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 1s
:: Assertions: 9 good, 0 bad
:: RESULT: PASS
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 21:03:59 ] :: [ LOG ] :: Starting vsftpd tests ...
:: [ 21:03:59 ] :: [ BEGIN ] :: Running '/usr/bin/python3 /usr/bin/vsftpd-tests.py'
test_get_file (main.VsFTPdTests) ... ok
test_ipv6_port_open (main.VsFTPdTests) ... ok
test_list_dir (main.VsFTPdTests) ... ok
test_login (main.VsFTPdTests) ... ok
test_login_anonymous_fails (main.VsFTPdTests) ... ok
test_place_file (main.VsFTPdTests) ... ok
Ran 6 tests in 3.251s
OK
:: [ 21:04:02 ] :: [ PASS ] :: Command '/usr/bin/python3 /usr/bin/vsftpd-tests.py' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 3s
:: Assertions: 1 good, 0 bad
:: RESULT: PASS
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Cleanup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 21:04:02 ] :: [ BEGIN ] :: Running 'rm /usr/bin/vsftpd-tests.py'
:: [ 21:04:02 ] :: [ PASS ] :: Command 'rm /usr/bin/vsftpd-tests.py' (Expected 0, got 0)
:: [ 21:04:02 ] :: [ BEGIN ] :: Running 'userdel fedora-ci'
:: [ 21:04:02 ] :: [ PASS ] :: Command 'userdel fedora-ci' (Expected 0, got 0)
:: [ 21:04:02 ] :: [ BEGIN ] :: Running 'rm -rf /home/fedora-ci /var/run/test_get /var/run/test_place'
:: [ 21:04:02 ] :: [ PASS ] :: Command 'rm -rf /home/fedora-ci /var/run/test_get /var/run/test_place' (Expected 0, got 0)
:: [ 21:04:02 ] :: [ BEGIN ] :: Running 'setenforce 1'
:: [ 21:04:02 ] :: [ PASS ] :: Command 'setenforce 1' (Expected 0,1, got 0)
:: [ 21:04:02 ] :: [ LOG ] :: vsftpd tests done
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 0s
:: Assertions: 4 good, 0 bad
:: RESULT: PASS
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: TEST PROTOCOL
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Package : vsftpd
Installed : vsftpd-3.0.3-28.fc28.x86_64
beakerlib RPM : beakerlib-1.17-13.fc28.noarch
Test started : 2018-08-23 21:03:58 IST
Test finished : 2018-08-23 21:04:03 IST (still running)
Test duration : 5 seconds
Test name : unknown
Distro : Fedora release 28 (Twenty Eight)
Hostname : Zeus
Architecture : x86_64
CPUs : 8 x Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
RAM size : 31542 MB
HDD size : 452.94 GB
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 21:03:58 ] :: [ PASS ] :: Checking for the presence of vsftpd rpm
:: [ 21:03:58 ] :: [ LOG ] :: Package versions:
:: [ 21:03:58 ] :: [ LOG ] :: vsftpd-3.0.3-28.fc28.x86_64
:: [ 21:03:58 ] :: [ PASS ] :: Command 'systemctl stop firewalld' (Expected 0,5, got 0)
:: [ 21:03:58 ] :: [ PASS ] :: Command 'setenforce 0' (Expected 0,1, got 0)
:: [ 21:03:58 ] :: [ INFO ] :: using '/var/tmp/beakerlib-WkeNe2h/backup' as backup destination
:: [ 21:03:58 ] :: [ INFO ] :: using '/var/tmp/beakerlib-WkeNe2h/backup' as backup destination
:: [ 21:03:59 ] :: [ PASS ] :: Command 'useradd fedora-ci' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ PASS ] :: Command 'echo "test" | passwd --stdin fedora-ci' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ PASS ] :: Command 'cp vsftpd-tests.py /usr/bin/' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ PASS ] :: Command 'cp test_get test_list /home/fedora-ci' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ PASS ] :: Command 'cp test_place /var/run/' (Expected 0, got 0)
:: [ 21:03:59 ] :: [ PASS ] :: Command 'systemctl restart vsftpd' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 1s
:: Assertions: 9 good, 0 bad
:: RESULT: PASS
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 21:03:59 ] :: [ LOG ] :: Starting vsftpd tests ...
:: [ 21:04:02 ] :: [ PASS ] :: Command '/usr/bin/python3 /usr/bin/vsftpd-tests.py' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 3s
:: Assertions: 1 good, 0 bad
:: RESULT: PASS
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Cleanup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 21:04:02 ] :: [ PASS ] :: Command 'rm /usr/bin/vsftpd-tests.py' (Expected 0, got 0)
:: [ 21:04:02 ] :: [ PASS ] :: Command 'userdel fedora-ci' (Expected 0, got 0)
:: [ 21:04:02 ] :: [ PASS ] :: Command 'rm -rf /home/fedora-ci /var/run/test_get /var/run/test_place' (Expected 0, got 0)
:: [ 21:04:02 ] :: [ PASS ] :: Command 'setenforce 1' (Expected 0,1, got 0)
:: [ 21:04:02 ] :: [ LOG ] :: vsftpd tests done
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 0s
:: Assertions: 4 good, 0 bad
:: RESULT: PASS
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: unknown
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [ 21:04:03 ] :: [ LOG ] :: JOURNAL XML: /var/tmp/beakerlib-WkeNe2h/journal.xml
:: [ 21:04:03 ] :: [ LOG ] :: JOURNAL TXT: /var/tmp/beakerlib-WkeNe2h/journal.txt
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 5s
:: Phases: 3 good, 0 bad
:: OVERALL RESULT: PASS
``
It seems to me this test will always pass.