102
102
import unittest2 as unittest
104
--- a/quantum/tests/unit/test_db_plugin.py
105
+++ b/quantum/tests/unit/test_db_plugin.py
108
class TestV2HTTPResponse(QuantumDbPluginV2TestCase):
109
def test_create_returns_201(self):
111
res = self._create_network('json', 'net2', True)
112
self.assertEqual(res.status_int, 201)
114
@@ -528,12 +530,14 @@
115
self.assertIn(field_name, body['networks'][0])
117
def test_list_with_fields(self):
119
self._create_network('json', 'some_net', True)
120
req = self.new_list_request('networks', params="fields=name")
121
res = req.get_response(self.api)
122
self._check_list_with_fields(res, 'name')
124
def test_list_with_fields_noadmin(self):
126
tenant_id = 'some_tenant'
127
self._create_network('json',
134
tenant_id = 'some_tenant'
135
self._create_network('json',
137
@@ -1094,6 +1095,7 @@
138
self._delete('ports', port4['port']['id'])
140
def test_range_allocation(self):
143
with self.subnet(gateway_ip='10.0.0.3',
144
cidr='10.0.0.0/29') as subnet:
145
@@ -1681,6 +1687,7 @@
146
self.assertEqual(res.status_int, 409)
148
def test_create_networks_bulk_emulated(self):
150
real_has_attr = hasattr
152
#ensures the API choose the emulation code path
153
@@ -1706,6 +1713,7 @@
154
self.assertEqual(len(nets['networks']), 0)
156
def test_create_networks_bulk_emulated_plugin_failure(self):
158
real_has_attr = hasattr
160
def fakehasattr(item, attr):
161
@@ -1798,6 +1806,7 @@
162
subnet['subnet']['id'])
164
def test_invalid_admin_status(self):
167
value = [[7, False, 400], [True, True, 201], ["True", True, 201],
168
["true", True, 201], [1, True, 201], ["False", False, 201],
169
@@ -2687,6 +2689,7 @@
170
host_routes=host_routes)
172
def test_create_subnet_with_two_host_routes(self):
174
gateway_ip = '10.0.0.1'
176
allocation_pools = [{'start': '10.0.0.2',
178
--- a/quantum/tests/unit/test_api_v2.py
179
+++ b/quantum/tests/unit/test_api_v2.py
182
from webob import exc
186
from quantum.api.extensions import PluginAwareExtensionManager
187
from quantum.api.v2 import attributes
189
self.assertEqual(net['status'], "ACTIVE")
191
def test_create_use_defaults(self):
192
+ raise nose.exc.SkipTest('disabled by ubuntu patch')
194
initial_input = {'network': {'name': 'net1', 'tenant_id': _uuid()}}
195
full_input = {'network': {'admin_state_up': True,
197
self.assertEqual(res.status_int, exc.HTTPBadRequest.code)
199
def test_create_with_keystone_env(self):
200
+ raise nose.exc.SkipTest('disabled by ubuntu patch')
203
env = {'quantum.context': context.Context('', tenant_id)}
205
self.assertEqual(res.status_int, 400)
207
def test_create_attr_not_specified(self):
208
+ raise nose.exc.SkipTest('disabled by ubuntu patch')
213
attributes.RESOURCE_ATTRIBUTE_MAP = self.saved_attr_map
215
def test_extended_create(self):
216
+ raise nose.exc.SkipTest('disabled by ubuntu patch')
218
initial_input = {'network': {'name': 'net1', 'tenant_id': _uuid(),
219
'v2attrs:something_else': "abc"}}
221
--- a/quantum/tests/unit/test_metadata_namespace_proxy.py
222
+++ b/quantum/tests/unit/test_metadata_namespace_proxy.py
225
class TestUnixDomainHttpConnection(unittest.TestCase):
226
def test_connect(self):
228
with mock.patch.object(ns_proxy, 'cfg') as cfg:
229
cfg.CONF.metadata_proxy_socket = '/the/path'
230
with mock.patch('socket.socket') as socket_create: