From: Kevin Benton Date: Thu, 18 Sep 2014 20:46:51 +0000 (-0700) Subject: Delete a broken subnet delete unit test X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ea52cb9b677dc05e976b4a04907bf17768503789;p=openstack-build%2Fneutron-build.git Delete a broken subnet delete unit test A test to delete a subnet in use was incorrectly calling 'subnet' instead of 'subnets' in the API request and asserting a 404 instead of a 409. Even the correct version of this test is already covered by the 'test_port_prevents_subnet_deletion' method so this commit just removes the broken test. Change-Id: I3eac35abbb1d6f8429b4331948aecfc952284219 --- diff --git a/neutron/tests/unit/test_db_plugin.py b/neutron/tests/unit/test_db_plugin.py index 0948cecb3..7754cc2b1 100644 --- a/neutron/tests/unit/test_db_plugin.py +++ b/neutron/tests/unit/test_db_plugin.py @@ -1306,18 +1306,6 @@ fixed_ips=ip_address%%3D%s&fixed_ips=ip_address%%3D%s&fixed_ips=subnet_id%%3D%s res = self._create_port(self.fmt, net_id=net_id, **kwargs) self.assertEqual(res.status_int, webob.exc.HTTPConflict.code) - def test_requested_subnet_delete(self): - with self.subnet() as subnet: - with self.port(subnet=subnet) as port: - ips = port['port']['fixed_ips'] - self.assertEqual(len(ips), 1) - self.assertEqual(ips[0]['ip_address'], '10.0.0.2') - self.assertEqual(ips[0]['subnet_id'], subnet['subnet']['id']) - req = self.new_delete_request('subnet', - subnet['subnet']['id']) - res = req.get_response(self.api) - self.assertEqual(res.status_int, webob.exc.HTTPNotFound.code) - def test_requested_subnet_id(self): with self.subnet() as subnet: with self.port(subnet=subnet) as port: