Removed unused args to mock side-effect function and duplicate
constant.
Change-Id: I5409ce86ccaab86213d65f757f19c1bdf9a66929
Closes-Bug: #
1381221
steps are called in reverse order. At the end, there should be no
rollback infromation for the connection.
"""
- def fake_route_check_fails(*args, **kwargs):
+ def fake_route_check_fails(*args):
if args[0] == 'Static Route':
# So that subsequent calls to CSR rest client (for rollback)
# will fake as passing.
_uuid = uuidutils.generate_uuid
FAKE_VPN_CONN_ID = _uuid()
+FAKE_SERVICE_ID = _uuid()
FAKE_VPN_CONNECTION = {
- 'vpnservice_id': _uuid(),
+ 'vpnservice_id': FAKE_SERVICE_ID,
'id': FAKE_VPN_CONN_ID,
'ikepolicy_id': _uuid(),
'ipsecpolicy_id': _uuid(),
'tenant_id': _uuid()
}
-FAKE_SERVICE_ID = _uuid()
-FAKE_VPN_CONNECTION = {
- 'vpnservice_id': FAKE_SERVICE_ID
-}
-
FAKE_ROUTER_ID = _uuid()
FAKE_VPN_SERVICE = {
'router_id': FAKE_ROUTER_ID