Pass `group` in pool's functional tests
The `group` key was missing in the pool's functional tests. This commit adds it, otherwise these tests will fail. Change-Id: I02c0ed870a04e1280ae4e4213e6751fc8e04caeb
This commit is contained in:
parent
c140a589e1
commit
bf841b56cf
|
@ -18,7 +18,7 @@ from zaqarclient.tests.queues import pool
|
|||
from zaqarclient.transport import http
|
||||
|
||||
|
||||
class QueuesV1PoolHttpFunctionalTest(pool.QueuesV1PoolFunctionalTest):
|
||||
class QueuesV1_1PoolHttpFunctionalTest(pool.QueuesV1_1PoolFunctionalTest):
|
||||
|
||||
is_functional = True
|
||||
transport_cls = http.HttpTransport
|
||||
|
|
|
@ -161,6 +161,7 @@ class QueuesV1_1FlavorFunctionalTest(base.QueuesTestBase):
|
|||
flavor_data = {'pool': 'us'}
|
||||
flavor = self.client.flavor('tasty', **flavor_data)
|
||||
self.addCleanup(flavor.delete)
|
||||
pool.update({'group': 'belly'})
|
||||
flavor.update({'pool': 'belly'})
|
||||
self.assertEqual('belly', flavor.pool)
|
||||
|
||||
|
|
|
@ -123,10 +123,11 @@ class QueuesV1PoolUnitTest(base.QueuesTestBase):
|
|||
# doesn't crash.
|
||||
|
||||
|
||||
class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
||||
class QueuesV1_1PoolFunctionalTest(base.QueuesTestBase):
|
||||
|
||||
def test_pool_get(self):
|
||||
pool_data = {'weight': 10,
|
||||
'group': 'us',
|
||||
'uri': 'mongodb://127.0.0.1:27017'}
|
||||
|
||||
self.client.pool('test', **pool_data)
|
||||
|
@ -138,6 +139,7 @@ class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
|||
|
||||
def test_pool_create(self):
|
||||
pool_data = {'weight': 10,
|
||||
'group': 'us',
|
||||
'uri': 'mongodb://127.0.0.1:27017'}
|
||||
|
||||
pool = self.client.pool('test', **pool_data)
|
||||
|
@ -147,6 +149,7 @@ class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
|||
|
||||
def test_pool_update(self):
|
||||
pool_data = {'weight': 10,
|
||||
'group': 'us',
|
||||
'uri': 'mongodb://127.0.0.1:27017',
|
||||
'options': {}}
|
||||
|
||||
|
@ -157,6 +160,7 @@ class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
|||
|
||||
def test_pool_list(self):
|
||||
pool_data = {'weight': 10,
|
||||
'group': 'us',
|
||||
'uri': 'mongodb://127.0.0.1:27017',
|
||||
'options': {}}
|
||||
pool = self.client.pool('test', **pool_data)
|
||||
|
@ -168,6 +172,7 @@ class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
|||
|
||||
def test_pool_delete(self):
|
||||
pool_data = {'weight': 10,
|
||||
'group': 'us',
|
||||
'uri': 'mongodb://127.0.0.1:27017'}
|
||||
|
||||
pool = self.client.pool('test', **pool_data)
|
||||
|
|
Loading…
Reference in New Issue