]>
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 tasks
.mgr
.dashboard
.helper
import DashboardTestCase
, JList
, JObj
7 class LogsTest(DashboardTestCase
):
11 data
= self
._get
("/api/logs/all")
12 self
.assertStatus(200)
13 log_entry_schema
= JList(JObj({
15 'addrvec': JList(JObj({
30 'audit_log': log_entry_schema
,
31 'clog': log_entry_schema
33 self
.assertSchema(data
, schema
)
35 @DashboardTestCase.RunAs('test', 'test', ['pool-manager'])
36 def test_log_perms(self
):
37 self
._get
("/api/logs/all")
38 self
.assertStatus(403)