]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: mock get_fqdn in secure alertmanager config test
authorAdam King <adking@redhat.com>
Tue, 28 Feb 2023 15:45:03 +0000 (10:45 -0500)
committerAdam King <adking@redhat.com>
Tue, 28 Feb 2023 15:45:03 +0000 (10:45 -0500)
commit54be84d6797d5ddd9ed1d2965f9377883cc62bb6
tree8647a0d114eafbcd5857b2f0c6175d9ebb3ed5ce
parent33284b3be8d6ed871ed1b477b11c3aec2ac38403
mgr/cephadm: mock get_fqdn in secure alertmanager config test

Before it was expecting "::1" when passed to get_fqdn to
resolve to "localhost" but in some environments it would instead
resolve to "localhost.localdomain" and the test would fail. This
test isn't testing the functionality of get_fqdn, so let's just
mock it so the test passes regardless of how get_fqdn resolves "::1"

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/tests/test_services.py