Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias Expr Call NameLoad Str Import alias Import alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad keyword ListLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str ListLoad Str Str ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str ListLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str ListLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str ListLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Dict Str Dict Str ListLoad Str Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str ListLoad Str Str Str Assign AttributeStore NameLoad attr Dict Str Dict Str ListLoad Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Call NameLoad keyword ListLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad TupleLoad Str ListLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str ListLoad Str Str Str With Call NameLoad Str Call NameLoad keyword ListLoad Str Str Str body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad TupleLoad Str ListLoad Dict TupleLoad Str ListLoad Dict TupleLoad Str ListLoad Dict decorator_list decorator_list If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A __future__ absolute_import N/A os N/A os.path N/A tempfile salttesting TestCase salttesting.mock patch MagicMock salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../ N/A integration N/A salt.config salt.state HighState salt.utils.odict OrderedDict DefaultOrderedDict HighStateTestCase N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self root_dir N/A N/A tempfile mkdtemp dir N/A integration TMP N/A N/A self state_tree_dir N/A N/A N/A os path join N/A self root_dir state_tree N/A N/A self cache_dir N/A N/A N/A os path join N/A self root_dir cachedir N/A N/A N/A N/A N/A os path isdir N/A self root_dir N/A N/A N/A N/A os makedirs N/A self root_dir N/A N/A N/A N/A N/A os path isdir N/A self state_tree_dir N/A N/A N/A N/A os makedirs N/A self state_tree_dir N/A N/A N/A N/A N/A os path isdir N/A self cache_dir N/A N/A N/A N/A os makedirs N/A self cache_dir N/A N/A self config N/A N/A N/A salt config minion_config None N/A N/A N/A self config N/A root_dir N/A self root_dir N/A N/A N/A self config N/A state_events False N/A N/A N/A self config N/A id match N/A N/A N/A self config N/A file_client local N/A N/A N/A self config N/A file_roots N/A dict base N/A N/A self state_tree_dir N/A N/A N/A self config N/A cachedir N/A self cache_dir N/A N/A N/A self config N/A test False N/A N/A self highstate N/A HighState N/A self config N/A N/A N/A N/A self highstate push_active N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self highstate pop_active N/A test_top_matches_with_list N/A N/A self N/A N/A N/A top N/A env N/A match nomatch N/A state1 state2 N/A state3 N/A matches N/A N/A N/A self highstate top_matches top N/A N/A N/A self assertEqual matches N/A env N/A state1 state2 N/A test_top_matches_with_string N/A N/A self N/A N/A N/A top N/A env N/A match nomatch state1 state2 N/A matches N/A N/A N/A self highstate top_matches top N/A N/A N/A self assertEqual matches N/A env N/A state1 N/A test_matches_whitelist N/A N/A self N/A N/A N/A matches N/A env N/A state1 state2 state3 N/A matches N/A N/A N/A self highstate matches_whitelist matches N/A state2 N/A N/A N/A self assertEqual matches N/A env N/A state2 N/A test_matches_whitelist_with_string N/A N/A self N/A N/A N/A matches N/A env N/A state1 state2 state3 N/A matches N/A N/A N/A self highstate matches_whitelist matches state2,state3 N/A N/A N/A self assertEqual matches N/A env N/A state2 state3 N/A N/A TopFileMergeTestCase N/A TestCase N/A N/A 
    Test various merge strategies for multiple tops files collected from
    multiple environments. Various options correspond to merge strategies
    which can be set by the user with the top_file_merging_strategy config
    option.

    Refs #12483
     setUp N/A N/A self N/A N/A N/A 
        Create multiple top files for use in each test
         N/A N/A self env1 N/A base N/A * N/A e1_a e1_b e1_c N/A N/A self env2 N/A base N/A * N/A e2_a e2_b e2_c N/A N/A self env3 N/A base N/A * N/A e3_a e3_b e3_c N/A N/A self config N/A N/A self _make_default_config N/A N/A self highstate N/A HighState N/A self config N/A _make_default_config N/A N/A self N/A N/A N/A config N/A N/A N/A salt config minion_config None N/A root_dir N/A N/A tempfile mkdtemp dir N/A integration TMP N/A state_tree_dir N/A N/A N/A os path join root_dir state_tree N/A cache_dir N/A N/A N/A os path join root_dir cachedir N/A N/A config N/A root_dir root_dir N/A N/A config N/A state_events False N/A N/A config N/A id match N/A N/A config N/A file_client local N/A N/A config N/A file_roots N/A dict base N/A state_tree_dir N/A N/A config N/A cachedir cache_dir N/A N/A config N/A test False N/A config N/A _get_tops N/A N/A self N/A N/A N/A 
        A test helper to emulate HighState.get_tops() but just to construct
        an appropriate data structure for top files from multiple environments
         N/A tops N/A DefaultOrderedDict list N/A N/A N/A N/A tops N/A a append N/A self env1 N/A N/A N/A N/A tops N/A b append N/A self env2 N/A N/A N/A N/A tops N/A c append N/A self env3 N/A tops N/A test_basic_merge N/A N/A self N/A N/A N/A 
        This is the default approach for Salt. Merge the top files with the
        earlier appends taking precendence. Since Salt does the appends
        lexecographically, this is effectively a test against the default
        lexecographical behaviour.
         N/A merged_tops N/A N/A N/A self highstate merge_tops N/A N/A self _get_tops N/A expected_merge N/A DefaultOrderedDict OrderedDict N/A N/A N/A expected_merge N/A base N/A * N/A e1_c e1_b e1_a N/A N/A N/A self assertEqual merged_tops expected_merge N/A test_merge_strategy_same N/A N/A self N/A N/A N/A 
        Test to see if the top file that corresponds
        to the requested env is the one that is used
        by the state system
         N/A config N/A N/A self _make_default_config N/A N/A config N/A top_file_merging_strategy same N/A N/A config N/A environment b N/A highstate N/A HighState config N/A ret N/A N/A highstate get_tops N/A N/A N/A self assertEqual ret N/A OrderedDict N/A N/A b N/A N/A N/A test_ordered_merge N/A N/A self N/A N/A N/A 
        Test to see if the merger respects environment
        ordering
         N/A config N/A N/A self _make_default_config N/A N/A config N/A top_file_merging_strategy merge N/A N/A config N/A env_order N/A b a c N/A N/A patch salt.fileclient.FSClient.envs N/A MagicMock return_value N/A a b c N/A N/A highstate N/A HighState config N/A ret N/A N/A highstate get_tops N/A N/A N/A self assertEqual ret N/A OrderedDict N/A N/A a N/A N/A N/A c N/A N/A N/A b N/A N/A N/A N/A N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests HighStateTestCase needs_daemon False