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
Fixes #25613 - template renderer tests use os, family, loader #7140
Fixes #25613 - template renderer tests use os, family, loader #7140
Conversation
Issues: #25613 |
I think PXE loader is useless in this context, let me remove it. |
80b3a67
to
90bea1a
Compare
90bea1a
to
9ad7a5a
Compare
Rebased, added more OSes. Some templates are rendered with irrelevant context, but git will work fine with few more files and we want to cover as much as possible. |
Test is not right, need to work on this more. |
9ad7a5a
to
4d64847
Compare
4d64847
to
60aba3c
Compare
# global boot | ||
- | ||
name: PXELinux/pxelinux_global_default.erb | ||
os: [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get this from the template metadata?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well only operating system name and version. Not family and possibly other things. I'd rather be explicit. I am currently working on adding host params here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, that this is something we'd need to keep in sync when importing community templates. I doubt this will actually work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I want specifically to be testing RHEL 6, 7, 8 and similarly Debian/Ubuntu. Let me think about it tomorrow.
60aba3c
to
12a371e
Compare
Note, that instead of changing the test implementation we'd better move the code to use
|
Timo, do you think merging TemplateSnapshotService and RenderTemplatesFromFolder into one class? I don't understand why this was created in the first place, but I was one merging it so no excuses. |
Yep, that would be great. |
Thank you for your contribution, @lzap! This PR has been inactive for 3 months, closing for now. |
This greatly enhances coverage of our tests.