salt.modules.test

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »

# salt.modules.test

Module for running arbitrary tests

`salt.modules.test.` `collatz`(start)

  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:

      salt '*' test.collatz 3

`salt.modules.test.` `conf_test`()

  Return the value for test.foo in the minion configuration file, or return the default value

  CLI Example:

      salt '*' test.conf_test

`salt.modules.test.` `cross_test`(func, args=None)

  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:

      salt '*' test.cross_test file.gid_to_group 0

`salt.modules.test.` `echo`(text)

  Return a string - used for testing the connection

  CLI Example:

      salt '*' test.echo 'foo bar baz quo qux'

`salt.modules.test.` `fib`(num)

  Return a Fibonacci sequence up to the passed number, and the timeit took to compute in seconds. Used for performance tests

  CLI Example:

      salt '*' test.fib 3

`salt.modules.test.` `get_opts`()

  Return the configuration options passed to this minion

  CLI Example:

      salt '*' test.get_opts

`salt.modules.test.` `kwarg`(**kwargs)

  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:

      salt '*' test.kwarg

`salt.modules.test.` `outputter`(data)

  Test the outputter, pass in data to return

  CLI Example:

      salt '*' test.outputter foobar

`salt.modules.test.` `ping`()

  Just used to make sure the minion is up and responding Return True

  CLI Example:

      salt '*' test.ping

`salt.modules.test.` `sleep`(length)

  Instruct the minion to initiate a process that will sleep for a given period of time.

  CLI Example:

      salt '*' test.sleep 20

`salt.modules.test.` `version`()

  Return the version of salt on the minion

  CLI Example:

      salt '*' test.version

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin execution modules »