Module ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Dict Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign NameStore Str Assign NameStore Str If BoolOpAnd AttributeLoad NameLoad attr NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Return NameLoad finalbody Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Dict Str Str decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Dict Str Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Str Dict Assign NameStore Dict Str Str Str Str Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Dict NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Assign NameStore BoolOpOr NameLoad Dict Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Str Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Str Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str NameLoad Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Str Dict Str Str Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Str Dict Str Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str NameLoad Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Dict Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Str Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A oslo_config cfg nova.tests.functional.api_sample_tests api_sample_base nova.tests.unit.image fake N/A CONF N/A cfg CONF N/A N/A N/A CONF import_opt osapi_compute_extension nova.api.openstack.compute.legacy_v2.extensions ServersSampleBase N/A N/A api_sample_base ApiSampleTestBaseV21 N/A N/A extra_extensions_to_load N/A os-access-ips N/A microversion None _post_server N/A N/A self use_common_server_api_samples N/A True N/A N/A subs N/A image_id host compute_endpoint versioned_compute_endpoint glance_host access_ip_v4 access_ip_v6 N/A N/A fake get_valid_image_id N/A N/A self _get_host N/A N/A self _get_compute_endpoint N/A N/A self _get_vers_compute_endpoint N/A N/A self _get_glance_host 1.2.3.4 80fe:: N/A post_req_template server-post-req N/A post_resp_template server-post-resp N/A N/A N/A self all_extensions use_common_server_api_samples N/A N/A post_req_template server-create-req N/A post_resp_template server-create-resp N/A orig_value N/A N/A self __class__ _use_common_server_api_samples N/A orig_sample_dir N/A N/A self __class__ sample_dir N/A N/A N/A N/A N/A self __class__ _use_common_server_api_samples use_common_server_api_samples N/A response N/A N/A self _do_post servers post_req_template subs N/A status N/A N/A self _verify_response post_resp_template subs response 202 N/A status N/A N/A N/A N/A self __class__ _use_common_server_api_samples orig_value N/A N/A N/A self __class__ sample_dir orig_sample_dir N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ServersSampleBase self setUp N/A N/A N/A self api microversion N/A self microversion N/A N/A ServersSampleJsonTest N/A ServersSampleBase N/A N/A sample_dir servers N/A microversion None _get_flags N/A N/A self N/A N/A N/A f N/A N/A N/A super ServersSampleBase self _get_flags N/A N/A f N/A osapi_compute_extension N/A N/A CONF osapi_compute_extension N/A N/A N/A N/A N/A f N/A osapi_compute_extension append nova.api.openstack.compute.contrib.keypairs.Keypairs N/A N/A N/A N/A f N/A osapi_compute_extension append nova.api.openstack.compute.contrib.extended_ips.Extended_ips N/A N/A N/A N/A f N/A osapi_compute_extension append nova.api.openstack.compute.contrib.extended_ips_mac.Extended_ips_mac N/A f N/A test_servers_post N/A N/A self N/A N/A N/A N/A N/A self _post_server N/A test_servers_get N/A N/A self N/A N/A N/A uuid N/A N/A self test_servers_post N/A response N/A N/A self _do_get N/A servers/%s uuid N/A subs N/A N/A N/A subs N/A hostid [a-f0-9]+ N/A N/A subs N/A id uuid N/A N/A subs N/A hypervisor_hostname [\w\.\-]+ N/A N/A subs N/A mac_addr (?:[a-f0-9]{2}:){5}[a-f0-9]{2} N/A N/A subs N/A access_ip_v4 1.2.3.4 N/A N/A subs N/A access_ip_v6 80fe:: N/A N/A N/A self _verify_response server-get-resp subs response 200 N/A test_servers_list N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A response N/A N/A self _do_get servers N/A subs N/A id uuid N/A N/A N/A self _verify_response servers-list-resp subs response 200 N/A test_servers_details N/A N/A self N/A N/A N/A uuid N/A N/A self test_servers_post N/A response N/A N/A self _do_get servers/detail N/A subs N/A N/A N/A subs N/A hostid [a-f0-9]+ N/A N/A subs N/A id uuid N/A N/A subs N/A hypervisor_hostname [\w\.\-]+ N/A N/A subs N/A mac_addr (?:[a-f0-9]{2}:){5}[a-f0-9]{2} N/A N/A subs N/A access_ip_v4 1.2.3.4 N/A N/A subs N/A access_ip_v6 80fe:: N/A N/A N/A self _verify_response servers-details-resp subs response 200 N/A N/A ServersSampleJson29Test N/A ServersSampleJsonTest N/A N/A microversion 2.9 N/A scenarios N/A N/A v2_9 N/A api_major_version v2.1 N/A ServersSampleJson219Test N/A ServersSampleJsonTest N/A N/A microversion 2.19 N/A sample_dir servers N/A scenarios N/A N/A v2_19 N/A api_major_version v2.1 test_servers_post N/A N/A self N/A N/A N/A N/A N/A self _post_server False N/A test_servers_put N/A N/A self N/A N/A N/A uuid N/A N/A self test_servers_post N/A response N/A N/A self _do_put N/A servers/%s uuid server-put-req N/A N/A subs N/A image_id hostid glance_host access_ip_v4 access_ip_v6 N/A N/A fake get_valid_image_id [a-f0-9]+ N/A N/A self _get_glance_host 1.2.3.4 80fe:: N/A N/A N/A self _verify_response server-put-resp subs response 200 N/A N/A ServersUpdateSampleJsonTest N/A ServersSampleBase N/A N/A sample_dir servers N/A all_extensions True test_update_server N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A subs N/A N/A N/A subs N/A hostid [a-f0-9]+ N/A N/A subs N/A access_ip_v4 1.2.3.4 N/A N/A subs N/A access_ip_v6 80fe:: N/A response N/A N/A self _do_put N/A servers/%s uuid server-update-req subs N/A N/A N/A self _verify_response server-update-resp subs response 200 N/A N/A ServerSortKeysJsonTests N/A ServersSampleBase N/A N/A sample_dir servers-sort _get_flags N/A N/A self N/A N/A N/A f N/A N/A N/A super ServerSortKeysJsonTests self _get_flags N/A N/A f N/A osapi_compute_extension N/A N/A CONF osapi_compute_extension N/A N/A N/A N/A N/A f N/A osapi_compute_extension append nova.api.openstack.compute.contrib.server_sort_keys.Server_sort_keys N/A f N/A test_servers_list N/A N/A self N/A N/A N/A N/A N/A self _post_server N/A response N/A N/A self _do_get servers?sort_key=display_name&sort_dir=asc N/A N/A N/A self _verify_response server-sort-keys-list-resp N/A response 200 N/A N/A ServersSampleAllExtensionJsonTest N/A ServersSampleJsonTest N/A N/A all_extensions True N/A sample_dir None N/A ServersActionsJsonTest N/A ServersSampleBase N/A N/A sample_dir servers _test_server_action N/A N/A self uuid action req_tpl subs resp_tpl code N/A None None 202 N/A N/A subs N/A subs N/A N/A N/A N/A subs update N/A action glance_host action N/A N/A self _get_glance_host N/A response N/A N/A self _do_post N/A servers/%s/action uuid req_tpl subs N/A resp_tpl N/A N/A N/A N/A self _verify_response resp_tpl subs response code N/A N/A N/A N/A self assertEqual code N/A response status_code N/A N/A N/A self assertEqual N/A response content N/A test_server_reboot_hard N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A N/A N/A self _test_server_action uuid reboot server-action-reboot N/A type HARD N/A test_server_reboot_soft N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A N/A N/A self _test_server_action uuid reboot server-action-reboot N/A type SOFT N/A test_server_rebuild N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A image N/A N/A fake get_valid_image_id N/A params N/A uuid name pass hostid access_ip_v4 access_ip_v6 image foobar seekr3t [a-f0-9]+ 1.2.3.4 80fe:: N/A resp N/A N/A self _do_post N/A servers/%s/action uuid server-action-rebuild params N/A subs N/A N/A params copy N/A N/A subs N/A uuid N/A N/A N/A self _verify_response server-action-rebuild-resp subs resp 202 N/A test_server_resize N/A N/A self N/A N/A N/A N/A N/A self flags allow_resize_to_same_host True N/A uuid N/A N/A self _post_server N/A N/A N/A self _test_server_action uuid resize server-action-resize N/A id host 2 N/A N/A self _get_host N/A uuid N/A test_server_revert_resize N/A N/A self N/A N/A N/A uuid N/A N/A self test_server_resize N/A N/A N/A self _test_server_action uuid revertResize server-action-revert-resize N/A test_server_confirm_resize N/A N/A self N/A N/A N/A uuid N/A N/A self test_server_resize N/A N/A N/A self _test_server_action uuid confirmResize server-action-confirm-resize code 204 N/A test_server_create_image N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A N/A N/A self _test_server_action uuid createImage server-action-create-image N/A name foo-image N/A N/A ServersActionsJson219Test N/A ServersSampleBase N/A N/A microversion 2.19 N/A sample_dir servers N/A scenarios N/A N/A v2_19 N/A api_major_version v2.1 test_server_rebuild N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A image N/A N/A fake get_valid_image_id N/A params N/A uuid name description pass hostid access_ip_v4 access_ip_v6 image foobar description of foobar seekr3t [a-f0-9]+ 1.2.3.4 80fe:: N/A resp N/A N/A self _do_post N/A servers/%s/action uuid server-action-rebuild params N/A subs N/A N/A params copy N/A N/A subs N/A uuid N/A N/A N/A self _verify_response server-action-rebuild-resp subs resp 202 N/A N/A ServersActionsAllJsonTest N/A ServersActionsJsonTest N/A N/A all_extensions True N/A sample_dir None N/A ServerStartStopJsonTest N/A ServersSampleBase N/A N/A sample_dir servers _get_flags N/A N/A self N/A N/A N/A f N/A N/A N/A super ServerStartStopJsonTest self _get_flags N/A N/A f N/A osapi_compute_extension N/A N/A CONF osapi_compute_extension N/A N/A N/A N/A N/A f N/A osapi_compute_extension append nova.api.openstack.compute.contrib.server_start_stop.Server_start_stop N/A f N/A _test_server_action N/A N/A self uuid action req_tpl N/A N/A N/A response N/A N/A self _do_post N/A servers/%s/action uuid req_tpl N/A action action N/A N/A N/A self assertEqual 202 N/A response status_code N/A N/A N/A self assertEqual N/A response content N/A test_server_start N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A N/A N/A self _test_server_action uuid os-stop server-action-stop N/A N/A N/A self _test_server_action uuid os-start server-action-start N/A test_server_stop N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A N/A N/A self _test_server_action uuid os-stop server-action-stop N/A N/A ServersSampleMultiStatusJsonTest N/A ServersSampleBase N/A N/A sample_dir servers N/A extra_extensions_to_load N/A os-access-ips _get_flags N/A N/A self N/A N/A N/A f N/A N/A N/A super ServersSampleMultiStatusJsonTest self _get_flags N/A N/A f N/A osapi_compute_extension N/A N/A CONF osapi_compute_extension N/A N/A N/A N/A N/A f N/A osapi_compute_extension append nova.api.openstack.compute.legacy_v2.contrib.server_list_multi_status.Server_list_multi_status N/A f N/A test_servers_list N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A response N/A N/A self _do_get servers?status=active&status=error N/A subs N/A id uuid N/A N/A N/A self _verify_response servers-list-resp subs response 200 N/A N/A ServerTriggerCrashDumpJsonTest N/A ServersSampleBase N/A N/A sample_dir servers N/A microversion 2.17 N/A scenarios N/A N/A v2_17 N/A api_major_version v2.1 test_trigger_crash_dump N/A N/A self N/A N/A N/A uuid N/A N/A self _post_server N/A response N/A N/A self _do_post N/A servers/%s/action uuid server-action-trigger-crash-dump N/A N/A N/A N/A self assertEqual N/A response status_code 202 N/A N/A N/A self assertEqual N/A response content N/A N/A