mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
Merge pull request #25761 from tchaikov/wip-qa-health-schema
mgr/dashboard: updated API test to reflect changes in ModuleInfo Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
407750d16e
@ -78,6 +78,28 @@ class HealthTest(DashboardTestCase):
|
||||
def test_full_health(self):
|
||||
data = self._get('/api/health/full')
|
||||
self.assertStatus(200)
|
||||
module_info_schema = JObj({
|
||||
'can_run': bool,
|
||||
'error_string': 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({
|
||||
'read_bytes_sec': int,
|
||||
@ -169,11 +191,7 @@ class HealthTest(DashboardTestCase):
|
||||
allow_unknown=True, unknown_schema=JList(str)
|
||||
),
|
||||
'available': bool,
|
||||
'available_modules': JList(JObj({
|
||||
'can_run': bool,
|
||||
'error_string': str,
|
||||
'name': str
|
||||
})),
|
||||
'available_modules': JList(module_info_schema),
|
||||
'epoch': int,
|
||||
'modules': JList(str),
|
||||
'services': JObj(
|
||||
@ -181,11 +199,7 @@ class HealthTest(DashboardTestCase):
|
||||
allow_unknown=True, unknown_schema=str
|
||||
),
|
||||
'standbys': JList(JObj({
|
||||
'available_modules': JList(JObj({
|
||||
'can_run': bool,
|
||||
'error_string': str,
|
||||
'name': str
|
||||
})),
|
||||
'available_modules': JList(module_info_schema),
|
||||
'gid': int,
|
||||
'name': str
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user