Merge "Add missing query parameters to compute v2 Server"

This commit is contained in:
Jenkins 2017-01-04 15:46:58 +00:00 committed by Gerrit Code Review
commit 25969628ce
2 changed files with 20 additions and 1 deletions

View File

@ -31,6 +31,14 @@ class Server(resource2.Resource, metadata.MetadataMixin):
_query_mapping = resource2.QueryParameters("image", "flavor", "name",
"status", "host", "all_tenants",
"sort_key", "sort_dir",
"reservation_id", "tags",
tags_any="tags-any",
not_tags="not-tags",
not_tags_any="not-tags-any",
is_deleted="deleted",
ipv4_address="ip",
ipv6_address="ip6",
changes_since="changes-since")
#: A list of dictionaries holding links relevant to this server.

View File

@ -85,7 +85,18 @@ class TestServer(testtools.TestCase):
"all_tenants": "all_tenants",
"changes_since": "changes-since",
"limit": "limit",
"marker": "marker"},
"marker": "marker",
"sort_key": "sort_key",
"sort_dir": "sort_dir",
"reservation_id": "reservation_id",
"tags": "tags",
"tags_any": "tags-any",
"not_tags": "not-tags",
"not_tags_any": "not-tags-any",
"is_deleted": "deleted",
"ipv4_address": "ip",
"ipv6_address": "ip6",
},
sot._query_mapping._mapping)
def test_make_it(self):