]>
git.proxmox.com Git - ceph.git/blob - ceph/qa/tasks/mgr/dashboard/test_logs.py
1 # -*- coding: utf-8 -*-
2 from __future__
import absolute_import
4 from .helper
import DashboardTestCase
, JList
, JObj
, addrvec_schema
7 class LogsTest(DashboardTestCase
):
11 data
= self
._get
("/api/logs/all")
12 self
.assertStatus(200)
13 log_entry_schema
= JList(JObj({
15 'addrvec': addrvec_schema
26 'audit_log': log_entry_schema
,
27 'clog': log_entry_schema
29 self
.assertSchema(data
, schema
)
31 @DashboardTestCase.RunAs('test', 'test', ['pool-manager'])
32 def test_log_perms(self
):
33 self
._get
("/api/logs/all")
34 self
.assertStatus(403)