~bbaqar/charms/trusty/plumgrid-gateway/ext-interface-static

« back to all changes in this revision

Viewing changes to unit_tests/test_pg_gw_context.py

  • Committer: Bilal Baqar
  • Date: 2015-09-15 12:09:58 UTC
  • mfrom: (14.1.1 plumgrid-gateway)
  • Revision ID: bbaqar@plumgrid.com-20150915120958-3q39bm3ouud1df2a
Configurable Managment interface support

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    @patch.object(context, '_pg_dir_settings')
38
38
    @patch.object(charmhelpers.contrib.openstack.context,
39
39
                  'neutron_plugin_attribute')
40
 
    @patch.object(utils, 'check_interface_type')
 
40
    @patch.object(utils, 'get_mgmt_interface')
41
41
    @patch.object(utils, 'get_gw_interfaces')
42
 
    def test_neutroncc_context_api_rel(self, _gw_int, _int_type,
 
42
    def test_neutroncc_context_api_rel(self, _gw_int, _mgmt_int,
43
43
                                       _npa, _pg_dir_settings,
44
44
                                       _save_flag_file, _config_flag,
45
45
                                       _unit_get, _unit_priv_ip, _config,
58
58
        _is_clus.return_value = False
59
59
        _config_flag.return_value = False
60
60
        _pg_dir_settings.return_value = {'pg_dir_ip': '192.168.100.201'}
61
 
        _int_type.return_value = 'juju-br0'
 
61
        _mgmt_int.return_value = 'juju-br0'
62
62
        _gw_int.return_value = ['eth1']
63
63
        napi_ctxt = context.PGGwContext()
64
64
        expect = {