Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1 from main #23

Merged
merged 14 commits into from
Nov 11, 2024
Merged

v1 from main #23

merged 14 commits into from
Nov 11, 2024

Conversation

mbaldessari
Copy link
Contributor

  • Add jsonschema CI job
  • Fix typo in README.md
  • Boolean defaults cannot be strings
  • Use --fill-defaults when running json schema check
  • Fix secret parsing, when there is no secret in secret yaml file
  • Move null check to _get_secrets
  • Add unit tests for empty secret logic
  • Bump version number
  • Rremove links with - in the name because the usage of dash is not supported to run playbook names in collections

mbaldessari and others added 14 commits September 27, 2024 10:51
We test a few values secret files against the json schema
This will fix the edge case when there is an empty list ([]) or no
secret in the secret values file for a pattern, the validation and
the parsing would fail the module. Now it only throws a warning for both
validation and parsing.
The check for "None" is better placed inside the get_secrets function,
with this, get_secrets will always return a list, either empty list, or
the list with the secrets from the yaml. Changed checks accordingly.
Changed default get to be an empty list if the "secret" key is not
present in the secret values file.
Added check for None type as well, in case the module is used witout
from_yaml filter (like in unit tests)
Fix secret parsing, when there is no secret in secret yaml file
Remove links with - in the name because the usage of dash is not supported by ansible
@mbaldessari mbaldessari merged commit 8d653de into validatedpatterns:v1 Nov 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants