mirror of
https://github.com/ceph/ceph
synced 2025-01-09 12:42:31 +00:00
71d952b1e2
Fixes: https://tracker.ceph.com/issues/24446 Signed-off-by: Ricardo Marques <rimarques@suse.com>
18 lines
411 B
Python
18 lines
411 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import absolute_import
|
|
|
|
from .helper import DashboardTestCase
|
|
|
|
|
|
class RoleTest(DashboardTestCase):
|
|
|
|
def test_list_roles(self):
|
|
roles = self._get('/api/role')
|
|
self.assertStatus(200)
|
|
|
|
self.assertGreaterEqual(len(roles), 1)
|
|
for role in roles:
|
|
self.assertIn('name', role)
|
|
self.assertIn('scopes_permissions', role)
|