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

[condition] Support multiple files with in conditions of kind file #1027

Merged
merged 2 commits into from
Dec 9, 2022
Merged

[condition] Support multiple files with in conditions of kind file #1027

merged 2 commits into from
Dec 9, 2022

Conversation

macedogm
Copy link
Contributor

@macedogm macedogm commented Dec 9, 2022

This PR removes the limitation for multiple files in conditions, fix related tests that are failure validation to allow more than one element in 'Files' and add a passing test for such scenario.

Fix #1026

Test

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

cd pkg/plugins/resources/file
go test

Additional Information

Tradeoff

Potential improvement

Signed-off-by: Guilherme Macedo guilherme.macedo@suse.com

@olblak olblak merged commit 46a2d80 into updatecli:main Dec 9, 2022
@olblak olblak added enhancement New feature or request resource-file Resource of kind File labels Dec 9, 2022
@macedogm macedogm deleted the file-condition-multiple-files branch December 9, 2022 11:12
@dduportal
Copy link
Contributor

I'm updating the title to have a better changelog item (I'll follow the associated issue RFE title).

Thanks a lot @macedogm !

@dduportal dduportal changed the title Remove limitation for multiple files in condition and fix tests feat(file) Support multiple files with in conditions of kind file Dec 9, 2022
@dduportal dduportal added the condition Modify condition resource label Dec 9, 2022
@olblak olblak changed the title feat(file) Support multiple files with in conditions of kind file [condition] Support multiple files with in conditions of kind file Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
condition Modify condition resource enhancement New feature or request resource-file Resource of kind File
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Support multiple files with spec: files in conditions of kind:file
3 participants