#1 Adds tests according to the CI
Opened 5 years ago by ssahani. Modified 5 years ago
rpms/ ssahani/bridge-utils tests  into  master

No commits found

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:

bridge-utils-1.6-1.fc28.x86_64
:: [ 14:32:30 ] :: [   PASS   ] :: Checking for the presence of bridge-utils rpm
:: [ 14:32:30 ] :: [   PASS   ] :: Checking for the presence of bridge-utils rpm
:: [ 14:32:30 ] :: [   LOG    ] :: Package versions:
:: [ 14:32:30 ] :: [   LOG    ] :: Package versions:
:: [ 14:32:30 ] :: [   LOG    ] ::   bridge-utils-1.6-1.fc28.x86_64
:: [ 14:32:30 ] :: [   LOG    ] ::   bridge-utils-1.6-1.fc28.x86_64
:: [ 14:32:30 ] :: [  BEGIN   ] :: Running 'cp bridge-utils-tests.py /usr/bin'
:: [ 14:32:30 ] :: [   PASS   ] :: Command 'cp bridge-utils-tests.py /usr/bin' (Expected 0, got 0)
:: [ 14:32:30 ] :: [   PASS   ] :: Command 'cp bridge-utils-tests.py /usr/bin' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 1s
::   Duration: 1s
::   Assertions: 2 good, 0 bad
::   Assertions: 2 good, 0 bad
::   RESULT: PASS
::   RESULT: PASS

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

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

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

:: [ 14:32:30 ] :: [   LOG    ] :: bridge-utils tests
:: [ 14:32:30 ] :: [   LOG    ] :: bridge-utils tests
:: [ 14:32:30 ] :: [  BEGIN   ] :: Running '/usr/bin/python3 /usr/bin/bridge-utils-tests.py'
test_add_bridge (__main__.IPLinkSetDevTests) ... ok
test_add_slave (__main__.IPLinkSetDevTests) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.115s

OK