Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

update goss version, fix ansible-lint warnings, add ability to copy defaults vars to goss vars #13

Merged
merged 8 commits into from
Jan 10, 2021

Conversation

markwell-ch
Copy link
Contributor

@markwell-ch markwell-ch commented Jan 5, 2021

Adds a new variable copy_defaults_vars set to false. If set to true the content of the roles defaults/main.yml are copied to the {{ goss_test_directory }}/vars file on the remote and {{ goss_test_directory }}/vars is passed to goss with --vars. The vars defined in defaults/main.yml can then be referenced in the test definitions, see https://github.com/aelsabbahy/goss/blob/master/docs/manual.md#templates.

@abtreece abtreece self-requested a review January 9, 2021 17:39
Copy link
Collaborator

@abtreece abtreece left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @markwell-ch thanks for for the contribution!

I think this looks good from a functional perspective and I believe I understand the intention. Would you mind adding some detail to the description of the PR describing the intent? It will help to provide context for future contributions as well as documentation on how best to implement this plugin.

@abtreece abtreece merged commit 6b141c0 into ansible-community:master Jan 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants