Module Expr Str Import alias Import alias identifier Import alias Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str ImportFrom alias identifier Expr Call NameLoad NameLoad ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Dict Str Str Dict Str Str Dict Str Str Dict Str Dict Str Str ListLoad Num Num Dict Str Str Str Str Str Str Num Str Num Num Num Num Dict Str Dict Str Str ListLoad Num Num Dict Str Str Str Str Str Str Num Str Num Num Num Num ListLoad Dict Assign NameStore Dict Str Str Str Str Str Num Str Dict Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str Str Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Str attr TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A N/A Test health check api. N/A os N/A simplejson json N/A unittest2 N/A N/A N/A os environ N/A COMPASS_IGNORE_SETTING true compass.utils setting_wrapper setting N/A N/A reload setting test_api ApiTestCase compass.db.api cluster cluster_db compass.db.api health_check_report health_check_db compass.utils flags compass.utils logsetting N/A report_sample N/A report raw_output N/A actions errors_info N/A neutron.create_network neutron.delete_network N/A duration N/A data summary N/A 1.105 0.973 N/A errors success min (sec) avg (sec) max (sec) total 0 100.0% 0.973 1.04 1.105 2 N/A duration N/A data summary N/A 1.038 0.842 N/A errors success min (sec) avg (sec) max (sec) total 0 100.0% 0.842 0.94 1.038 2 N/A N/A N/A api_resp_tpml N/A cluster_id name report state errors_message 1 sample_name N/A verifying TestHealthCheckAPI N/A ApiTestCase N/A N/A Test health check api. setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestHealthCheckAPI self setUp N/A N/A self cluster_id 1 N/A N/A self url N/A /clusters/%s/healthreports N/A self cluster_id N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A super TestHealthCheckAPI self tearDown N/A test_add_and_list_reports N/A N/A self N/A N/A N/A reports_list N/A N/A name category rp1 c1 N/A name category rp2 c2 N/A name category rp3 c3 N/A request_data N/A N/A json dumps N/A report_list reports_list N/A return_value N/A N/A N/A self test_client post N/A self url data request_data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual 200 N/A return_value status_code N/A N/A N/A self assertEqual 3 N/A len resp N/A request_data N/A N/A json dumps N/A name rp4 test N/A return_value N/A N/A N/A self test_client post N/A self url data request_data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual 200 N/A return_value status_code N/A N/A N/A self assertEqual rp4-test N/A resp N/A name N/A return_value N/A N/A N/A self test_client post N/A self url data request_data N/A N/A N/A self assertEqual 409 N/A return_value status_code N/A return_value N/A N/A N/A self test_client get N/A self url N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A N/A self assertEqual 200 N/A return_value status_code N/A N/A N/A self assertEqual 4 N/A len resp N/A test_update_and_get_health_report N/A N/A self N/A N/A N/A report_name test-report N/A N/A N/A health_check_db add_report_record N/A self cluster_id name report_name N/A url N/A N/A / join N/A N/A self url report_name N/A request_data N/A N/A json dumps N/A report state report_sample finished N/A return_value N/A N/A N/A self test_client put url data request_data N/A resp N/A N/A json loads N/A N/A return_value get_data N/A N/A self maxDiff None N/A N/A N/A self assertEqual 200 N/A return_value status_code N/A N/A N/A self assertDictEqual report_sample N/A resp N/A report N/A return_value N/A N/A N/A self test_client put url data request_data N/A N/A N/A self assertEqual 403 N/A return_value status_code N/A return_value N/A N/A N/A self test_client get url N/A N/A N/A self assertEqual 200 N/A return_value status_code N/A N/A N/A self assertDictEqual report_sample N/A resp N/A report N/A test_action_start_check_health N/A N/A self N/A N/A N/A url N/A /clusters/%s/action N/A self cluster_id N/A request_data N/A N/A json dumps N/A check_health None N/A return_value N/A N/A N/A self test_client post url data request_data N/A N/A N/A self assertEqual 403 N/A return_value status_code N/A N/A N/A cluster_db update_cluster_state N/A self cluster_id state SUCCESSFUL N/A return_value N/A N/A N/A self test_client post url data request_data N/A N/A N/A self assertEqual 202 N/A return_value status_code N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A flags init N/A N/A N/A logsetting init N/A N/A N/A unittest2 main