Skip to content

Keystore

This module contains step implementations for the Keystore task task.

Then keystore get default

Then get "{key}" from keystore and save in variable "{variable}", with default value "{default_value}"

[view_source]

Get a value for key using the Keystore task task.

If key does not exist in the keystore default_value will be used and will be set in the keystore to next iteration. default_value must be JSON serializable (string values must be single-quoted).

See Keystore task task documentation for more information.

Example:

And value for variable "foobar" is "none"
Then get "foobar" from keystore and save in variable "foobar", with default value "{'hello': 'world'}"

Then keystore get

Then get "{key}" from keystore and save in variable "{variable}"

[view_source]

Get a value for key using the Keystore task task.

See Keystore task task documentation for more information.

Example:

And value for variable "foobar" is "none"
Then get "foobar" from keystore and save in variable "foobar"

Then keystore set

Then set "{key}" in keystore with value "{value}"

[view_source]

Set a value for key using the Keystore task task.

value must be JSON serializable (string values must be single-quoted).

See Keystore task task documentation for more information.

Example:

And value for variable "foobar" is "{'hello': 'world'}"
Then set "foobar" in keystore with value "{{ foobar }}"