Module ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore Call AttributeLoad NameLoad attr Str attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Str NameLoad Call NameLoad Call NameLoad Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad keyword Call NameLoad keyword Call NameLoad Call NameLoad Str Str Str Str keyword Call NameLoad Call NameLoad Str Str Str keyword NameLoad keyword NameLoad keyword Call NameLoad keyword Call NameLoad Call NameLoad Str Str Str Str keyword Call NameLoad Call NameLoad Str Str Str keyword NameLoad keyword NameLoad keyword Call NameLoad keyword Call NameLoad Call NameLoad Str Str Str Str keyword Call NameLoad Call NameLoad Str Str Str keyword NameLoad keyword NameLoad keyword Call NameLoad keyword Call NameLoad Call NameLoad Str Str Str Str keyword Call NameLoad Call NameLoad Str Str Str keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str FunctionDef arguments args defaults vararg kwarg body If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse Return Str decorator_list Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args defaults vararg kwarg body If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse Return Str decorator_list Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str FunctionDef arguments args defaults vararg kwarg body If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Return Str orelse Return Str decorator_list Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad orelse Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad orelse Expr Call NameLoad decorator_list Call NameLoad keyword Call NameLoad keyword ListLoad Str Str keyword ListLoad Str Str keyword Dict Str Str Str Str keyword NameLoad keyword Call NameLoad keyword ListLoad Str Str keyword ListLoad Str Str keyword Dict Str Str keyword NameLoad keyword Call NameLoad keyword ListLoad Str keyword ListLoad Str Str keyword Dict Str Str keyword NameLoad keyword Call NameLoad keyword ListLoad Str Str keyword ListLoad Str Str keyword Dict Str Str Str Str Str Str keyword NameLoad decorator_list NameLoad
N/A functools partial os.path join expanduser unittest.mock MagicMock N/A uuid genty genty genty_dataset genty_args app.subcommands.deploy_subcommand DeploySubcommand app.util.network Network test.framework.base_unit_test_case BaseUnitTestCase TestDeploySubcommand N/A BaseUnitTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super setUp N/A N/A N/A self patch app.subcommands.deploy_subcommand.fs.compress_directory N/A test_binaries_tar_raises_exception_if_running_from_source N/A N/A self N/A N/A N/A deploy_subcommand N/A DeploySubcommand N/A N/A N/A self assertRaisesRegex SystemExit 1 N/A N/A N/A N/A deploy_subcommand _binaries_tar python main.py deploy ~/.clusterrunner/dist N/A test_binaries_doesnt_raise_exception_if_running_from_bin N/A N/A self N/A N/A N/A N/A N/A N/A self patch os.path.isfile return_value True N/A deploy_subcommand N/A DeploySubcommand N/A N/A N/A deploy_subcommand _binaries_tar clusterrunner ~/.clusterrunner/dist N/A test_deploy_binaries_and_conf_deploys_both_conf_and_binary_for_remote_host N/A N/A self N/A N/A N/A mock_DeployTarget N/A N/A self patch app.subcommands.deploy_subcommand.DeployTarget N/A mock_DeployTarget_instance N/A mock_DeployTarget return_value N/A deploy_subcommand N/A DeploySubcommand N/A N/A N/A deploy_subcommand _deploy_binaries_and_conf remote_host username exec /path/to/exec /path/to/conf N/A N/A N/A self assertTrue N/A N/A mock_DeployTarget_instance deploy_binary called N/A N/A N/A self assertTrue N/A N/A mock_DeployTarget_instance deploy_conf called N/A test_deploy_binaries_and_conf_behaves_properly_if_conf_or_binary_is_in_use_on_localhost N/A N/A self current_executable in_use_conf_path expect_deploy_conf expect_deploy_binary N/A N/A N/A mock_DeployTarget N/A N/A self patch app.subcommands.deploy_subcommand.DeployTarget N/A mock_DeployTarget_instance N/A mock_DeployTarget return_value N/A deploy_subcommand N/A DeploySubcommand N/A N/A N/A deploy_subcommand _deploy_binaries_and_conf localhost username current_executable N/A join N/A expanduser ~ .clusterrunner clusterrunner.tgz in_use_conf_path N/A N/A N/A self assertEqual expect_deploy_binary N/A N/A mock_DeployTarget_instance deploy_binary called N/A N/A N/A self assertEqual expect_deploy_conf N/A N/A mock_DeployTarget_instance deploy_conf called N/A N/A genty_dataset same_conf_path_different_exe_path N/A genty_args current_executable N/A join N/A expanduser ~ .clusterrunner dist clusterrunner2 in_use_conf_path N/A join N/A expanduser ~ .clusterrunner clusterrunner.conf expect_deploy_conf False expect_deploy_binary True same_conf_path_same_exe_path N/A genty_args current_executable N/A join N/A expanduser ~ .clusterrunner dist clusterrunner in_use_conf_path N/A join N/A expanduser ~ .clusterrunner clusterrunner.conf expect_deploy_conf False expect_deploy_binary False different_conf_path_same_exe_path N/A genty_args current_executable N/A join N/A expanduser ~ .clusterrunner dist clusterrunner in_use_conf_path N/A join N/A expanduser ~ .clusterrunner clusterrunner2.conf expect_deploy_conf True expect_deploy_binary False different_conf_path_different_exe_path N/A genty_args current_executable N/A join N/A expanduser ~ .clusterrunner dist clusterrunner2 in_use_conf_path N/A join N/A expanduser ~ .clusterrunner clusterrunner2.conf expect_deploy_conf True expect_deploy_binary True test_non_registered_slaves_returns_empty_list_if_all_registered N/A N/A self N/A N/A N/A registered_hosts N/A host_1 host_2 N/A slaves_to_validate N/A host_1 host_2 get_host_id N/A N/A N/A args kwargs N/A N/A N/A N/A args N/A 0 host_1 N/A N/A host_id_1 N/A N/A N/A N/A args N/A 0 host_2 N/A N/A host_id_2 N/A N/A blah N/A N/A old_host_id N/A Network get_host_id N/A N/A Network get_host_id get_host_id N/A deploy_subcommand N/A DeploySubcommand N/A non_registered N/A N/A deploy_subcommand _non_registered_slaves registered_hosts slaves_to_validate N/A N/A Network get_host_id old_host_id N/A N/A N/A self assertEquals 0 N/A len non_registered N/A test_non_registered_slaves_returns_non_registered_slaves N/A N/A self N/A N/A N/A registered_hosts N/A host_1 host_3 N/A slaves_to_validate N/A host_1 host_2 host_3 host_4 get_host_id N/A N/A N/A args kwargs N/A N/A N/A N/A args N/A 0 host_1 N/A N/A host_id_1 N/A N/A N/A N/A args N/A 0 host_2 N/A N/A host_id_2 N/A N/A N/A N/A args N/A 0 host_3 N/A N/A host_id_3 N/A N/A N/A N/A args N/A 0 host_4 N/A N/A host_id_4 N/A N/A blah N/A N/A N/A N/A self patch app.util.network.Network.get_host_id new get_host_id N/A deploy_subcommand N/A DeploySubcommand N/A non_registered N/A N/A deploy_subcommand _non_registered_slaves registered_hosts slaves_to_validate N/A N/A N/A self assertEquals N/A len non_registered 2 N/A N/A N/A self assertTrue N/A host_2 non_registered N/A N/A N/A self assertTrue N/A host_4 non_registered N/A test_non_registered_slaves_returns_empty_list_with_slaves_with_same_host_ids_but_different_names N/A N/A self N/A N/A N/A registered_hosts N/A host_1_alias host_2_alias N/A slaves_to_validate N/A host_1 host_2 get_host_id N/A N/A N/A args kwargs N/A N/A N/A N/A args N/A 0 host_1 N/A N/A host_id_1 N/A N/A N/A N/A args N/A 0 host_2 N/A N/A host_id_2 N/A N/A N/A N/A args N/A 0 host_1_alias N/A N/A host_id_1 N/A N/A N/A N/A args N/A 0 host_2_alias N/A N/A host_id_2 N/A N/A blah N/A N/A N/A N/A self patch app.util.network.Network.get_host_id new get_host_id N/A deploy_subcommand N/A DeploySubcommand N/A non_registered N/A N/A deploy_subcommand _non_registered_slaves registered_hosts slaves_to_validate N/A N/A N/A self assertEquals 0 N/A len non_registered N/A test_validate_deployment_checks_each_slave_is_connected N/A N/A self slaves_to_validate connected_slaves host_name_to_uid is_valid N/A N/A get_host_id N/A N/A host N/A N/A N/A N/A host host_name_to_uid N/A N/A N/A host_name_to_uid N/A host N/A N/A N/A str N/A N/A uuid uuid4 N/A N/A N/A N/A self patch app.util.network.Network.get_host_id new get_host_id N/A deploy_subcommand N/A DeploySubcommand N/A N/A deploy_subcommand _registered_slave_hostnames N/A MagicMock return_value connected_slaves N/A N/A deploy_subcommand _SLAVE_REGISTRY_TIMEOUT_SEC 1 N/A N/A deploy_subcommand _non_registered_slaves N/A MagicMock N/A validate N/A partial N/A deploy_subcommand _validate_successful_deployment master_host_url slaves_to_validate N/A N/A is_valid N/A N/A N/A N/A self assertRaises SystemExit N/A N/A N/A validate N/A N/A N/A validate N/A N/A genty_dataset valid_deployment N/A genty_args slaves_to_validate N/A slave_host_1 slave_host_2 connected_slaves N/A slave_host_1 slave_host_2 host_name_to_uid N/A slave_host_1 slave_host_2 host_1_id host_2_id is_valid True host_mismatch N/A genty_args slaves_to_validate N/A slave_host_1 slave_host_2 connected_slaves N/A slave_host_3 slave_host_2 host_name_to_uid N/A slave_host_2 host_2_id is_valid False number_of_slaves_not_match N/A genty_args slaves_to_validate N/A slave_host_1 connected_slaves N/A slave_host_1 slave_host_2 host_name_to_uid N/A slave_host_1 host_1_id is_valid False valid_deployment_different_host_names_with_same_host_id N/A genty_args slaves_to_validate N/A slave_host_1 slave_host_2 connected_slaves N/A slave_host_1_alias slave_host_2 host_name_to_uid N/A slave_host_1 slave_host_1_alias slave_host_2 host_1_id host_1_id host_2_id is_valid True N/A genty