SatelliteQE / robottelo

Robottelo is a test suite that exercises The Foreman.
GNU General Public License v3.0
61 stars 114 forks source link

assert fapolicyd is running after setup finished #16895

Closed evgeni closed 2 weeks ago

evgeni commented 2 weeks ago

Problem Statement

There is a bug (https://issues.redhat.com/browse/SAT-29311) in fapolicyd, which freezes the machine and our tests didn't catch it. While this change will probably not surface that bug (we are still unsure how to reliably trigger it), it should at least assert fapolicyd is actually running (and didn't crash, which it sometimes does!) after policy loading.

Solution

assert systemd things fapolicyd is running

Related Issues

https://issues.redhat.com/browse/SAT-29311

evgeni commented 2 weeks ago

@jameerpathan111 how do I trigger a fapolicyd-enabled test with a comment?

jameerpathan111 commented 2 weeks ago

trigger: test-robottelo pytest: tests/foreman/installer/test_installer.py -k test_capsule_installation

Satellite-QE commented 2 weeks ago

PRT Result

Build Number: 9330
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/installer/test_installer.py -k test_capsule_installation --external-logging
Test Result : ========== 1 passed, 23 deselected, 48 warnings in 2453.41s (0:40:53) ==========