paunch/paunch/tests
Cédric Jeanneret 592dab7a84 Execute healthchecks as root
Some containers doesn't have the "default" user set to root (which is
good). This lead to healthcheck_port() function to return a message
because the non-root user isn't allowed to call "ss" command as itself.

Ensuring we're running the healthchecks as root will also allow to stop
duplicating some commands, making them faster and smaller for the
system.

This was discovered and discussed on Red Hat bugzilla first, then ported
to Launchpad.

Change-Id: I2e49d4dd5b385237f4f79929c70365424f6fa22d
Closes-Bug: 1860569
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1778881
(cherry picked from commit 3012fe75aa)
2020-01-27 06:48:29 +00:00
..
__init__.py Initial Cookiecutter Commit. 2017-01-25 11:24:31 +13:00
base.py Initial Cookiecutter Commit. 2017-01-25 11:24:31 +13:00
test_builder_base.py builder: include environment when running an exec 2019-12-13 15:04:51 +00:00
test_builder_compose1.py Add --cpuset-cpus support for both Docker and Podman 2019-09-24 03:48:54 +00:00
test_builder_podman.py Properly mock cpu_affinity on all unit tests 2019-10-02 10:04:02 +02:00
test_paunch.py Introduce paunch apply --healthcheck-disabled 2019-04-15 16:17:04 +00:00
test_runner.py Merge "Fix discovering container names" 2019-09-24 01:00:01 +00:00
test_utils_common.py Fix backward compatibility for old config startup files 2020-01-09 14:37:50 +00:00
test_utils_systemctl.py Check if container is running before doing an exec 2019-08-27 23:19:05 +00:00
test_utils_systemd.py Execute healthchecks as root 2020-01-27 06:48:29 +00:00