Module ImportFrom alias ImportFrom alias TryExcept body Import alias handlers ExceptHandler body ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias identifier ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body TryExcept body ImportFrom alias handlers ExceptHandler body Raise Call NameLoad Str TryExcept body ImportFrom alias handlers ExceptHandler body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Assign NameStore Str Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad NameLoad Index Str Dict Str Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call NameLoad Str attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str NameLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str NameLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str NameLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str NameLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str NameLoad Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Expr Str decorator_list
N/A django.test TestCase django.test.client Client N/A N/A N/A json N/A N/A N/A django.utils simplejson json MacroExpansion MacroExpansion KeyValueTree KeyValueTree truth.models Truth KeyValue TruthKeyValue TestMacroExpansion N/A TestCase N/A N/A fixtures N/A testdata.json test_import N/A N/A self N/A N/A N/A N/A MacroExpansion MacroExpansion N/A N/A N/A N/A N/A BaseException Unable to import Macro Expansion N/A N/A KeyValueTree KeyValueTree N/A N/A N/A N/A N/A BaseException Unable to import KeyValueTree N/A test_key_value_not_found N/A N/A self N/A N/A N/A m N/A MacroExpansion host:fake-hostname2:ip_address N/A N/A N/A self assertEqual N/A N/A m output 10.99.32.1 N/A test_key_value_found N/A N/A self N/A N/A N/A m N/A MacroExpansion host:fake-hostname2:ip_address N/A N/A N/A self assertEqual N/A N/A m output 10.99.32.1 N/A N/A SystemApi N/A TestCase N/A N/A fixtures N/A testdata.json N/A new_hostname new_hostname999 N/A new_host_id 3 setup N/A N/A self N/A N/A N/A N/A self client N/A Client N/A test_get_system_not_found_by_id N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/-1/ follow True N/A N/A N/A self assertEqual 404 N/A resp status_code N/A test_get_system_by_id N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/1/ follow True N/A N/A N/A self assertEqual 200 N/A resp status_code N/A test_get_system_by_hostname N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/asfdasfasfasdfasfasdfsadf/ follow True N/A N/A N/A self assertEqual 404 N/A resp status_code N/A resp N/A N/A N/A self client get /api/v2/system/fake-hostname2/ follow True N/A N/A N/A self assertEqual 200 N/A resp status_code N/A test_create_system N/A N/A self N/A N/A N/A N/A N/A N/A self client delete N/A /en-US/api/v2/system/%s/ N/A self new_hostname N/A resp N/A N/A N/A self client post N/A /en-US/api/v2/system/%s/ N/A self new_hostname N/A N/A N/A self assertEqual 201 N/A resp status_code N/A obj N/A N/A json loads N/A N/A N/A N/A resp content split  =  N/A 1 N/A resp N/A N/A N/A self client get N/A /api/v2/system/%i/ N/A obj N/A id follow True N/A N/A N/A self assertEqual 200 N/A resp status_code N/A resp N/A N/A N/A self client get N/A /api/v2/system/%s/ N/A self new_hostname follow True N/A N/A N/A self assertEqual 200 N/A resp status_code N/A N/A N/A self assertEqual N/A N/A N/A json loads N/A resp content N/A hostname N/A self new_hostname N/A test_update_system N/A N/A self N/A N/A N/A N/A N/A N/A self client delete N/A /en-US/api/v2/system/%s/ N/A self new_hostname N/A resp N/A N/A N/A self client post N/A /en-US/api/v2/system/%s/ N/A self new_hostname N/A N/A N/A self assertEqual 201 N/A resp status_code N/A obj N/A N/A json loads N/A N/A N/A N/A resp content split  =  N/A 1 N/A resp N/A N/A N/A self client put N/A /en-US/api/v2/system/%i/ N/A obj N/A id N/A hostname updated_hostname N/A N/A N/A self assertEqual 200 N/A resp status_code N/A resp N/A N/A N/A self client get N/A /api/v2/system/%i/ N/A obj N/A id follow True N/A N/A N/A self assertEqual 200 N/A resp status_code N/A N/A N/A self assertEqual N/A N/A N/A json loads N/A resp content N/A hostname updated_hostname N/A test_delete_system N/A N/A self N/A N/A N/A N/A N/A N/A self client delete N/A /en-US/api/v2/system/%s/ N/A self new_hostname N/A resp N/A N/A N/A self client post N/A /en-US/api/v2/system/%s/ N/A self new_hostname N/A N/A N/A self assertEqual 201 N/A resp status_code N/A obj N/A N/A json loads N/A N/A N/A N/A resp content split  =  N/A 1 N/A resp N/A N/A N/A self client delete N/A /en-US/api/v2/system/%i/ N/A obj N/A id N/A N/A N/A self assertEqual 200 N/A resp status_code N/A obj N/A N/A json loads N/A N/A N/A N/A resp content split  =  N/A 1 N/A resp N/A N/A N/A self client get N/A /api/v2/system/%i/ N/A obj N/A id follow True N/A N/A N/A self assertEqual 404 N/A resp status_code N/A resp N/A N/A N/A self client get N/A /api/v2/system/%s/ N/A self new_hostname follow True N/A N/A N/A self assertEqual 404 N/A resp status_code N/A test_key_value_tree N/A N/A self N/A N/A N/A tree N/A N/A KeyValueTree fake-hostname2 final N/A N/A N/A self assertEqual N/A tree N/A nic.0.ipv4_address.0 10.99.32.1 N/A test_key_value_api N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?keystore=fake-hostname2 follow True N/A N/A N/A self assertEqual N/A N/A N/A json loads N/A resp content N/A truth:test:cluster_name Test Cluster Name N/A N/A N/A self assertEqual N/A N/A N/A json loads N/A resp content N/A host:fake-hostname1:nic.0.ipv4_address.0 10.99.32.3 N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/5/ N/A key value system_id nic.0.ipv4_address.0 14.14.14.14 1 N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?keystore=fake-hostname2 follow True N/A N/A N/A self assertEqual N/A N/A N/A json loads N/A resp content N/A host:fake-hostname1:nic.0.ipv4_address.0 10.99.32.3 N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?key=cluster_owner follow True N/A N/A N/A self assertEqual N/A N/A N/A json loads N/A resp content N/A truth:test:cluster_owner The Cluster Owner N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?value=10.99.32.3 follow True N/A N/A N/A self assertEqual N/A N/A N/A json loads N/A resp content N/A host:fake-hostname1:nic.0.ipv4_address.0 10.99.32.3 N/A test_search_by_asset_tag N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search asset_tag True 65432 follow True N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A N/A json loads N/A resp content N/A 0 N/A asset_tag 65432 N/A N/A N/A self assertEqual N/A N/A N/A N/A json loads N/A resp content N/A 0 N/A hostname fake-hostname2 N/A test_search_by_serial N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search serial True 39993 follow True N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A N/A json loads N/A resp content N/A 0 N/A serial 39993 N/A N/A N/A self assertEqual N/A N/A N/A N/A json loads N/A resp content N/A 0 N/A hostname fake-hostname1 N/A test_search_by_serial_and_asset_tag_not_found N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search serial asset_tag True 39993 99999asdf follow True N/A N/A N/A self assertEqual N/A resp status_code 404 N/A test_search_by_system_rack N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search system_rack_id True 1 follow True N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A N/A json loads N/A resp content N/A 0 N/A hostname fake-hostname1 N/A test_search_by_system_rack_and_rack_order N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search system_rack_id rack_order True 1 1.00 follow True N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A N/A json loads N/A resp content N/A 0 N/A hostname fake-hostname1 N/A test_search_by_system_rack_and_rack_order_not_found N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search system_rack_id rack_order True 1 2.00 follow True N/A N/A N/A self assertEqual N/A resp status_code 404 N/A test_search_by_system_rack_and_serial N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search system_rack_id serial True 1 39993 follow True N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A N/A json loads N/A resp content N/A 0 N/A hostname fake-hostname1 N/A test_search_by_system_switch_ports N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search switch_ports True 101.02 follow True N/A N/A N/A self assertEqual N/A resp status_code 200 N/A N/A N/A self assertEqual N/A N/A N/A N/A json loads N/A resp content N/A 0 N/A hostname fake-hostname1 N/A test_search_by_system_switch_ports_not_found N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search switch_ports True shouldnteverhavethisasaswitchport101.02 follow True N/A N/A N/A self assertEqual N/A resp status_code 404 N/A test_search_by_system_rack_and_serial_not_found N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/system/3/ N/A search system_rack_id serial True 1 39993asdf follow True N/A N/A N/A self assertEqual N/A resp status_code 404 N/A N/A DHCPApi N/A TestCase N/A N/A fixtures N/A testdata.json setup N/A N/A self N/A N/A N/A N/A self client N/A Client N/A test_get_single_scope N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?key_type=dhcp_scopes follow True N/A scope_list N/A N/A json loads N/A resp content N/A N/A N/A self assertEqual N/A N/A scope_list N/A 0 N/A dhcp.is_scope True N/A N/A N/A self assertEqual N/A N/A scope_list N/A 0 N/A dhcp.scope.start 10.0.1.0 N/A N/A N/A self assertEqual N/A N/A scope_list N/A 0 N/A dhcp.scope.end 10.0.1.255 N/A N/A N/A self assertEqual N/A N/A scope_list N/A 0 N/A dhcp.scope.name phx-vlan73 N/A test_get_second_scope N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?key_type=dhcp_scopes follow True N/A scope_list N/A N/A json loads N/A resp content N/A self.assertEqual(scope_list[1]['dhcp.is_scope'], 'True')
        self.assertEqual(scope_list[1]['dhcp.scope.start'], '10.0.0.0')
        self.assertEqual(scope_list[1]['dhcp.scope.end'], '10.0.0.255')
        self.assertEqual(scope_list[1]['dhcp.scope.name'], 'phx-vlan81') N/A test_get_multiple_scopes N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?key_type=dhcp_scopes follow True N/A scope_list N/A N/A json loads N/A resp content N/A self.assertEqual(scope_list[0]['dhcp.is_scope'], 'True')
        self.assertEqual(scope_list[0]['dhcp.scope.start'], '10.0.1.0')
        self.assertEqual(scope_list[0]['dhcp.scope.end'], '10.0.1.255')
        self.assertEqual(scope_list[0]['dhcp.scope.name'], 'phx-vlan73')
        self.assertEqual(scope_list[1]['dhcp.is_scope'], 'True')
        self.assertEqual(scope_list[1]['dhcp.scope.start'], '10.0.0.0')
        self.assertEqual(scope_list[1]['dhcp.scope.end'], '10.0.0.255')
        self.assertEqual(scope_list[1]['dhcp.scope.name'], 'phx-vlan81') N/A test_get_system_by_scope N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?key_type=system_by_scope&scope=phx-vlan73 follow True N/A system_list N/A N/A json loads N/A resp content N/A N/A N/A self assertEqual N/A N/A system_list N/A 0 N/A nic.0.mac_address.0 00:00:00:00:00:AA N/A N/A N/A self assertEqual N/A N/A system_list N/A 0 N/A nic.0.ipv4_address.0 10.99.32.1 N/A N/A N/A self assertEqual N/A N/A system_list N/A 0 N/A nic.1.mac_address.0 00:00:00:00:00:BB N/A N/A N/A self assertEqual N/A N/A system_list N/A 0 N/A nic.1.ipv4_address.0 10.99.32.2 N/A test_get_adapters_by_system N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?key_type=adapters_by_system&system=fake-hostname2 follow True N/A system_list N/A N/A json loads N/A resp content N/A test_delete_network_adapter N/A N/A self N/A N/A N/A resp N/A N/A N/A self client delete /en-US/api/v2/keyvalue/1/ N/A system_hostname adapter_number key_type fake-hostname2 0 delete_network_adapter N/A N/A TestReverseDNSApi N/A TestCase N/A N/A fixtures N/A testdata.json setup N/A N/A self N/A N/A N/A N/A self client N/A Client N/A test_get_single_reverse_zone_names_with_descriptions N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/reverse_dns/1/get_reverse_dns_zones_with_names/ follow True N/A N/A N/A self assertEqual N/A resp status_code 200 N/A scope_list N/A N/A json loads N/A resp content N/A N/A N/A self assertEqual N/A len scope_list 2 N/A N/A N/A self assertEqual N/A N/A scope_list N/A 0 N/A name phx1-32.8.10.in-addr.arpa N/A N/A N/A self assertEqual N/A N/A scope_list N/A 0 N/A description 10.99.32.0 reverse dns zone N/A N/A N/A self assertEqual N/A N/A scope_list N/A 1 N/A name phx1-33.8.10.in-addr.arpa N/A N/A N/A self assertEqual N/A N/A scope_list N/A 1 N/A description 10.99.33.0 reverse dns zone N/A test_get_system_by_reverse_dns_zone N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/keyvalue/?key_type=system_by_reverse_dns_zone&zone=phx1-32.8.10.in-addr.arpa follow True N/A N/A N/A self assertEqual N/A resp status_code 200 N/A system_list N/A N/A json loads N/A resp content N/A N/A N/A self assertEqual N/A len system_list 2 N/A N/A N/A self assertEqual N/A N/A system_list N/A 0 N/A nic.0.ipv4_address.0 10.99.32.1 N/A N/A N/A self assertEqual N/A N/A system_list N/A 0 N/A hostname fake-hostname2 N/A N/A N/A self assertEqual N/A N/A system_list N/A 0 N/A nic.1.ipv4_address.0 10.99.32.2 N/A N/A N/A self assertEqual N/A N/A system_list N/A 1 N/A nic.0.ipv4_address.0 10.99.32.3 N/A N/A N/A self assertEqual N/A N/A system_list N/A 1 N/A hostname fake-hostname1 N/A N/A KeyValueApi N/A TestCase N/A N/A fixtures N/A testdata.json setup N/A N/A self N/A N/A N/A N/A self client N/A Client N/A test_get_adapters_by_system N/A N/A self N/A N/A N/A resp N/A N/A N/A self client get /api/v2/keyvalue/3/ N/A key_type system adapters_by_system fake-hostname2 follow True N/A test_keyvalue_set_invalid_ip N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 2 1.1.1asdfasdf.1 nic.0.ipv4_address.0 N/A N/A N/A self assertEqual N/A resp status_code 401 N/A test_keyvalue_set_valid_ip N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 1 10.99.32.1 nic.0.ipv4_address.0 N/A N/A N/A self assertEqual N/A resp status_code 200 N/A test_keyvalue_set_invalid_mac_address N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 2 asdfsadfsadf nic.0.mac_address.0 N/A N/A N/A self assertEqual N/A resp status_code 401 N/A test_keyvalue_set_valid_mac_address N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/2/ N/A system_id value key 1 00:00:00:00:00:00 nic.0.mac_address.0 N/A N/A N/A self assertEqual N/A resp status_code 200 N/A test_keyvalue_set_invalid_is_dhcp_scope N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 2 true is_dhcp_scope N/A N/A N/A self assertEqual N/A resp status_code 401 N/A N/A def test_keyvalue_set_valid_is_dhcp_scope(self):
        resp = self.client.put('/en-US/api/v2/keyvalue/1/', {'system_id':'1', 'value':'True','key':'is_dhcp_scope'})
        self.assertEqual(resp.status_code, 200) test_keyvalue_set_invalid_dhcp_scope_start N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 2 1.1.1asdfasdf.1 dhcp.scope.start N/A N/A N/A self assertEqual N/A resp status_code 401 N/A N/A def test_keyvalue_set_valid_dhcp_scope_start(self):
        resp = self.client.put('/en-US/api/v2/keyvalue/3/', {'system_id':'1', 'value':'10.99.32.1','key':'dhcp.scope.start'})
        self.assertEqual(resp.status_code, 200) test_keyvalue_set_invalid_dhcp_scope_end N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 2 1.1.1asdfasdf.1 dhcp.scope.end N/A N/A N/A self assertEqual N/A resp status_code 401 N/A N/A def test_keyvalue_set_valid_dhcp_scope_end(self):
        resp = self.client.put('/en-US/api/v2/keyvalue/3/', {'system_id':'2', 'value':'10.99.32.1','key':'dhcp.scope.end'})
        self.assertEqual(resp.status_code, 200) test_keyvalue_set_invalid_dhcp_pool_start N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 2 1.1.1asdfasdf.1 dhcp.pool.start N/A N/A N/A self assertEqual N/A resp status_code 401 N/A N/A def test_keyvalue_set_valid_dhcp_pool_start(self):
        resp = self.client.put('/en-US/api/v2/keyvalue/3/', {'system_id':'2', 'value':'10.99.32.1','key':'dhcp.pool.start'})
        self.assertEqual(resp.status_code, 200) test_keyvalue_set_invalid_dhcp_pool_end N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 2 1.1.1asdfasdf.1 dhcp.pool.end N/A N/A N/A self assertEqual N/A resp status_code 401 N/A N/A def test_keyvalue_set_valid_dhcp_pool_end(self):
        resp = self.client.put('/en-US/api/v2/keyvalue/3/', {'system_id':'2', 'value':'10.99.32.1','key':'dhcp.pool.end'})
        self.assertEqual(resp.status_code, 200) test_keyvalue_set_invalid_dhcp_scope_netmask N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 2 1.1.1asdfasdf.1 dhcp.scope.start N/A N/A N/A self assertEqual N/A resp status_code 401 N/A N/A def test_keyvalue_set_valid_dhcp_scope_netmask(self):
        resp = self.client.put('/en-US/api/v2/keyvalue/3/', {'system_id':'1', 'value':'10.99.32.1','key':'dhcp.scope.start'})
        self.assertEqual(resp.status_code, 200) test_keyvalue_set_invalid_dhcp_ntp_server N/A N/A self N/A N/A N/A resp N/A N/A N/A self client put /en-US/api/v2/keyvalue/3/ N/A system_id value key 2 1.1.1asdfasdf.1 dhcp.option.ntp_server.0 N/A N/A N/A self assertEqual N/A resp status_code 401 N/A N/A def test_keyvalue_set_valid_dhcp_ntp_server(self):
        resp = self.client.put('/en-US/api/v2/keyvalue/3/', {'system_id':'2', 'value':'10.99.32.1','key':'dhcp.option.ntp_server.0'})
        self.assertEqual(resp.status_code, 200) N/A