Module Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Num Assign NameStore ListLoad Num Num decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad Call NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Slice Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str 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 keyword Call NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Slice Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Num Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str 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 Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str keyword TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str keyword Call NameLoad Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Slice Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A mock sahara.plugins base base_plugins sahara.service ops sahara.tests.unit base sahara.utils cluster c_u FakeCluster N/A object N/A N/A id id N/A status Some_status N/A name Fake_cluster N/A FakeNodeGroup N/A object N/A N/A id id N/A count 2 N/A instances N/A 1 2 N/A FakePlugin N/A N/A mock Mock N/A N/A node_groups N/A N/A FakeNodeGroup N/A is_transient False update_infra N/A N/A self cluster N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append update_infra N/A configure_cluster N/A N/A self cluster N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append configure_cluster N/A start_cluster N/A N/A self cluster N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append start_cluster N/A on_terminate_cluster N/A N/A self cluster N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append on_terminate_cluster N/A decommission_nodes N/A N/A self cluster instances_to_delete N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append decommission_nodes N/A scale_cluster N/A N/A self cluster node_group_id_map N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append plugin.scale_cluster N/A cluster_destroy N/A N/A self ctx cluster N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append cluster_destroy N/A N/A FakeINFRA N/A object N/A create_cluster N/A N/A self cluster N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append create_cluster N/A scale_cluster N/A N/A self cluster node_group_id_map N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append INFRA.scale_cluster N/A True N/A shutdown_cluster N/A N/A self cluster N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append shutdown_cluster N/A rollback_cluster N/A N/A self cluster reason N/A N/A N/A N/A N/A N/A TestOPS SEQUENCE append rollback_cluster N/A N/A TestOPS N/A N/A base SaharaWithDbTestCase N/A N/A SEQUENCE N/A test_provision_cluster N/A N/A self p_run_job p_job_exec p_create_trust p_conf p_cluster_get p_change_status p_prep_provisioning p_update_sahara_info p_change_cluster_status_desc refresh N/A N/A N/A N/A N/A self SEQUENCE N/A N/A N/A ops INFRA N/A FakeINFRA N/A N/A N/A ops _provision_cluster 123 N/A N/A N/A self assertEqual N/A update_infra create_cluster configure_cluster start_cluster N/A self SEQUENCE Order of calls is wrong N/A N/A N/A self assertEqual 1 N/A refresh call_count N/A N/A N/A mock patch sahara.service.ops._refresh_health_for_cluster N/A N/A mock patch sahara.utils.cluster.change_cluster_status_description return_value N/A FakeCluster N/A N/A mock patch sahara.service.ops._update_sahara_info N/A N/A mock patch sahara.service.ops._prepare_provisioning return_value N/A N/A N/A mock Mock N/A N/A mock Mock N/A FakePlugin N/A N/A mock patch sahara.utils.cluster.change_cluster_status N/A N/A mock patch sahara.conductor.API.cluster_get N/A N/A mock patch sahara.service.ops.CONF N/A N/A mock patch sahara.service.trusts.create_trust_for_cluster N/A N/A mock patch sahara.conductor.API.job_execution_get_all N/A N/A mock patch sahara.service.edp.job_manager.run_job test_provision_scaled_cluster N/A N/A self p_get_instances p_change_status p_prep_provisioning p_conf p_ntp refresh N/A N/A N/A N/A N/A self SEQUENCE N/A N/A N/A ops INFRA N/A FakeINFRA N/A N/A p_conf use_identity_api_v3 True N/A N/A N/A ops _provision_scaled_cluster 123 N/A id 1 N/A N/A N/A self assertEqual N/A decommission_nodes INFRA.scale_cluster plugin.scale_cluster N/A self SEQUENCE Order of calls is wrong N/A N/A N/A self assertEqual 1 N/A refresh call_count N/A N/A N/A mock patch sahara.service.ops._refresh_health_for_cluster N/A N/A mock patch sahara.service.ntp_service.configure_ntp N/A N/A mock patch sahara.service.ops.CONF N/A N/A mock patch sahara.service.ops._prepare_provisioning return_value N/A N/A N/A mock Mock N/A N/A mock Mock N/A FakePlugin N/A N/A mock patch sahara.utils.cluster.change_cluster_status return_value N/A FakePlugin N/A N/A mock patch sahara.utils.cluster.get_instances test_terminate_cluster N/A N/A self p_ctx p_delete_trust p_conf p_set N/A N/A N/A N/A N/A self SEQUENCE N/A N/A N/A base_plugins PLUGINS N/A FakePlugin N/A N/A N/A N/A base_plugins PLUGINS get_plugin return_value N/A FakePlugin N/A N/A ops INFRA N/A FakeINFRA N/A N/A ops conductor N/A FakePlugin N/A N/A N/A ops terminate_cluster 123 N/A N/A N/A self assertEqual N/A on_terminate_cluster shutdown_cluster cluster_destroy N/A self SEQUENCE Order of calls is wrong N/A N/A N/A mock patch sahara.service.ops._setup_trust_for_cluster N/A N/A mock patch sahara.service.ops.CONF N/A N/A mock patch sahara.service.trusts.delete_trust_from_cluster N/A N/A mock patch sahara.context.ctx test_ops_error_hadler_success_rollback N/A N/A self p_cluster_get p_rollback_cluster p_change_cluster_status p__prepare_provisioning p_change_cluster_status_desc N/A N/A N/A fake_cluster N/A FakeCluster N/A N/A p_change_cluster_status_desc return_value N/A FakeCluster N/A N/A p_rollback_cluster return_value True N/A N/A p_cluster_get return_value fake_cluster N/A N/A p__prepare_provisioning side_effect N/A ValueError error1 N/A expected N/A N/A N/A mock call fake_cluster N/A c_u CLUSTER_STATUS_ACTIVE Scaling cluster failed for the following reason(s): error1 N/A N/A N/A ops _provision_scaled_cluster N/A fake_cluster id N/A id 1 N/A N/A N/A self assertEqual expected N/A p_change_cluster_status call_args_list N/A N/A N/A mock patch sahara.utils.cluster.change_cluster_status_description N/A N/A mock patch sahara.service.ops._prepare_provisioning N/A N/A mock patch sahara.utils.cluster.change_cluster_status N/A N/A mock patch sahara.service.ops._rollback_cluster N/A N/A mock patch sahara.conductor.API.cluster_get test_ops_error_hadler_failed_rollback N/A N/A self p_cluster_get p_rollback_cluster p_change_cluster_status p__prepare_provisioning p_change_cluster_status_desc N/A N/A N/A fake_cluster N/A FakeCluster N/A N/A p_change_cluster_status_desc return_value N/A FakeCluster N/A N/A p__prepare_provisioning side_effect N/A ValueError error1 N/A N/A p_rollback_cluster side_effect N/A ValueError error2 N/A N/A p_cluster_get return_value fake_cluster N/A expected N/A N/A N/A mock call fake_cluster Error Scaling cluster failed for the following reason(s): error1, error2 N/A N/A N/A ops _provision_scaled_cluster N/A fake_cluster id N/A id 1 N/A N/A N/A self assertEqual expected N/A p_change_cluster_status call_args_list N/A N/A N/A mock patch sahara.utils.cluster.change_cluster_status_description N/A N/A mock patch sahara.service.ops._prepare_provisioning N/A N/A mock patch sahara.utils.cluster.change_cluster_status N/A N/A mock patch sahara.service.ops._rollback_cluster N/A N/A mock patch sahara.conductor.API.cluster_get N/A