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

Fixes #38229 - Add new template snapshot host for Ubuntu #10451

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

bastian-src
Copy link
Contributor

This adds another machine ubuntu_autoinstmulti4dhcp in order to test a common NIC setup: No identifier is set and two NICs are provided. This aims on testing this part of the networking snippet: https://github.com/theforeman/foreman/blob/develop/app/views/unattended/provisioning_templates/snippet/preseed_netplan_generic_interface.erb#L10

This is a common scenario which is currently not covered by our snapshots and shows an issue with the current snippet.

I'm wondering whether we want to test different template/snippet scenarios by adding multiple snapshot hosts like I'm introducing with this PR. I did stumble across #9516 which might make this more elegant by transitioning to traits.

Next to ubuntu_autoinst4dhcp (a Ubuntu 20 machine with default host4dhcp
config), add a second scenario to cover a more common Ubuntu scenario:
ubuntu_autoinstmulti4dhcp.

* has two IPv4 NICs
* both NICs don't set the identifier

When the NIC identifier is not set, the preseed_netplan_generic_interface
snippet adds a MAC-based match section which shall be included in
snapshot tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant