aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unittests/cleaner_tests.py
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2023-05-26 15:26:20 -0400
committerJake Hunsaker <jacob.r.hunsaker@gmail.com>2023-06-22 14:06:38 -0400
commita7c87f9ee6df68923aea0bf8ca536f72b51aa974 (patch)
tree56ba2c892484d507feed71a82112e9de2fb17042 /tests/unittests/cleaner_tests.py
parent2b89a12ebb263d5d844bac91a9e2f75448615766 (diff)
downloadsos-a7c87f9ee6df68923aea0bf8ca536f72b51aa974.tar.gz
[hostname] Add new prepper
Adds a new Prepper for handling hostname determination for preparing the mapping and parser. As part of this new prepper, pass the CLI options to each prepper for use. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/unittests/cleaner_tests.py')
-rw-r--r--tests/unittests/cleaner_tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unittests/cleaner_tests.py b/tests/unittests/cleaner_tests.py
index 6e0be6c8..8bf1b239 100644
--- a/tests/unittests/cleaner_tests.py
+++ b/tests/unittests/cleaner_tests.py
@@ -24,7 +24,7 @@ from sos.cleaner.preppers import SoSPrepper
from sos.cleaner.preppers.hostname import HostnamePrepper
from sos.cleaner.preppers.ip import IPPrepper
from sos.cleaner.archives.sos import SoSReportArchive
-
+from sos.options import SoSOptions
class CleanerMapTests(unittest.TestCase):
@@ -288,13 +288,13 @@ class PrepperTests(unittest.TestCase):
"""
def setUp(self):
- self.prepper = SoSPrepper()
+ self.prepper = SoSPrepper(SoSOptions())
self.archive = SoSReportArchive(
archive_path='tests/test_data/sosreport-cleanertest-2021-08-03-qpkxdid.tar.xz',
tmpdir='/tmp'
)
- self.host_prepper = HostnamePrepper()
- self.ipv4_prepper = IPPrepper()
+ self.host_prepper = HostnamePrepper(SoSOptions(domains=[]))
+ self.ipv4_prepper = IPPrepper(SoSOptions())
def test_parser_method_translation(self):
self.assertEqual([], self.prepper.get_parser_file_list('hostname', None))