allow wiki reporting per test module, report FreeIPA_web_ui
ClosedPublic

Authored by adamwill on Jul 12 2016, 9:22 PM.

Details

Summary

This tweaks the wiki result reporting bits to be a bit more
flexible and allow for reporting the QA:Testcase_FreeIPA_web_ui
results. We added that test case as a single, non-fatal test
module within the realmd_join_cockpit test suite. That means
that when openQA runs that test suite, it will run the FreeIPA
web UI test module and record the result of that module, but
if that module fails, the openQA job will not stop nor will it
be considered to have failed; if all the other modules pass,
the job is considered to have passed. So for wiki reporting
purposes we need to be able to say 'report a pass for this
Wikitcms test case only if this specific test module within the
job passed'.

We allow this by letting entries in the TESTSUITES dict be
dicts instead of lists, with a special key for the normal
'these test cases passed if the job passed' list and other keys
representing individual modules, with lists of test cases that
passed only if those specific test modules passed. There's a
bit more detail in the comments.

Test Plan

Generate ResTups for a run of realmd_join_cockpit
where both the job and the freeipa_webui_postinstall module
passed - e.g. https://openqa.stg.fedoraproject.org/tests/24944

  • and make sure a ResTup for QA:Testcase_FreeIPA_web_ui is

generated. If possible, also generate ResTups for a run where
the job passed but the module failed, and make sure there are
ResTups for the *other* test cases but *not* that one, and
also generate ResTups for a run where the job failed and make
sure we get none.

Diff Detail

Repository
rOPENQA fedora_openqa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
adamwill retitled this revision from to allow wiki reporting per test module, report FreeIPA_web_ui.Jul 12 2016, 9:22 PM
adamwill updated this object.
adamwill edited the test plan for this revision. (Show Details)
adamwill added reviewers: garretraziel, jskladan.
adamwill updated this revision to Diff 2373.Jul 12 2016, 10:33 PM

be a bit more robust against expected things not being there

Looks good, but I was unable to try this code; arcanist says that this diff is against commit f88c8944, which is nowhere to be found in my tree (branch freeipa-webui-report is not in origin).

scheduler/fedora_openqa_schedule/report.py
130

Please, add comment documenting what is happening here.

adamwill updated this revision to Diff 2443.Aug 3 2016, 8:25 PM

rebase on current develop

adamwill updated this revision to Diff 2444.Aug 3 2016, 8:31 PM

add requested comment

adamwill updated this revision to Diff 2452.Aug 5 2016, 10:54 PM

fix wiki environment, add password_change reporting also

as we merged the freeipa_password_change test, we should also
report those results. And the environment (the wiki column name)
was wrong in the TESTCASES dict (should be 'Result' not 'x86'),
so fix that.

garretraziel accepted this revision.Aug 8 2016, 10:46 AM

Looks OK.

This revision is now accepted and ready to land.Aug 8 2016, 10:46 AM
This revision was automatically updated to reflect the committed changes.