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

templates #1172

Open
sopos opened this issue May 11, 2022 · 1 comment
Open

templates #1172

sopos opened this issue May 11, 2022 · 1 comment
Labels
command | plans tmt plans command status | discuss Needs more discussion before closing

Comments

@sopos
Copy link

sopos commented May 11, 2022

At this point I have an incomplete idea of having some kind of plan templates.

The main point of this would be a possibility to apply the template to an existing remote plan so also a local customization would be possible. Or vice versa, the remote plan would be built on top of the template. We could also apply logical operations on the remote plan and the template, i.e. && and || might be possible. So some of the attributes could be masked, replaced, extended, whatever.

So let the brain crunch and the discussion flow.

Any wild ideas so far?

I think @kkaarreell has a requirement for something similar so he might be able to describe a particular use case. So we could work this out.

@sopos sopos changed the title plan templates templates May 12, 2022
@sopos
Copy link
Author

sopos commented May 12, 2022

Actually I have possible usecase here. As described in teemtee/fmf#152 it would be nice to be able to describe a replace action in a template which could be then applied to while tree.

template:

require:
  - foreach: {s/rsyslog/rsyslog7/g}
apply:
  - all_tests

@lukaszachy lukaszachy added enhancement command | plans tmt plans command status | discuss Needs more discussion before closing labels May 13, 2022
@psss psss removed the enhancement label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command | plans tmt plans command status | discuss Needs more discussion before closing
Projects
None yet
Development

No branches or pull requests

3 participants