Merge "Add missing query parameters to compute v2 Server"
This commit is contained in:
commit
25969628ce
|
@ -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.
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue