HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/__pycache__/test.cpython-310.pyc
o

�N�g��@sLdZddlZdd�Zdd�Zddd	�Zd
d�Zdd
d�Zdd�Zdd�ZdS)zM
This runner is used only for test purposes and serves no production purpose
�NcOs dd�|��D�}||d�}|S)z�
    Output the given args and kwargs

    Kwargs will be filtered for 'private' keynames.

    CLI Example:

    .. code-block:: bash

        salt-run test.arg foo bar=baz
    cSs i|]\}}|�d�s||�qS)�__)�
startswith)�.0�k�v�r�E/opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/test.py�
<dictcomp>s zarg.<locals>.<dictcomp>��args�kwargs)�items�rr�retrrr�args
�rcOs||d�}|S)z
    Output the given args and kwargs

    CLI Example:

    .. code-block:: bash

        salt-run test.arg foo __bar=baz
    r
rrrrr�raw_args�r�uscCsgd�gd�d�}|�|d�S)z�
    Return common metasyntactic variables for the given locality

    CLI Example:

    .. code-block:: bash

        salt-run test.metasyntactic locality=uk
    )�foo�barZbazZquxZquuxZquuzZcorgeZgraultZgarplyZwaldoZfredZplughZxyzzyZthud)ZwibbleZwobbleZwubbleZflob)r�ukN)�get)Zlocality�lookuprrr�
metasyntactic.s�rcCstd�dS)zv
    Print 'foo' and return 'bar'

    CLI Example:

    .. code-block:: bash

        salt-run test.stdout_print
    rr)�printrrrr�stdout_printNs
r�
cCst|�t�|�dS)z}
    Sleep t seconds, then return True

    CLI Example:

    .. code-block:: bash

        salt-run test.sleep s_time=5
    T)r�time�sleep)Zs_timerrrr\s

rcCs:d}tdd�D]}t�dd|�d�id�t�d�q|S)	z�
    Fire a stream of 100 test events, then return True

    CLI Example:

    .. code-block:: bash

        salt-run test.stream
    T��d�messagez
Runner is z% doneZprogressg�������?)�rangeZ
__jid_event__Z
fire_eventrr)r�irrr�streamks

r#cCstS)z�
    .. versionadded:: 2018.3.0

    Return the configuration options of the master.

    CLI Example:

    .. code-block:: bash

        salt-run test.get_opts
    )Z__opts__rrrr�get_opts|sr$)r)r)	�__doc__rrrrrrr#r$rrrr�<module>s