~ubuntu-branches/ubuntu/saucy/neutron/saucy-proposed

« back to all changes in this revision

Viewing changes to neutron/tests/unit/services/vpn/service_drivers/test_ipsec.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-10-12 16:51:28 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131012165128-fpkb8trd7l34yyz5
Tags: 1:2013.2~rc2-0ubuntu1
New upstream release candidate (LP: #1239156).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
from neutron import context
21
21
from neutron.openstack.common import uuidutils
 
22
from neutron.plugins.common import constants
22
23
from neutron.services.vpn.service_drivers import ipsec as ipsec_driver
23
24
from neutron.tests import base
24
25
 
46
47
        plugin_p = mock.patch('neutron.manager.NeutronManager.get_plugin')
47
48
        get_plugin = plugin_p.start()
48
49
        get_plugin.return_value = plugin
 
50
        service_plugin_p = mock.patch(
 
51
            'neutron.manager.NeutronManager.get_service_plugins')
 
52
        get_service_plugin = service_plugin_p.start()
 
53
        get_service_plugin.return_value = {constants.L3_ROUTER_NAT: plugin}
49
54
 
50
55
        service_plugin = mock.Mock()
 
56
        service_plugin.get_l3_agents_hosting_routers.return_value = [l3_agent]
51
57
        service_plugin._get_vpnservice.return_value = {
52
58
            'router_id': _uuid()
53
59
        }