Bug 56624 - System diagnostics "Success" text does not disappear after re-running with non passing checks
System diagnostics "Success" text does not disappear after re-running with no...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - System diagnostic
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-5-errata
Assigned To: Marius Meschter
Florian Best
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-09-19 09:16 CEST by Marius Meschter
Modified: 2023-10-11 16:36 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
example of bug (46.35 KB, image/png)
2023-09-19 09:16 CEST, Marius Meschter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Meschter univentionstaff 2023-09-19 09:16:08 CEST
Created attachment 11127 [details]
example of bug

If a full check in the systems diagnostics module is run all the checks pass a text with "Success: No problems could be detected pops up". When then clicking the "run system diagnostics" button and a check doesn't pass it's failure text is displayed. However the success text does not disappear and will continued to be displayed.
Comment 2 Marius Meschter univentionstaff 2023-09-22 08:56:26 CEST
How to reproduce:
- Open system diagnostics module
- Make sure all checks pass so "Success: No problems could be detected" is visible
- Make a check fail (e.g. systemctl stop univention-directory-notifier.service)
- Click "Run system diagnosis" to re-run all checks
- "Success: No problems could be detected" is still visible
Comment 3 Marius Meschter univentionstaff 2023-09-22 10:12:22 CEST
umc diagnostic module:
The plugin responsible for showing the "Success" text was never removed from the dojo store after having been inserted into it when a successful diagnostic check ran. It is now being removed from the store before a diagnostic run starts.

133_system_diagnostic.py test:
The test was previously using get_by_text to detect if the check, which was supposed to fail, failed. This sometimes lead to the get_by_text resolving to two locators.
It has now been changed to get_by_role("button") which will resolve correctly to one element.

univention-management-console-module-diagnostic.yaml
25f6c2b5b944 | fix(diag): remove success plugin before diagnosis

univention-management-console-module-diagnostic (6.0.6-3)
25f6c2b5b944 | fix(diag): remove success plugin before diagnosis

ucs-test (10.0.19-11)
8f65c0e5677b | test(browser): detect by role instead of by_text
Comment 4 Florian Best univentionstaff 2023-10-05 13:17:05 CEST
OK: no success message is shown after rerun with failing tests
OK: YAML
Comment 5 Iván.Delgado univentionstaff 2023-10-11 16:36:31 CEST
<https://errata.software-univention.de/#/?erratum=5.0x834>