]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/mgr: add "module_options" to module_info_schema 25761/head
authorKefu Chai <kchai@redhat.com>
Thu, 3 Jan 2019 03:02:26 +0000 (11:02 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 3 Jan 2019 12:44:46 +0000 (20:44 +0800)
it was introduced in 280c23ba. so update the schema test accordingly

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/mgr/dashboard/test_health.py

index f42781e187feb5580e7a5e271b79728b151d7cf2..cb8f7b9bf8df13c237a5ea4e9b308cb2ded7f8a5 100644 (file)
@@ -81,7 +81,24 @@ class HealthTest(DashboardTestCase):
         module_info_schema = JObj({
             'can_run': bool,
             'error_string': str,
-            'name': str
+            'name': str,
+            'module_options': JObj(
+                {},
+                allow_unknown=True,
+                unknown_schema=JObj({
+                    'name': str,
+                    'type': str,
+                    'level': str,
+                    'flags': int,
+                    'default_value': str,
+                    'min': str,
+                    'max': str,
+                    'enum_allowed': JList(str),
+                    'see_also': JList(str),
+                    'desc': str,
+                    'long_desc': str,
+                    'tags': JList(str),
+                })),
         })
         schema = JObj({
             'client_perf': JObj({