mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
Fixed qa tests:
* `s/_post/_task_post/g' for pools. Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
This commit is contained in:
parent
8d1b60ea88
commit
70aa650014
@ -37,7 +37,7 @@ class PoolTest(DashboardTestCase):
|
||||
|
||||
@DashboardTestCase.RunAs('test', 'test', [{'pool': ['read', 'update', 'delete']}])
|
||||
def test_create_access_permissions(self):
|
||||
self._post('/api/pool/', {})
|
||||
self._task_post('/api/pool/', {})
|
||||
self.assertStatus(403)
|
||||
|
||||
@DashboardTestCase.RunAs('test', 'test', [{'pool': ['read', 'create', 'update']}])
|
||||
@ -206,7 +206,7 @@ class PoolTest(DashboardTestCase):
|
||||
|
||||
def test_pool_create_fail(self):
|
||||
data = {'pool_type': u'replicated', 'rule_name': u'dnf', 'pg_num': u'8', 'pool': u'sadfs'}
|
||||
self._post('/api/pool/', data)
|
||||
self._task_post('/api/pool/', data)
|
||||
self.assertStatus(400)
|
||||
self.assertJsonBody({
|
||||
'component': 'pool',
|
||||
|
@ -15,11 +15,11 @@ class RbdTest(DashboardTestCase):
|
||||
'pool': name,
|
||||
'pg_num': pg_num,
|
||||
'pool_type': pool_type,
|
||||
'application_metadata': application
|
||||
'application_metadata': [application]
|
||||
}
|
||||
if pool_type == 'erasure':
|
||||
data['flags'] = ['ec_overwrites']
|
||||
cls._post("/api/pool", data)
|
||||
cls._task_post("/api/pool", data)
|
||||
|
||||
@DashboardTestCase.RunAs('test', 'test', [{'rbd-image': ['create', 'update', 'delete']}])
|
||||
def test_read_access_permissions(self):
|
||||
|
Loading…
Reference in New Issue
Block a user