#8261 [ipatests] Integration tests fail on non-firewalld distros
Closed: fixed by abbra. Opened by slev.

The FreeIPA integration tests strictly require firewalld. But some distros don't provide high-level means for managing a firewall.

For example, I run such tests on ALTLinux, which doesn't have firewalld.
Of course, these tests fail with:

[2020-04-08 07:34:05] [ipatests.pytest_ipa.integration.host.Host.master1.IPAOpenSSHTransport] RUN ['systemctl', 'enable', 'firewalld']ipa.integration.host.Host.master1.cmd50] RUN ['systemctl', 'enable', 'firewalld']atests.pytest_ipa.integration.host.Host.master1.cmd50] Failed to enable unit: Unit file firewalld.service does not exist.ion.host.Host.master1.cmd50] Exit code: 1
[2020-04-08 07:34:05] [ipatests.pytest_ipa.integration.host.Host.master1.cmd50] stderr: Failed to enable unit: Unit file firewalld.service does not exist.

Metadata Update from @slev:
- Issue assigned to slev

master:

  • ba162b9b47004da633a2c140409982725f5e0960 ipatests: Mark firewalld commands as no-op on non-firewalld distros

ipa-4-8:

  • d320997807b8fb25a4bbfbf507ecff172c06f284 ipatests: Mark firewalld commands as no-op on non-firewalld distros

Metadata Update from @abbra:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata