Module Import alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr NameLoad Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assert CompareIn BinOpMod Str AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Dict Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str keyword Str Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Assign NameStore Dict Str Str Assign NameStore Dict Str Str Assign NameStore Dict Str Str Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Call NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpMod Str NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpMod Str NameLoad BinOpMod Str NameLoad decorator_list decorator_list
N/A N/A mock pytest raises pytest yield_fixture N/A paasta_tools.cli.cmds.fsm fsm paasta_tools.cli.fsm.questions _yamlize paasta_tools.cli.fsm.service SrvReaderWriter paasta_tools.utils SystemPaastaConfig ValidateOptionsTest N/A N/A mock_exists N/A N/A self N/A N/A N/A N/A N/A mock patch paasta_tools.cli.cmds.fsm.exists mock_exists N/A N/A N/A mock_exists return_value True N/A N/A mock_exists N/A yield_fixture test_yelpsoa_config_root_exists N/A N/A self mock_exists N/A N/A N/A parser N/A N/A mock Mock N/A args N/A N/A mock Mock N/A N/A args yelpsoa_config_root non-existent thing N/A N/A mock_exists return_value False N/A N/A raises SystemExit err N/A N/A N/A N/A fsm validate_args parser args N/A N/A N/A I'd Really Rather You Didn't Use A Non-Existent --yelpsoa-config-rootLike %s N/A args yelpsoa_config_root err N/A N/A TestGetPaastaConfig N/A N/A mock_get_srvname N/A N/A self N/A N/A N/A N/A N/A mock patch paasta_tools.cli.cmds.fsm.get_srvname autospec True mock_get_srvname N/A N/A N/A mock_get_srvname N/A yield_fixture mock_get_service_stanza N/A N/A self N/A N/A N/A N/A N/A mock patch paasta_tools.cli.cmds.fsm.get_service_stanza autospec True mock_get_service_stanza N/A N/A N/A mock_get_service_stanza N/A yield_fixture mock_get_smartstack_stanza N/A N/A self N/A N/A N/A N/A N/A mock patch paasta_tools.cli.cmds.fsm.get_smartstack_stanza autospec True mock_get_smartstack_stanza N/A N/A N/A mock_get_smartstack_stanza N/A yield_fixture mock_get_marathon_stanza N/A N/A self N/A N/A N/A N/A N/A mock patch paasta_tools.cli.cmds.fsm.get_marathon_stanza autospec True mock_get_marathon_stanza N/A N/A N/A mock_get_marathon_stanza N/A yield_fixture mock_get_monitoring_stanza N/A N/A self N/A N/A N/A N/A N/A mock patch paasta_tools.cli.cmds.fsm.get_monitoring_stanza autospec True mock_get_monitoring_stanza N/A N/A N/A mock_get_monitoring_stanza N/A yield_fixture mock_get_paasta_config N/A N/A self N/A N/A N/A N/A N/A mock patch paasta_tools.cli.cmds.fsm.load_system_paasta_config autospec True mock_get_paasta_config N/A N/A N/A mock_get_paasta_config N/A yield_fixture test_everything_specified N/A N/A self mock_get_srvname mock_get_service_stanza mock_get_smartstack_stanza mock_get_marathon_stanza mock_get_monitoring_stanza mock_get_paasta_config N/A N/A N/A A sort of happy path test because we don't care about the logic in
        the individual get_* methods, just that all of them get called as
        expected.
         N/A yelpsoa_config_root fake_yelpsoa_config_root N/A srvname services/fake_srvname N/A auto UNUSED N/A port 12345 N/A team america world police N/A description a thing N/A external_link http://bla N/A N/A N/A fsm get_paasta_config yelpsoa_config_root srvname auto port team description external_link N/A N/A N/A mock_get_srvname assert_called_once_with srvname auto N/A N/A N/A mock_get_service_stanza assert_called_once_with description external_link auto N/A N/A N/A mock_get_smartstack_stanza assert_called_once_with yelpsoa_config_root auto port N/A N/A N/A mock_get_marathon_stanza assert_called_once_with N/A N/A N/A mock_get_monitoring_stanza assert_called_once_with auto team N/A N/A N/A mock_get_paasta_config assert_called_once_with N/A N/A TestWritePaastaConfig N/A N/A mock_srv N/A N/A self N/A N/A N/A mock_srv N/A N/A mock Mock N/A N/A mock_srv io N/A N/A mock Mock spec_set SrvReaderWriter N/A N/A mock_srv N/A yield_fixture test_paasta_config N/A N/A self N/A N/A N/A test_paasta_config N/A SystemPaastaConfig config N/A fsm_cluster_map fsm_deploy_pipeline N/A pnw-stagea norcal-stageb norcal-devb norcal-devc norcal-prod nova-prod STAGE STAGE DEV DEV PROD PROD N/A otto dude directory /fake/dir N/A N/A test_paasta_config N/A yield_fixture test N/A N/A self mock_srv test_paasta_config N/A N/A N/A service_stanza N/A foo bar N/A smartstack_stanza N/A stack smrt N/A monitoring_stanza N/A team homer N/A deploy_stanza N/A otto dude N/A marathon_stanza N/A N/A DEV 2015-04-20 N/A STAGE 2015-04-20 N/A PROD 2015-04-20 N/A N/A N/A fsm write_paasta_config mock_srv service_stanza smartstack_stanza monitoring_stanza N/A N/A test_paasta_config get_fsm_deploy_pipeline marathon_stanza N/A N/A test_paasta_config get_fsm_cluster_map N/A N/A N/A N/A N/A mock_srv io write_file assert_any_call smartstack.yaml N/A _yamlize smartstack_stanza N/A N/A N/A N/A N/A mock_srv io write_file assert_any_call service.yaml N/A _yamlize service_stanza N/A N/A N/A N/A N/A mock_srv io write_file assert_any_call monitoring.yaml N/A _yamlize monitoring_stanza N/A N/A N/A N/A N/A mock_srv io write_file assert_any_call deploy.yaml N/A _yamlize deploy_stanza N/A N/A filename stanza marathon_stanza N/A N/A N/A N/A N/A N/A mock_srv io write_file assert_any_call N/A marathon-%s.yaml filename N/A _yamlize stanza N/A N/A clustername filename N/A N/A N/A N/A test_paasta_config get_fsm_cluster_map items N/A N/A N/A N/A N/A N/A mock_srv io symlink_file_relative assert_any_call N/A marathon-%s.yaml filename N/A marathon-%s.yaml clustername N/A N/A