aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unittests/conformance_tests.py
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2021-05-26 11:08:36 -0400
committerBryanQuigley <code@bryanquigley.com>2021-06-16 00:22:11 -0700
commitc10c1a39a338cb52ca398a5568b1dc31001612fa (patch)
tree3bcf6aae6ae9f1433f3f97ad99f5dd97f7aa166e /tests/unittests/conformance_tests.py
parent97fe07beca294f9aba0a98d1d7dcf769f1b825c3 (diff)
downloadsos-c10c1a39a338cb52ca398a5568b1dc31001612fa.tar.gz
[Plugin] Allow plugin activation by container presence
Adds an enablement trigger tuple, `containers`, that allows for enabling a plugin based on the presence of a _running_ container matching a given name or regex. Note that this is only functional for the default runtime discovered by a policy during initialization. Resolves: #2561 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/unittests/conformance_tests.py')
-rw-r--r--tests/unittests/conformance_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/conformance_tests.py b/tests/unittests/conformance_tests.py
index 93814a77..3a3f550f 100644
--- a/tests/unittests/conformance_tests.py
+++ b/tests/unittests/conformance_tests.py
@@ -26,7 +26,7 @@ class PluginConformance(unittest.TestCase):
def test_plugin_tuples_set_correctly(self):
for plug in self.plug_classes:
- for tup in ['packages', 'commands', 'files', 'profiles', 'kernel_mods']:
+ for tup in ['packages', 'commands', 'files', 'profiles', 'kernel_mods', 'containers']:
_attr = getattr(plug, tup)
self.assertIsInstance(
_attr, tuple,