Feature #31370
Template snapshot multi-host render tests
Pull request:
Fixed in Releases:
Found in Releases:
Description
Our snapshot template render test and generator only supports one host stub (ipv4 single NIC redhat OS). In order to test more ERB codepaths, we need a way to create snapshots against multiple host stubs (e.g. IPv6, dualstack, static IPv4 or IPv6, debian family). In order to do that, template metadata can be extended to define list of host stubs to create and test snapshots against.
Related issues
Associated revisions
Refs #31370 - simplify factory traits
In 641c3f4a9b we've introduced a factory trait for smart_proxy factory,
but instead of adding it to parent factory we added to all its children.
This is fixing that and simplifying the factories.
History
#1
Updated by The Foreman Bot over 1 year ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8149 added
#2
Updated by Ronny Bremer over 1 year ago
- Related to Feature #31363: PXE templates should support dual stack hosts added
#3
Updated by Lukas Zapletal over 1 year ago
- Related to Feature #31407: Remove spaces from snapshot tests added
#4
Updated by The Foreman Bot about 1 year ago
- Fixed in Releases 3.0.0 added
#5
Updated by Anonymous about 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|641c3f4a9bb5401a8ac06e70b925918125193957.
#6
Updated by The Foreman Bot about 1 year ago
- Pull request https://github.com/theforeman/foreman/pull/8530 added
Fixes #31370 - multi-host stub template snapshots (#8149)
Our snapshot template render test and generator only supports one host stub (ipv4 single NIC redhat OS). In order to test more ERB codepaths, we need a way to create snapshots against multiple host stubs (e.g. IPv6, dualstack, static IPv4 or IPv6, debian family). In order to do that, template metadata can be extended to define list of host stubs to create and test snapshots against.
Snapshot files are now named ProvisioningTemplate/PXEGrub/Kickstart_default_PXEGrub.host4and6.snap.txt where host4and6 is the stub name, this implements the following for starters: