Merge "Verify list_addresses_by_network APIs attributes"
This commit is contained in:
commit
a8104a689f
@ -123,3 +123,8 @@ set_get_server_metadata_item = {
|
|||||||
'required': ['meta']
|
'required': ['meta']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list_addresses_by_network = {
|
||||||
|
'status_code': [200],
|
||||||
|
'response_body': parameter_types.addresses
|
||||||
|
}
|
||||||
|
@ -76,3 +76,8 @@ attach_detach_volume = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_get_server_metadata_item = copy.deepcopy(servers.set_server_metadata)
|
set_get_server_metadata_item = copy.deepcopy(servers.set_server_metadata)
|
||||||
|
|
||||||
|
list_addresses_by_network = {
|
||||||
|
'status_code': [200],
|
||||||
|
'response_body': addresses_v3
|
||||||
|
}
|
||||||
|
@ -200,6 +200,7 @@ class ServersClientJSON(rest_client.RestClient):
|
|||||||
resp, body = self.get("servers/%s/ips/%s" %
|
resp, body = self.get("servers/%s/ips/%s" %
|
||||||
(str(server_id), network_id))
|
(str(server_id), network_id))
|
||||||
body = json.loads(body)
|
body = json.loads(body)
|
||||||
|
self.validate_response(schema.list_addresses_by_network, resp, body)
|
||||||
return resp, body
|
return resp, body
|
||||||
|
|
||||||
def action(self, server_id, action_name, response_key,
|
def action(self, server_id, action_name, response_key,
|
||||||
|
@ -200,6 +200,7 @@ class ServersV3ClientJSON(rest_client.RestClient):
|
|||||||
resp, body = self.get("servers/%s/ips/%s" %
|
resp, body = self.get("servers/%s/ips/%s" %
|
||||||
(str(server_id), network_id))
|
(str(server_id), network_id))
|
||||||
body = json.loads(body)
|
body = json.loads(body)
|
||||||
|
self.validate_response(schema.list_addresses_by_network, resp, body)
|
||||||
return resp, body
|
return resp, body
|
||||||
|
|
||||||
def action(self, server_id, action_name, response_key, **kwargs):
|
def action(self, server_id, action_name, response_key, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user