Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body With Call NameLoad Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str ListLoad Str With Call NameLoad Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Dict Str Str NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad AttributeLoad NameLoad attr Str body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Num While CompareLt Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num If Call AttributeLoad NameLoad attr NameLoad body Return Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr Return CompareIn NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Dict Str Str Dict Str ListLoad Str Dict Str ListLoad Str Dict Str Dict Str ListLoad Str Dict Str Dict Str ListLoad Str decorator_list decorator_list Call NameLoad keyword Num keyword AttributeLoad NameLoad attr
N/A N/A tempfile N/A time N/A os N/A shutil N/A yaml cloudify_rest_client.exceptions UserUnauthorizedError nose.plugins.attrib attr manager_rest.test base_test manager_rest.test.security.security_test_base SecurityTestBase N/A N/A _ USERSTORE_FILE N/A N/A tempfile mkstemp prefix userstore N/A N/A _ ROLES_CONFIG_FILE N/A N/A tempfile mkstemp prefix roles_config N/A USERSTORE_LOADED_SUCCESSFULLY Loading of userstore ended successfully N/A USERSTORE_MISSING_USERS Users not found in N/A USERSTORE_FILE_INVALID_DICT yaml is not a valid dict N/A USERSTORE_INVALID_YAML Failed parsing N/A ROLES_CONFIG_FILE_INVALID_DICT Failed parsing N/A ROLES_CONFIG_LOADED_SUCCESSFULLY Loading of roles configuration ended successfully TestUserstoreReloadFile N/A SecurityTestBase N/A setUp N/A N/A self N/A N/A N/A N/A N/A self create_roles_config_copy N/A N/A N/A self restore_userstore_file N/A N/A N/A self restore_roles_config N/A N/A N/A N/A super TestUserstoreReloadFile self setUp N/A create_configuration N/A N/A self N/A N/A N/A test_config N/A N/A N/A super TestUserstoreReloadFile self create_configuration N/A N/A self security_log_path N/A test_config security_audit_log_file N/A test_config N/A create_roles_config_copy N/A N/A self N/A N/A N/A abs_path N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ N/A file_path N/A N/A N/A os path join abs_path ../resources/roles_config.yaml N/A N/A N/A shutil copyfile file_path ROLES_CONFIG_FILE N/A get_roles_config_file_path N/A N/A self N/A N/A N/A ROLES_CONFIG_FILE N/A _init_test N/A N/A self N/A N/A N/A N/A N/A self clear_log_file N/A N/A N/A self modify_userstore_file N/A N/A self get_users N/A N/A self get_groups USERSTORE_LOADED_SUCCESSFULLY N/A N/A N/A self restore_roles_config ROLES_CONFIG_LOADED_SUCCESSFULLY N/A _create_secured_client N/A N/A self N/A N/A N/A auth_header N/A N/A SecurityTestBase create_auth_header username alice password alice_password N/A client N/A N/A self create_client headers auth_header N/A client N/A restore_userstore_file N/A N/A self N/A N/A N/A N/A N/A self modify_userstore_file N/A N/A self get_users N/A N/A self get_groups N/A restore_roles_config N/A N/A self message N/A None N/A N/A N/A open N/A N/A self get_roles_config_file_path w outfile N/A N/A N/A N/A outfile write N/A N/A yaml safe_dump N/A N/A self get_valid_roles_config default_flow_style True N/A message N/A N/A N/A N/A self wait_for_log_message message N/A test_reload_userstore N/A N/A self N/A N/A N/A N/A N/A self _init_test N/A client N/A N/A self _create_secured_client N/A N/A N/A N/A client deployments list N/A new_file_users N/A N/A user password alice non_existing_password N/A N/A N/A self modify_userstore_file new_file_users N/A USERSTORE_LOADED_SUCCESSFULLY N/A N/A N/A self assertRaises UserUnauthorizedError N/A N/A client deployments list N/A test_reload_invalid_userstore_dict N/A N/A self N/A N/A N/A N/A N/A self _test_invalid_userstore invalid_userstore USERSTORE_FILE_INVALID_DICT N/A test_reload_invalid_userstore_no_users N/A N/A self N/A N/A N/A N/A N/A self _test_invalid_userstore {'groups': []} USERSTORE_MISSING_USERS N/A test_reload_invalid_userstore_invalid_yaml N/A N/A self N/A N/A N/A N/A N/A self _test_invalid_userstore {invalid_yaml}} USERSTORE_INVALID_YAML N/A _test_invalid_userstore N/A N/A self userstore_file_text error_msg N/A N/A N/A N/A N/A self _init_test N/A client N/A N/A self _create_secured_client N/A N/A N/A N/A client deployments list N/A N/A N/A self corrupt_userstore_file userstore_file_text wait_for_message error_msg N/A N/A N/A N/A client deployments list N/A test_reload_invalid_roles_config_dict N/A N/A self N/A N/A N/A N/A N/A self _init_test N/A client N/A N/A self _create_secured_client N/A N/A open N/A N/A self get_roles_config_file_path w outfile N/A N/A N/A N/A outfile write {invalid_roles_config}} N/A N/A N/A self wait_for_log_message ROLES_CONFIG_FILE_INVALID_DICT N/A N/A N/A N/A client deployments list N/A test_reload_valid_roles_config_dict N/A N/A self N/A N/A N/A N/A N/A self _init_test N/A client N/A N/A self _create_secured_client N/A N/A N/A N/A client deployments list N/A roles_config N/A N/A self get_valid_roles_config N/A N/A N/A roles_config N/A administrator N/A deny N/A GET N/A N/A open N/A N/A self get_roles_config_file_path w outfile N/A N/A N/A N/A outfile write N/A N/A yaml dump roles_config default_flow_style True N/A N/A N/A self wait_for_log_message ROLES_CONFIG_LOADED_SUCCESSFULLY N/A N/A N/A self assertRaises UserUnauthorizedError N/A N/A client deployments list N/A modify_userstore_file N/A N/A self users groups message N/A None N/A N/A userstore_settings N/A users groups users groups N/A N/A open USERSTORE_FILE w outfile N/A N/A N/A N/A outfile write N/A N/A yaml dump userstore_settings default_flow_style True N/A message N/A N/A N/A N/A self wait_for_log_message message N/A corrupt_userstore_file N/A N/A self text wait_for_message N/A None N/A N/A N/A open USERSTORE_FILE w outfile N/A N/A N/A N/A outfile write N/A N/A yaml dump text default_flow_style True N/A wait_for_message N/A N/A N/A N/A self wait_for_log_message USERSTORE_FILE_INVALID_DICT N/A clear_log_file N/A N/A self N/A N/A N/A N/A open N/A self security_log_path w N/A N/A N/A wait_for_log_message N/A N/A self message N/A N/A N/A timeout N/A N/A N/A time time 60 N/A N/A N/A N/A time time timeout N/A N/A N/A N/A time sleep 1 N/A N/A N/A self log_contains message N/A N/A N/A N/A N/A self fail N/A N/A Expected message: '{0}' was not found in log. format message N/A log_contains N/A N/A self expected_text N/A N/A N/A N/A open N/A self security_log_path f N/A N/A logged_text N/A N/A f read N/A N/A expected_text logged_text N/A get_userstore_configuration N/A N/A self N/A N/A N/A N/A implementation properties flask_securest.userstores.file_userstore:FileUserstore N/A userstore_file_path USERSTORE_FILE N/A get_valid_roles_config N/A N/A self N/A N/A N/A N/A deployer viewer administrator N/A deny allow N/A * N/A DELETE N/A * N/A * N/A allow N/A * N/A GET N/A allow N/A * N/A * N/A N/A N/A attr client_min_version 2 client_max_version N/A base_test LATEST_API_VERSION