Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias Assign NameStore ListLoad Str Assign NameStore Dict Str Str Str Str FunctionDef arguments args defaults body Return Str decorator_list Call NameLoad Str FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str ListLoad ListLoad ListLoad ListLoad ListLoad ListLoad ListLoad For NameStore NameLoad body If CompareIn Str NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad orelse Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad For NameStore SubscriptLoad NameLoad Index NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad If Call NameLoad Call NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad If CompareIn NameLoad SubscriptLoad NameLoad Index NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareNotIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad If CompareNotIn NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad orelse Assign NameStore BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str If Call AttributeLoad NameLoad attr Str NameLoad body Return Call SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad orelse Return Call SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args defaults body Expr Str Return Call SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Return Call SubscriptLoad NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args defaults kwarg body Expr Str Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore Dict Str Str ListLoad Dict For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Return Dict Str Str Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareLt NameLoad Num body Return TupleLoad NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Return TupleLoad BinOpAdd Call NameLoad BinOpSub NameLoad Num Call NameLoad BinOpSub NameLoad Num BinOpSub Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt NameLoad Num body Return NameLoad Return BinOpAdd Call NameLoad BinOpSub NameLoad Num Call NameLoad BinOpSub NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad While CompareNotEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad Num body If CompareEq BinOpMod NameLoad Num Num body Assign NameStore BinOpDiv NameLoad Num orelse Assign NameStore BinOpAdd BinOpMult NameLoad Num Num Return TupleLoad NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad body Continue Assign NameStore NameLoad Break If UnaryOpNot NameLoad body Return Str Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue For NameStore Call AttributeLoad NameLoad attr NameLoad body If Call AttributeLoad NameLoad attr Str body Continue Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad Str attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Return Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str TryExcept body Return Call SubscriptLoad NameLoad Index NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return NameLoad decorator_list
N/A N/A 
Module for running arbitrary tests
 __future__ absolute_import N/A os N/A sys N/A time N/A traceback N/A random N/A salt N/A salt.utils N/A salt.version N/A salt.loader N/A salt.ext.six six salt.utils.decorators depends N/A __proxyenabled__ N/A * N/A __func_alias__ N/A true_ false_ true false missing_func N/A N/A N/A N/A N/A foo N/A N/A depends non_existantmodulename attr_call N/A N/A N/A N/A N/A 
    Call grains.items via the attribute

    CLI Example::

    .. code-block:: bash

        salt '*' test.attr_call
     N/A N/A N/A N/A __salt__ grains items N/A module_report N/A N/A N/A N/A N/A 
    Return a dict containing all of the execution modules with a report on
    the overall availability via different references

    CLI Example::

    .. code-block:: bash

        salt '*' test.module_report
     N/A ret N/A functions function_attrs function_subs modules module_attrs missing_attrs missing_subs N/A N/A N/A N/A N/A N/A N/A N/A ref __salt__ N/A N/A N/A . ref N/A N/A N/A N/A N/A ret N/A functions append ref N/A N/A N/A N/A N/A ret N/A modules append ref N/A N/A hasattr __salt__ ref N/A N/A N/A N/A N/A ret N/A module_attrs append ref N/A func N/A __salt__ N/A ref N/A N/A full N/A N/A {0}.{1} format ref func N/A N/A hasattr N/A getattr __salt__ ref func N/A N/A N/A N/A N/A ret N/A function_attrs append full N/A N/A func N/A __salt__ N/A ref N/A N/A N/A N/A N/A ret N/A function_subs append full N/A func N/A ret N/A functions N/A N/A N/A func N/A ret N/A function_attrs N/A N/A N/A N/A N/A ret N/A missing_attrs append func N/A N/A func N/A ret N/A function_subs N/A N/A N/A N/A N/A ret N/A missing_subs append func N/A ret N/A echo N/A N/A text N/A N/A N/A 
    Return a string - used for testing the connection

    CLI Example:

    .. code-block:: bash

        salt '*' test.echo 'foo bar baz quo qux'
     N/A text N/A ping N/A N/A N/A N/A N/A 
    Used to make sure the minion is up and responding. Not an ICMP ping.

    Returns ``True``.

    CLI Example:

    .. code-block:: bash

        salt '*' test.ping
     N/A N/A N/A N/A N/A salt utils is_proxy N/A N/A True N/A N/A ping_cmd N/A N/A N/A __opts__ N/A proxy N/A proxytype .ping N/A N/A N/A __opts__ get add_proxymodule_to_opts False N/A N/A N/A N/A N/A __opts__ N/A proxymodule N/A ping_cmd N/A N/A N/A N/A __proxy__ N/A ping_cmd N/A sleep N/A N/A length N/A N/A N/A 
    Instruct the minion to initiate a process that will sleep for a given
    period of time.

    CLI Example:

    .. code-block:: bash

        salt '*' test.sleep 20
     N/A N/A N/A time sleep N/A int length N/A True N/A rand_sleep N/A N/A max N/A 60 N/A N/A 
    Sleep for a random number of seconds, used to test long-running commands
    and minions returning at differing intervals

    CLI Example:

    .. code-block:: bash

        salt '*' test.rand_sleep 60
     N/A N/A N/A time sleep N/A N/A random randint 0 max N/A True N/A version N/A N/A N/A N/A N/A 
    Return the version of salt on the minion

    CLI Example:

    .. code-block:: bash

        salt '*' test.version
     N/A N/A N/A salt version __version__ N/A versions_information N/A N/A N/A N/A N/A 
    Report the versions of dependent and system software

    CLI Example:

    .. code-block:: bash

        salt '*' test.versions_information
     N/A N/A N/A N/A salt version versions_information N/A versions_report N/A N/A N/A N/A N/A 
    Returns versions of components used by salt

    CLI Example:

    .. code-block:: bash

        salt '*' test.versions_report
     N/A N/A N/A join N/A N/A N/A salt version versions_report N/A N/A versions N/A N/A N/A salt utils alias_function versions_report versions conf_test N/A N/A N/A N/A N/A 
    Return the value for test.foo in the minion configuration file, or return
    the default value

    CLI Example:

    .. code-block:: bash

        salt '*' test.conf_test
     N/A N/A N/A __salt__ N/A config.option test.foo N/A get_opts N/A N/A N/A N/A N/A 
    Return the configuration options passed to this minion

    CLI Example:

    .. code-block:: bash

        salt '*' test.get_opts
     N/A __opts__ N/A cross_test N/A N/A func args N/A None N/A N/A 
    Execute a minion function via the __salt__ object in the test
    module, used to verify that the minion functions can be called
    via the __salt__ module.

    CLI Example:

    .. code-block:: bash

        salt '*' test.cross_test file.gid_to_group 0
     N/A N/A args None N/A N/A args N/A N/A N/A N/A __salt__ N/A func args N/A kwarg N/A N/A N/A kwargs N/A N/A 
    Print out the data passed into the function ``**kwargs``, this is used to
    both test the publication data and cli kwarg passing, but also to display
    the information available within the publication data.

    CLI Example:

    .. code-block:: bash

        salt '*' test.kwarg num=1 txt="two" env='{a: 1, b: "hello"}'
     N/A kwargs N/A arg N/A N/A N/A args kwargs N/A N/A 
    Print out the data passed into the function ``*args`` and ```kwargs``, this
    is used to both test the publication data and cli argument passing, but
    also to display the information available within the publication data.
    Returns {"args": args, "kwargs": kwargs}.

    CLI Example:

    .. code-block:: bash

        salt '*' test.arg 1 "two" 3.1 txt="hello" wow='{a: 1, b: "hello"}'
     N/A N/A args kwargs args kwargs N/A arg_type N/A N/A N/A args kwargs N/A N/A 
    Print out the types of the args and kwargs. This is used to test the types
    of the args and kwargs passed down to the minion

    CLI Example:

    .. code-block:: bash

           salt '*' test.arg_type 1 'int'
     N/A ret N/A args kwargs N/A N/A N/A argument args N/A N/A N/A N/A N/A ret N/A args append N/A str N/A type argument N/A N/A key val N/A N/A six iteritems kwargs N/A N/A N/A N/A ret N/A kwargs N/A key N/A str N/A type val N/A ret N/A arg_repr N/A N/A N/A args kwargs N/A N/A 
    Print out the data passed into the function ``*args`` and ```kwargs``, this
    is used to both test the publication data and cli argument passing, but
    also to display the information available within the publication data.
    Returns {"args": repr(args), "kwargs": repr(kwargs)}.

    CLI Example:

    .. code-block:: bash

        salt '*' test.arg_repr 1 "two" 3.1 txt="hello" wow='{a: 1, b: "hello"}'
     N/A N/A args kwargs N/A repr args N/A repr kwargs N/A fib N/A N/A num N/A N/A N/A 
    Return the num-th Fibonacci number, and the time it took to compute in
    seconds. Used for performance tests.

    This function is designed to have terrible performance.

    CLI Example:

    .. code-block:: bash

        salt '*' test.fib 3
     N/A num N/A int num N/A start N/A N/A time time N/A N/A num 2 N/A N/A N/A num N/A N/A N/A time time start N/A N/A N/A N/A _fib N/A num 1 N/A _fib N/A num 2 N/A N/A N/A time time start N/A _fib N/A N/A num N/A N/A N/A 
    Helper method for test.fib, doesn't calculate the time.
     N/A N/A num 2 N/A N/A num N/A N/A N/A _fib N/A num 1 N/A _fib N/A num 2 N/A collatz N/A N/A start N/A N/A N/A 
    Execute the collatz conjecture from the passed starting number,
    returns the sequence and the time it took to compute. Used for
    performance tests.

    CLI Example:

    .. code-block:: bash

        salt '*' test.collatz 3
     N/A start N/A int start N/A begin N/A N/A time time N/A steps N/A N/A N/A start 1 N/A N/A N/A N/A steps append start N/A N/A start 1 N/A N/A N/A N/A start 2 0 N/A N/A start N/A start 2 N/A N/A start N/A N/A start 3 1 N/A N/A steps N/A N/A N/A time time begin N/A outputter N/A N/A data N/A N/A N/A 
    Test the outputter, pass in data to return

    CLI Example:

    .. code-block:: bash

        salt '*' test.outputter foobar
     N/A data N/A retcode N/A N/A code N/A 42 N/A N/A 
    Test that the returncode system is functioning correctly

    CLI Example:

    .. code-block:: bash

        salt '*' test.retcode 42
     N/A N/A __context__ N/A retcode code N/A True N/A provider N/A N/A module N/A N/A N/A 
    Pass in a function name to discover what provider is being used

    CLI Example:

    .. code-block:: bash

        salt '*' test.provider service
     N/A func N/A key __salt__ N/A N/A N/A N/A N/A key startswith N/A N/A {0}. format module N/A N/A N/A func key N/A N/A N/A func N/A N/A N/A pfn N/A N/A N/A sys modules N/A N/A N/A __salt__ N/A func __module__ __file__ N/A pfn N/A N/A N/A os path basename pfn N/A N/A pfn N/A N/A N/A pfn rindex . N/A providers N/A N/A N/A N/A N/A 
    Return a dict of the provider names and the files that provided them

    CLI Example:

    .. code-block:: bash

        salt '*' test.providers
     N/A ret N/A N/A funcname __salt__ N/A N/A modname N/A N/A N/A funcname split . N/A 0 N/A N/A modname ret N/A N/A N/A ret N/A N/A provider modname modname N/A ret N/A not_loaded N/A N/A N/A N/A N/A 
    List the modules that were not loaded by the salt loader system

    CLI Example:

    .. code-block:: bash

        salt '*' test.not_loaded
     N/A prov N/A providers N/A ret N/A set N/A mod_dir N/A N/A N/A salt loader _module_dirs __opts__ modules module N/A N/A N/A N/A N/A N/A os path isabs mod_dir N/A N/A N/A N/A N/A N/A N/A os path isdir mod_dir N/A N/A N/A fn_ N/A N/A os listdir mod_dir N/A N/A N/A N/A fn_ startswith _ N/A N/A N/A name N/A N/A N/A fn_ split . N/A 0 N/A N/A name prov N/A N/A N/A N/A ret add name N/A N/A sorted ret N/A opts_pkg N/A N/A N/A N/A N/A 
    Return an opts package with the grains and opts for this minion.
    This is primarily used to create the options used for master side
    state compiling routines

    CLI Example:

    .. code-block:: bash

        salt '*' test.opts_pkg
     N/A ret N/A N/A N/A N/A ret update __opts__ N/A N/A ret N/A grains __grains__ N/A ret N/A rand_str N/A N/A size hash_type N/A 9999999999 None N/A N/A 
    Return a random string

        size
            size of the string to generate
        hash_type
            hash type to use

            .. versionadded:: 2015.5.2

    CLI Example:

    .. code-block:: bash

        salt '*' test.rand_str
     N/A N/A hash_type N/A N/A hash_type N/A N/A __opts__ get hash_type md5 N/A N/A N/A N/A salt utils rand_str hash_type hash_type size size N/A exception N/A N/A message N/A Test Exception N/A N/A 
    Raise an exception

    Optionally provide an error message or output the full stack.

    CLI Example:

    .. code-block:: bash

        salt '*' test.exception 'Oh noes!'
     N/A N/A Exception message N/A stack N/A N/A N/A N/A N/A 
    Return the current stack trace

    CLI Example:

    .. code-block:: bash

        salt '*' test.stack
     N/A N/A N/A join N/A N/A traceback format_stack N/A tty N/A N/A N/A args kwargs N/A N/A 
    Deprecated! Moved to cmdmod.

    CLI Example:

    .. code-block:: bash

        salt '*' test.tty tty0 'This is a test'
        salt '*' test.tty pts3 'This is a test'
     N/A ERROR: This function has been moved to cmd.tty N/A try_ N/A N/A module return_try_exception N/A False kwargs N/A N/A 
    Try to run a module command. On an exception return None.
    If `return_try_exception` is set True return the exception.
    This can be helpful in templates where running a module might fail as expected.

    CLI Example:

    .. code-block:: bash

        <pre>
        {% for i in range(0,230) %}
            {{ salt['test.try'](module='ipmi.get_users', bmc_host='172.2.2.'+i)|yaml(False) }}
        {% endfor %}
        </pre>
     N/A N/A N/A N/A N/A __salt__ N/A module kwargs N/A N/A N/A Exception N/A e N/A N/A return_try_exception N/A N/A e N/A None N/A assertion N/A N/A assertion N/A N/A N/A 
    Assert the given argument

    CLI Example:

    .. code-block:: bash

        salt '*' test.assert False
     N/A assertion N/A true_ N/A N/A N/A N/A N/A 
    Always return True

    CLI Example:

    .. code-block:: bash

        salt '*' test.true
     N/A True N/A false_ N/A N/A N/A N/A N/A 
    Always return False

    CLI Example:

    .. code-block:: bash

        salt '*' test.false
     N/A False N/A