Module Import alias ImportFrom alias identifier ImportFrom alias identifier ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body If CompareNotEq AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num Return SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Raise NameLoad Return TupleLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword Dict Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad ListLoad Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad NameLoad keyword Dict Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str Dict Str Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str Dict Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Dict Str Dict Str NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A mock sahara.service ntp_service ntp sahara.tests.unit base test_base FakeRemote N/A object N/A __init__ N/A N/A self effects N/A N/A N/A N/A self effects effects N/A N/A self idx 0 N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self N/A args N/A N/A N/A N/A self idx N/A len N/A self effects N/A N/A N/A ValueError N/A _get_effect N/A N/A self N/A N/A N/A N/A self idx 1 N/A N/A N/A self effects N/A N/A N/A self idx 1 N/A execute_command N/A N/A self cmd run_as_root N/A False N/A N/A effect N/A N/A self _get_effect N/A N/A isinstance effect RuntimeError N/A N/A effect N/A N/A 0 effect N/A append_to_file N/A N/A self file text run_as_root N/A False N/A N/A N/A N/A self execute_command file run_as_root N/A N/A FakeInstance N/A object N/A __init__ N/A N/A self effects id N/A N/A N/A N/A self id id N/A N/A self instance_name id N/A N/A self instance_id id N/A N/A self effects effects N/A remote N/A N/A self N/A N/A N/A N/A FakeRemote N/A self effects N/A N/A NTPServiceTest N/A N/A test_base SaharaTestCase N/A test_configuring_ntp_unable_to_configure N/A N/A self cl_get logger N/A N/A N/A instance N/A FakeInstance N/A ubuntu N/A RuntimeError 1 N/A ng N/A N/A mock Mock instances N/A instance N/A N/A cl_get return_value N/A N/A mock Mock node_groups N/A ng cluster_configs N/A N/A N/A N/A ntp configure_ntp 1 N/A N/A N/A self assertEqual N/A N/A N/A mock call Unable to configure NTP service N/A logger call_args_list N/A N/A N/A mock patch sahara.service.ntp_service.LOG.warning N/A N/A mock patch sahara.service.ntp_service.conductor.cluster_get test_configuring_success N/A N/A self cl_get logger N/A N/A N/A instance N/A FakeInstance N/A centos cat batman vs superman boom 1 N/A ng N/A N/A mock Mock instances N/A instance N/A N/A cl_get return_value N/A N/A mock Mock node_groups N/A ng cluster_configs N/A N/A N/A N/A ntp configure_ntp 1 N/A N/A N/A self assertEqual N/A N/A N/A mock call NTP successfully configured N/A logger call_args_list N/A N/A N/A mock patch sahara.service.ntp_service.LOG.info N/A N/A mock patch sahara.service.ntp_service.conductor.cluster_get test_retrieve_url N/A N/A self N/A N/A N/A cl N/A N/A mock Mock cluster_configs N/A general N/A URL of NTP server batman.org N/A N/A N/A self assertEqual batman.org N/A N/A ntp retrieve_ntp_server_url cl N/A N/A N/A self override_config default_ntp_server superman.org N/A cl N/A N/A mock Mock cluster_configs N/A general N/A N/A N/A N/A self assertEqual superman.org N/A N/A ntp retrieve_ntp_server_url cl N/A test_is_ntp_enabled N/A N/A self ntp_url cl_get N/A N/A N/A cl N/A N/A mock Mock cluster_configs N/A general N/A Enable NTP service False N/A N/A cl_get return_value cl N/A N/A N/A ntp configure_ntp 1 N/A N/A N/A self assertEqual 0 N/A ntp_url call_count N/A N/A N/A mock patch sahara.service.ntp_service.conductor.cluster_get N/A N/A mock patch sahara.service.ntp_service.retrieve_ntp_server_url N/A