Fixed qa tests:

* `s/_post/_task_post/g' for pools.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
This commit is contained in:
Sebastian Wagner 2018-07-02 12:44:49 +02:00
parent 8d1b60ea88
commit 70aa650014
2 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -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):