summaryrefslogtreecommitdiff
path: root/neutron/tests/unit/extensions/test_subnet_service_types.py
diff options
context:
space:
mode:
Diffstat (limited to 'neutron/tests/unit/extensions/test_subnet_service_types.py')
-rw-r--r--neutron/tests/unit/extensions/test_subnet_service_types.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/neutron/tests/unit/extensions/test_subnet_service_types.py b/neutron/tests/unit/extensions/test_subnet_service_types.py
index a086ebef74..2d2e5c0c28 100644
--- a/neutron/tests/unit/extensions/test_subnet_service_types.py
+++ b/neutron/tests/unit/extensions/test_subnet_service_types.py
@@ -344,13 +344,14 @@ class SubnetServiceTypesExtensionTestCase(
tenant_id=network['tenant_id'],
device_owner=service_type,
arg_list=(portbindings.HOST_ID,),
- **{portbindings.HOST_ID: 'fakehost'})
+ **{portbindings.HOST_ID: 'fakehost'},
+ is_admin=True)
port = self.deserialize('json', port)['port']
# Update the port's host binding.
data = {'port': {portbindings.HOST_ID: 'fakehost2'}}
# self._update will fail with a MismatchError if the update cannot be
# applied
- port = self._update('ports', port['id'], data)
+ port = self._update('ports', port['id'], data, as_admin=True)
class SubnetServiceTypesExtensionTestCasev6(