Merge "fix policy-list2 error"
This commit is contained in:
commit
38ec3ea2b4
|
@ -144,8 +144,7 @@ class PolicyControllerTest(shared.ControllerTest, base.SenlinTestCase):
|
||||||
|
|
||||||
@mock.patch.object(rpc_client.EngineClient, 'call2')
|
@mock.patch.object(rpc_client.EngineClient, 'call2')
|
||||||
def test_policy_index_limit_non_int(self, mock_call, mock_enforce):
|
def test_policy_index_limit_non_int(self, mock_call, mock_enforce):
|
||||||
mock_call = self.patchobject(rpc_client.EngineClient, 'policy_list',
|
self._mock_enforce_setup(mock_enforce, 'index', True)
|
||||||
return_value=[])
|
|
||||||
|
|
||||||
params = {'limit': 'abc'}
|
params = {'limit': 'abc'}
|
||||||
req = self._get('/policies', params=params)
|
req = self._get('/policies', params=params)
|
||||||
|
|
Loading…
Reference in New Issue