]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: update mgr test for MgrModule.OPTIONS
authorJohn Spray <john.spray@redhat.com>
Mon, 16 Apr 2018 20:00:39 +0000 (16:00 -0400)
committerJohn Spray <john.spray@redhat.com>
Mon, 23 Apr 2018 14:14:31 +0000 (10:14 -0400)
Signed-off-by: John Spray <john.spray@redhat.com>
qa/tasks/mgr/test_module_selftest.py

index 63531fd5effa3eea9c67a588ccbb69376f52a132..21aa4a3d232d4426b3d683f2e63a1712dfd4432f 100644 (file)
@@ -133,6 +133,11 @@ class TestModuleSelftest(MgrTestCase):
         self.mgr_cluster.mon_manager.raw_cluster_cmd(
                 "config-key", "set", "mgr/selftest/testnewline", "foo\nbar")
 
+        # Inject configuration setting that does not appear in the
+        # module's config schema
+        self.mgr_cluster.mon_manager.raw_cluster_cmd(
+                "config-key", "set", "mgr/selftest/kvitem", "foo\nbar")
+
         # Bring mgr daemons back online, the one that goes active
         # should be doing the upgrade.
         for mgr_id in self.mgr_cluster.mgr_daemons.keys():
@@ -149,9 +154,12 @@ class TestModuleSelftest(MgrTestCase):
         seen_keys = [k for s,k,v in get_config()]
         self.assertIn("mgr/selftest/testkey", seen_keys)
 
-        # And that the non-config-looking one isn't
+        # ...and that the non-config-looking one isn't
         self.assertNotIn("mgr/selftest/testnewline", seen_keys)
 
+        # ...and that the not-in-schema one isn't
+        self.assertNotIn("mgr/selftest/kvitem", seen_keys)
+
         # Restore previous configuration
         for subsys, key, value in stash:
             self.mgr_cluster.mon_manager.raw_cluster_cmd(