#1 Initial commit for downstream tests using standard test interface
Opened 6 years ago by rasibley. Modified 6 years ago
rpms/ rasibley/flex flex-tests  into  master

No commits found

Adds tests according to the CI wiki [0] specifically the standard test interface in the spec [1].

The playbook includes Tier1 level test cases that have been tested in the following contexts and is passing reliably: Docker, and Classic.
Test logs are stored in the Artifacts directory. Currently tests are not suitable for Atomic but may be updated later to support it.

The following steps are used to execute the tests using the standard test interface:

  • Atomic
    sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS=../atomic.qcow2 TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags atomic tests.yml

  • Docker
    sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_DEBUG=1 TEST_SUBJECTS=docker:docker.io/library/fedora:26 TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags container tests.yml

  • Classic
    sudo ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS="" TEST_ARTIFACTS=$PWD/artifacts ansible-playbook --tags classic tests.yml

Test Logs: (If you would like a pointer to the complete log, I can include that as well)

  • Docker
    <snip>
    01:45:08 TASK [standard-test-beakerlib : Execute beakerlib tests]
    01:45:35 changed: [4d7535e553e00d50902be9b8f82c345d47f4621ac998b205fba73c75b68e1f2b] => (item=smoke-check-flex-runs)
    01:45:35
    01:45:35 TASK [standard-test-beakerlib : Make the master test summary log artifact]
    01:45:36 changed: [4d7535e553e00d50902be9b8f82c345d47f4621ac998b205fba73c75b68e1f2b] => (item=smoke-check-flex-runs)
    01:45:36
    01:45:36 TASK [standard-test-beakerlib : Pull out the logs]
    01:45:36 changed: [4d7535e553e00d50902be9b8f82c345d47f4621ac998b205fba73c75b68e1f2b]
    01:45:36
    01:45:36 TASK [standard-test-beakerlib : Check the results]
    01:45:37 changed: [4d7535e553e00d50902be9b8f82c345d47f4621ac998b205fba73c75b68e1f2b]
    01:45:37
    01:45:37 PLAY RECAP
    01:45:37 4d7535e553e00d50902be9b8f82c345d47f4621ac998b205fba73c75b68e1f2b : ok=15 changed=11 unreachable=0 failed=0
    01:45:37
    01:45:37 ###################################
    01:45:37 Test results:
    01:45:37 ###################################
    01:45:37 PASS smoke-check-flex-runs
    01:45:37 ###################################

  • Classic
    <snip>
    01:38:41 ==> default: TASK [standard-test-beakerlib : Execute beakerlib tests]
    01:39:11 ==> default: changed: [localhost] => (item=smoke-check-flex-runs)
    01:39:11 ==> default:
    01:39:11 ==> default: TASK [standard-test-beakerlib : Make the master test summary log artifact]
    01:39:11 ==> default: changed: [localhost] => (item=smoke-check-flex-runs)
    01:39:11 ==> default:
    01:39:11 ==> default: TASK [standard-test-beakerlib : Pull out the logs]
    01:39:12 ==> default: changed: [localhost]
    01:39:12 ==> default:
    01:39:12 ==> default: TASK [standard-test-beakerlib : Check the results]
    01:39:12 ==> default: changed: [localhost]
    01:39:12 ==> default:
    01:39:12 ==> default: PLAY RECAP
    01:39:12 ==> default: localhost : ok=15 changed=12 unreachable=0 failed=0
    01:39:12 ==> default: ++ '[' 0 -ne 0 ']'
    01:39:12 ==> default: ++ cat /root/flex/artifacts/test.log
    01:39:12 ==> default: PASS smoke-check-flex-runs
    01:39:12 ==> default: ++ grep -ve '^PASS' /root/flex/artifacts/test.log
    01:39:12 ==> default: PASS: all tests passed.
    01:39:12 ==> default: ++ '[' 1 -eq 1 ']'
    01:39:12 ==> default: ++ echo 'PASS: all tests passed.'

Tests will be enabled in CI, yet gating is currently disabled, so nothing will change. However eventually gating will be enabled. Tests will run on each dist-git commit, they are not triggered on koji builds and if you are using FMN, it should notify you of failures normally.

The RH QE maintainer contact in case you have questions: mpetlan@redhat.com
The idea is that these tests become yours just as you're maintaining the package, there will of course be people around if you have questions or troubles.

[0] https://fedoraproject.org/wiki/CI
[1] https://fedoraproject.org/wiki/Changes/InvokingTests

Hello, just following up to see if there is any additional information I can provide to help move this along ?

Metadata