From f7105cdfe49e0e6893632f1277368871481de65d Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Thu, 20 May 2021 15:52:52 -0400 Subject: [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 --- tests/sos_tests.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/sos_tests.py') 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. -- cgit