Fix get_objects to allow filtering

At the moment, an attempt to retrieve a list of objects (like qos
policy) and filter by name fails, because get_objects does not use
filters and therefore, upon query by object name, the server replies
with a list of all created objects (instead of a partial list).

Change-Id: I9df9981129b8f3b82e867c8423986f5e0150186b
Partially-Implements: blueprint quantum-qos-api
diff --git a/neutron/tests/tempest/services/network/json/network_client.py b/neutron/tests/tempest/services/network/json/network_client.py
index f811abe..9c5ef4a 100644
--- a/neutron/tests/tempest/services/network/json/network_client.py
+++ b/neutron/tests/tempest/services/network/json/network_client.py
@@ -12,6 +12,8 @@
 
 import json
 import time
+import urllib
+
 
 from six.moves.urllib import parse
 from tempest_lib.common.utils import misc
@@ -625,8 +627,12 @@
         body = json.loads(body)
         return service_client.ResponseBody(resp, body)
 
-    def list_qos_policies(self):
-        uri = '%s/qos/policies' % self.uri_prefix
+    def list_qos_policies(self, **filters):
+        if filters:
+            uri = '%s/qos/policies?%s' % (self.uri_prefix,
+                                          urllib.urlencode(filters))
+        else:
+            uri = '%s/qos/policies' % self.uri_prefix
         resp, body = self.get(uri)
         self.expected_success(200, resp.status)
         body = json.loads(body)