Merge "Fix negative unit test for sec group rules"
This commit is contained in:
@@ -738,7 +738,9 @@ class TestSecurityGroups(SecurityGroupDBTestCase):
|
|||||||
'port_range_max': '22',
|
'port_range_max': '22',
|
||||||
'tenant_id': "bad_tenant"}}
|
'tenant_id': "bad_tenant"}}
|
||||||
|
|
||||||
res = self._create_security_group_rule(self.fmt, rule)
|
res = self._create_security_group_rule(self.fmt, rule,
|
||||||
|
tenant_id='bad_tenant',
|
||||||
|
set_context=True)
|
||||||
self.deserialize(self.fmt, res)
|
self.deserialize(self.fmt, res)
|
||||||
self.assertEqual(res.status_int, webob.exc.HTTPNotFound.code)
|
self.assertEqual(res.status_int, webob.exc.HTTPNotFound.code)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user