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: yamlpath with searchpattern always return changed #1832

Merged
merged 4 commits into from
Dec 11, 2023

Conversation

olblak
Copy link
Member

@olblak olblak commented Dec 10, 2023

Fix #1830

Test

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

./bin/updatecli diff ghcr.io/updatecli/policies/updatecli/githubaction:0.1.0@sha256:a5b8933ebfc65ba6ea9e60927900135062a3293f18a68292431cec1e53208e3d

Additional Information

Tradeoff

Potential improvement

Using the parameter searchpattern set to true prevent me to reuse the current table tests as it relies on mock testing.
I could add additional integration tests but considering my current availability, I am going to postpone this for the future of myself

@olblak olblak added the bug Something isn't working label Dec 10, 2023
@olblak olblak changed the title fix: yamlpath with searchpattern should not allways return changed fix: yamlpath with searchpattern should not always return changed Dec 10, 2023
@olblak olblak added the resource-yaml Resource of kind YAML label Dec 11, 2023
@olblak olblak changed the title fix: yamlpath with searchpattern should not always return changed fix: yamlpath with searchpattern always return changed Dec 11, 2023
@olblak olblak merged commit 8b77d5a into updatecli:main Dec 11, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resource-yaml Resource of kind YAML
Projects
None yet
Development

Successfully merging this pull request may close these issues.

yaml target seems broken when using a searchpattern
1 participant