aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unittests/plugin_tests.py
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2021-05-14 15:41:05 -0400
committerJake Hunsaker <jhunsake@redhat.com>2021-08-02 10:35:40 -0400
commit441f865981b314b5c07f49ecccb7d63bc4503588 (patch)
tree0f6381ad566621008333beb1ac1472507e531a0e /tests/unittests/plugin_tests.py
parente14e41538c9864b360184574e3a80a00ed4fd50a (diff)
downloadsos-441f865981b314b5c07f49ecccb7d63bc4503588.tar.gz
[sos|options] Add global 'namespaces' option
Adds a global `--namespaces` option that can be used to limit the number of namespaces all plugins will iterate over. If a plugin provides a specific plugin option, such as the `networking.namespaces` option, then if set that plugin option will override the global option value. The global option defaults to not limiting namespaces, matching current behavior. Closes: #2092 Resolves: #2547 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/unittests/plugin_tests.py')
-rw-r--r--tests/unittests/plugin_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/plugin_tests.py b/tests/unittests/plugin_tests.py
index 1d6ce73a..8dc038cb 100644
--- a/tests/unittests/plugin_tests.py
+++ b/tests/unittests/plugin_tests.py
@@ -244,7 +244,7 @@ class PluginTests(unittest.TestCase):
'cmdlineopts': MockOptions(),
'devices': {}
})
- self.assertEquals(p.get_option("opt"), 0)
+ self.assertEquals(p.get_option("opt"), None)
def test_get_unset_plugin_option_with_default(self):
# this shows that even when we pass in a default to get,