~niedbalski/ubuntu/vivid/neutron/fixes-1447803

« back to all changes in this revision

Viewing changes to neutron/tests/unit/vmware/test_nsx_plugin.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-10-03 18:45:23 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20141003184523-4mt6dy1q3j8n30c9
Tags: 1:2014.2~rc1-0ubuntu1
* New upstream release candidate:
  - d/p/*: Refreshed.
  - d/control: Add python-requests-mock to BD's.
  - d/control: Align versioned requirements with upstream.
* Transition linuxbridge and openvswitch plugin users to modular
  layer 2 plugin (LP: #1323729):
  - d/control: Mark removed plugin packages as transitional, depend
    on neutron-plugin-ml2, mark oldlibs/extra.
  - d/neutron-plugin-{linuxbridge,openvswitch}.install: Drop.
  - d/control: Depend on neutron-plugin-ml2 for linuxbridge
    agent package.
  - d/neutron-plugin-linuxbridge-agent.upstart: Use ml2 plugin
    configuration files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
class TestPortsV2(NsxPluginV2TestCase,
125
125
                  test_plugin.TestPortsV2,
126
126
                  test_bindings.PortBindingsTestCase,
127
 
                  test_bindings.PortBindingsHostTestCaseMixin):
 
127
                  test_bindings.PortBindingsHostTestCaseMixin,
 
128
                  test_bindings.PortBindingsVnicTestCaseMixin):
128
129
 
129
130
    VIF_TYPE = portbindings.VIF_TYPE_OVS
130
131
    HAS_PORT_FILTER = True
937
938
        subnets = self._list('subnets')['subnets']
938
939
        with self.subnet() as s:
939
940
            with self.port(subnet=s, device_id='1234',
940
 
                           device_owner=constants.DEVICE_OWNER_DHCP):
 
941
                           device_owner=constants.DEVICE_OWNER_DHCP) as port:
941
942
                subnets = self._list('subnets')['subnets']
942
943
                self.assertEqual(len(subnets), 1)
943
944
                self.assertEqual(subnets[0]['host_routes'][0]['nexthop'],
944
945
                                 '10.0.0.2')
945
946
                self.assertEqual(subnets[0]['host_routes'][0]['destination'],
946
947
                                 '169.254.169.254/32')
947
 
 
 
948
            self._delete('ports', port['port']['id'])
948
949
            subnets = self._list('subnets')['subnets']
949
950
            # Test that route is deleted after dhcp port is removed
950
951
            self.assertEqual(len(subnets[0]['host_routes']), 0)