Add test cases: invalidate CIDR
Add the invalid CIDR for verifing the modified method is valid. Co-Authored-By: Allain Legacy <Allain.legacy@windriver.com> Depends-On: https://review.openstack.org/623415/ Change-Id: I0f051130e4708682104bd935b23991b534fc99d2 Related-Bug: #1805991 Story: 2004567
This commit is contained in:
parent
a55a2a9280
commit
4cbaa06031
|
@ -3792,7 +3792,9 @@ class TestSubnetsV2(NeutronDbPluginV2TestCase):
|
|||
[{'nexthop': '10.0.2.20',
|
||||
'destination': '100.0.0.0/8'},
|
||||
{'nexthop': '10.0.2.20',
|
||||
'destination': '100.0.0.0/8'}]]
|
||||
'destination': '100.0.0.0/8'}],
|
||||
[{'destination': '100.1.1.1/8',
|
||||
'nexthop': '10.0.2.20'}]]
|
||||
tenant_id = network['network']['tenant_id']
|
||||
for hostroutes in hostroute_pools:
|
||||
data = {'subnet': {'network_id': network['network']['id'],
|
||||
|
|
|
@ -377,6 +377,14 @@ class ExtraRouteDBTestCaseBase(object):
|
|||
routes}},
|
||||
expected_code=exc.HTTPBadRequest.code)
|
||||
|
||||
routes = [{'destination': '1.1.1.1/24',
|
||||
'nexthop': '10.0.1.3'}]
|
||||
|
||||
self._update('routers', r['router']['id'],
|
||||
{'router': {'routes':
|
||||
routes}},
|
||||
expected_code=exc.HTTPBadRequest.code)
|
||||
|
||||
# clean-up
|
||||
self._router_interface_action('remove',
|
||||
r['router']['id'],
|
||||
|
|
Loading…
Reference in New Issue