launchdarkly_test_generator – Create a JSON file for testing

New in version 0.2.0.

Synopsis

  • Create a JSON file for local testing

Parameters

Parameter Choices/Defaults Comments
overrides_flag
list
override specific keys
sdk_key
string / required
Default:
"default"
SDK Key to retrieve flags for an environment.

Examples

# Create a new LaunchDarkly Project with tags
  - name: Generate Test JSON
    launchdarkly_test_generator:
      sdk_key: sdk-test-123456
      overrides_flag:
        - example_test_flag: True
    register: results

Return Values

Common return values are documented here, the following are the fields unique to this :

Key Returned Description
content
json
on success
Dictionary containing a JSON object that can be used as a file source.



Status

  • This is not guaranteed to have a backwards compatible interface. [preview]

  • This is maintained by the Ansible Community. [community]

Hint

If you notice any issues in this documentation, you can edit this document to improve it.

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.