From 5acb3554132e1072713efbdd0c4491635c2a1397 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 10 Jun 2024 14:36:33 -0400 Subject: [PATCH] cephadm: rename test_enclosure to test_host_facts There was a whole file dedicated to the enclosure class from host_facts, but no other tests for host facts. Rename the enclosure test file to cover all of host_facts module (for the future). Signed-off-by: John Mulligan (cherry picked from commit 576f6cf93cab600f5b9744dab60f715ce4fe08e3) --- src/cephadm/tests/{test_enclosure.py => test_host_facts.py} | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) rename src/cephadm/tests/{test_enclosure.py => test_host_facts.py} (97%) diff --git a/src/cephadm/tests/test_enclosure.py b/src/cephadm/tests/test_host_facts.py similarity index 97% rename from src/cephadm/tests/test_enclosure.py rename to src/cephadm/tests/test_host_facts.py index 8c23d633b6f..8888741e7ba 100644 --- a/src/cephadm/tests/test_enclosure.py +++ b/src/cephadm/tests/test_host_facts.py @@ -98,9 +98,7 @@ def test_host_facts_security(cephadm_fs): contents='\n'.join(profiles_lines), ) - from cephadmlib.host_facts import HostFacts - - class TestHostFacts(HostFacts): + class TestHostFacts(_cephadm.HostFacts): def _populate_sysctl_options(self): return {} -- 2.39.5