summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-07-11 23:49:22 +0000
committerGerrit Code Review <review@openstack.org>2018-07-11 23:49:22 +0000
commitf6bcfe1d89108a4973620247db1a61912f087447 (patch)
tree56338f43466ecc0d1c15947d8645b87c59b0b016
parent300e93c70e9c8fe610e4c805ec6c1e0c4ea3017f (diff)
parent6f5946d34bcc4a52920533f1a4ee81d7615a00ea (diff)
Merge "Fix the tests for filtering with qos_policy_id"
-rw-r--r--neutron/tests/fullstack/resources/client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/neutron/tests/fullstack/resources/client.py b/neutron/tests/fullstack/resources/client.py
index 4e21fe7..513a4e6 100644
--- a/neutron/tests/fullstack/resources/client.py
+++ b/neutron/tests/fullstack/resources/client.py
@@ -166,12 +166,12 @@ class ClientFixture(fixtures.Fixture):
166 166
167 def detach_and_delete_policy(): 167 def detach_and_delete_policy():
168 qos_policy_id = policy['policy']['id'] 168 qos_policy_id = policy['policy']['id']
169 ports_with_policy = self.client.list_ports( 169 ports_with_policy = self.client.list_ports()['ports']
170 qos_policy_id=qos_policy_id)['ports']
171 for port in ports_with_policy: 170 for port in ports_with_policy:
172 self.client.update_port( 171 if qos_policy_id == port['qos_policy_id']:
173 port['id'], 172 self.client.update_port(
174 body={'port': {'qos_policy_id': None}}) 173 port['id'],
174 body={'port': {'qos_policy_id': None}})
175 self.client.delete_qos_policy(qos_policy_id) 175 self.client.delete_qos_policy(qos_policy_id)
176 176
177 # NOTE: We'll need to add support for detaching from network once 177 # NOTE: We'll need to add support for detaching from network once