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

fix(yaml) allow condition without a source input value #362

Merged
merged 1 commit into from
Nov 12, 2021

Conversation

dduportal
Copy link
Contributor

@dduportal dduportal commented Nov 11, 2021

Fix #358.

Depends on #360

This PR ensures that a condition where the input source value is provided uses this value instead of failing.

Test

To test this pull request, you can run the following commands:

go build -o ./dist/updatecli && ./dist/updatecli diff --config ./examples/updateCli.generic/yaml.yaml

Additionnal Information

  • Added unit tests for yaml condition (coverage of 100% for this source file)
  • Factorized code in yaml condition to ensure the same behavior between SCM and non SCM
  • Ensure that logging is reusing the constants for the unicode emojis

@olblak
Copy link
Member

olblak commented Nov 11, 2021

@dduportal they are now file conflict

Copy link
Member

@olblak olblak left a comment

Choose a reason for hiding this comment

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

It looks good to me when merge conflict are resolved

Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
@dduportal
Copy link
Contributor Author

Rebased :) Sorry, I'm used to full "rebase and merge" + "rebase branch" which creates conflicts with merge commits. I'll also update the other PR

@dduportal dduportal merged commit aba41b5 into updatecli:main Nov 12, 2021
@dduportal dduportal deleted the gh-358 branch November 12, 2021 06:49
@dduportal dduportal added this to the 0.14.1 milestone Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working condition Modify condition resource resource-yaml Resource of kind YAML
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[yaml] condition with a source input value fails to validate
2 participants