diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2021-05-20 15:52:52 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-05-24 13:49:37 -0400 |
commit | f7105cdfe49e0e6893632f1277368871481de65d (patch) | |
tree | 56fc3ae4c50e3f337693af33839e3dfb0babf03d /tests/sos_tests.py | |
parent | 823eeff4c39766b84f5cc14309a1e9eab99e19ce (diff) | |
download | sos-f7105cdfe49e0e6893632f1277368871481de65d.tar.gz |
[tests] Add test for priority parameter in add_cmd_output()
Adds a test that checks that the new `priority` parameter is working as
expected for well known and common collections.
Resolves: #2553
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/sos_tests.py')
-rw-r--r-- | tests/sos_tests.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/sos_tests.py b/tests/sos_tests.py index 5c7480f4..002de313 100644 --- a/tests/sos_tests.py +++ b/tests/sos_tests.py @@ -479,6 +479,20 @@ class BaseSoSReportTest(BaseSoSTest): for j in _executed: assert j in plugins, "Unrequested plugin '%s' ran as well" % j + def get_plugin_manifest(self, plugin): + """Get the manifest data for the specified plugin + + :param plugin: The name of the plugin + :type plugin: ``str`` + + :returns: The section of the manifest for the plugin + :rtype: ``dict`` + """ + if not self.manifest['components']['report']['plugins'][plugin]: + raise Exception("Manifest for %s not present" % plugin) + return self.manifest['components']['report']['plugins'][plugin] + + class StageOneReportTest(BaseSoSReportTest): """This is the test class to subclass for all Stage One (no mocking) tests within the sos test suite. |