salt.runners.test

This runner is used only for test purposes and serves no production purpose

salt.runners.test.arg(*args, **kwargs)

Output the given args and kwargs

Kwargs will be filtered for 'private' keynames.

CLI Example:

salt-run test.arg foo bar=baz
salt.runners.test.get_opts()

New in version 2018.3.0.

Return the configuration options of the master.

CLI Example:

salt-run test.get_opts
salt.runners.test.metasyntactic(locality='us')

Return common metasyntactic variables for the given locality

CLI Example:

salt-run test.metasyntactic locality=uk
salt.runners.test.raw_arg(*args, **kwargs)

Output the given args and kwargs

CLI Example:

salt-run test.arg foo __bar=baz
salt.runners.test.sleep(s_time=10)

Sleep t seconds, then return True

CLI Example:

salt-run test.sleep s_time=5
salt.runners.test.stdout_print()

Print 'foo' and return 'bar'

CLI Example:

salt-run test.stdout_print
salt.runners.test.stream()

Fire a stream of 100 test events, then return True

CLI Example:

salt-run test.stream