Module ImportFrom alias Import alias Import alias ImportFrom alias Expr Call NameLoad Str Import alias Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad TryFinally body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad TryFinally body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad
N/A __future__ absolute_import N/A os N/A textwrap salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ N/A integration N/A salt.utils N/A STATE_DIR N/A N/A N/A os path join N/A integration FILES file base EnabledTest N/A N/A integration ModuleCase N/A N/A 
    validate the use of shell processing for cmd.run on the salt command line
    and in templating
     N/A cmd printf '%s
' first second third | wc -l ; export SALTY_VARIABLE='saltines' && echo $SALTY_VARIABLE ; echo duh &> /dev/null test_shell_default_enabled N/A N/A self N/A N/A N/A 
        ensure that python_shell defaults to True for cmd.run
         N/A enabled_ret 3
saltines N/A ret N/A N/A self run_function cmd.run N/A N/A self cmd N/A N/A N/A self assertEqual N/A N/A ret strip enabled_ret N/A test_shell_disabled N/A N/A self N/A N/A N/A 
        test shell disabled output for cmd.run
         N/A disabled_ret first
second
third
|
wc
-l
;
export
SALTY_VARIABLE=saltines
&&
echo
$SALTY_VARIABLE
;
echo
duh
&>
/dev/null N/A ret N/A N/A self run_function cmd.run N/A N/A self cmd python_shell False N/A N/A N/A self assertEqual ret disabled_ret N/A test_template_default_enabled N/A N/A self N/A N/A N/A 
        ensure that python_shell defaults to True for templates
         N/A state_name template_shell_enabled N/A state_filename N/A state_name .sls N/A state_file N/A N/A N/A os path join STATE_DIR state_filename N/A enabled_ret 3 saltines N/A ret_key N/A N/A test_|-shell_enabled_|-{0}_|-configurable_test_state format enabled_ret N/A N/A N/A N/A N/A N/A N/A N/A salt utils fopen state_file w write N/A N/A textwrap dedent N/A N/A                 {{% set shell_enabled = salt['cmd.run']("{0}").strip() %}}

                shell_enabled:
                  test.configurable_test_state:
                    - name: '{{{{ shell_enabled }}}}'
                 format N/A self cmd N/A ret N/A N/A self run_function state.sls N/A state_name N/A N/A N/A self assertEqual N/A N/A ret N/A ret_key N/A name enabled_ret N/A N/A N/A N/A os remove state_file N/A test_template_disabled N/A N/A self N/A N/A N/A 
        test shell disabled output for templates
         N/A state_name template_shell_disabled N/A state_filename N/A state_name .sls N/A state_file N/A N/A N/A os path join STATE_DIR state_filename N/A disabled_ret first second third | wc -l ; export SALTY_VARIABLE=saltines && echo $SALTY_VARIABLE ; echo duh &> /dev/null N/A ret_key N/A N/A test_|-shell_enabled_|-{0}_|-configurable_test_state format disabled_ret N/A N/A N/A N/A N/A N/A N/A N/A salt utils fopen state_file w write N/A N/A textwrap dedent N/A N/A                 {{% set shell_disabled = salt['cmd.run']("{0}", python_shell=False) %}}

                shell_enabled:
                  test.configurable_test_state:
                    - name: '{{{{ shell_disabled }}}}'
                 format N/A self cmd N/A ret N/A N/A self run_function state.sls N/A state_name N/A N/A N/A self assertEqual N/A N/A ret N/A ret_key N/A name disabled_ret N/A N/A N/A N/A os remove state_file N/A N/A N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests EnabledTest