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:
@@ -18,7 +18,7 @@ from zaqarclient.tests.queues import pool
|
|||||||
from zaqarclient.transport import http
|
from zaqarclient.transport import http
|
||||||
|
|
||||||
|
|
||||||
class QueuesV1PoolHttpFunctionalTest(pool.QueuesV1PoolFunctionalTest):
|
class QueuesV1_1PoolHttpFunctionalTest(pool.QueuesV1_1PoolFunctionalTest):
|
||||||
|
|
||||||
is_functional = True
|
is_functional = True
|
||||||
transport_cls = http.HttpTransport
|
transport_cls = http.HttpTransport
|
||||||
|
@@ -161,6 +161,7 @@ class QueuesV1_1FlavorFunctionalTest(base.QueuesTestBase):
|
|||||||
flavor_data = {'pool': 'us'}
|
flavor_data = {'pool': 'us'}
|
||||||
flavor = self.client.flavor('tasty', **flavor_data)
|
flavor = self.client.flavor('tasty', **flavor_data)
|
||||||
self.addCleanup(flavor.delete)
|
self.addCleanup(flavor.delete)
|
||||||
|
pool.update({'group': 'belly'})
|
||||||
flavor.update({'pool': 'belly'})
|
flavor.update({'pool': 'belly'})
|
||||||
self.assertEqual('belly', flavor.pool)
|
self.assertEqual('belly', flavor.pool)
|
||||||
|
|
||||||
|
@@ -123,10 +123,11 @@ class QueuesV1PoolUnitTest(base.QueuesTestBase):
|
|||||||
# doesn't crash.
|
# doesn't crash.
|
||||||
|
|
||||||
|
|
||||||
class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
class QueuesV1_1PoolFunctionalTest(base.QueuesTestBase):
|
||||||
|
|
||||||
def test_pool_get(self):
|
def test_pool_get(self):
|
||||||
pool_data = {'weight': 10,
|
pool_data = {'weight': 10,
|
||||||
|
'group': 'us',
|
||||||
'uri': 'mongodb://127.0.0.1:27017'}
|
'uri': 'mongodb://127.0.0.1:27017'}
|
||||||
|
|
||||||
self.client.pool('test', **pool_data)
|
self.client.pool('test', **pool_data)
|
||||||
@@ -138,6 +139,7 @@ class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
|||||||
|
|
||||||
def test_pool_create(self):
|
def test_pool_create(self):
|
||||||
pool_data = {'weight': 10,
|
pool_data = {'weight': 10,
|
||||||
|
'group': 'us',
|
||||||
'uri': 'mongodb://127.0.0.1:27017'}
|
'uri': 'mongodb://127.0.0.1:27017'}
|
||||||
|
|
||||||
pool = self.client.pool('test', **pool_data)
|
pool = self.client.pool('test', **pool_data)
|
||||||
@@ -147,6 +149,7 @@ class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
|||||||
|
|
||||||
def test_pool_update(self):
|
def test_pool_update(self):
|
||||||
pool_data = {'weight': 10,
|
pool_data = {'weight': 10,
|
||||||
|
'group': 'us',
|
||||||
'uri': 'mongodb://127.0.0.1:27017',
|
'uri': 'mongodb://127.0.0.1:27017',
|
||||||
'options': {}}
|
'options': {}}
|
||||||
|
|
||||||
@@ -157,6 +160,7 @@ class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
|||||||
|
|
||||||
def test_pool_list(self):
|
def test_pool_list(self):
|
||||||
pool_data = {'weight': 10,
|
pool_data = {'weight': 10,
|
||||||
|
'group': 'us',
|
||||||
'uri': 'mongodb://127.0.0.1:27017',
|
'uri': 'mongodb://127.0.0.1:27017',
|
||||||
'options': {}}
|
'options': {}}
|
||||||
pool = self.client.pool('test', **pool_data)
|
pool = self.client.pool('test', **pool_data)
|
||||||
@@ -168,6 +172,7 @@ class QueuesV1PoolFunctionalTest(base.QueuesTestBase):
|
|||||||
|
|
||||||
def test_pool_delete(self):
|
def test_pool_delete(self):
|
||||||
pool_data = {'weight': 10,
|
pool_data = {'weight': 10,
|
||||||
|
'group': 'us',
|
||||||
'uri': 'mongodb://127.0.0.1:27017'}
|
'uri': 'mongodb://127.0.0.1:27017'}
|
||||||
|
|
||||||
pool = self.client.pool('test', **pool_data)
|
pool = self.client.pool('test', **pool_data)
|
||||||
|
Reference in New Issue
Block a user