From d1cafdddc3f5538de14b7a2c3898cd3e426a0265 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Wed, 28 Oct 2026 14:48:37 -0300 Subject: [PATCH] test(template): the IPv6 profile does not replace the installer network AutoYaST keeps the network the installer used unless keep_install_network says otherwise, and the sections _autoyast_network6 replaces set it true. The static interface in the generated section was therefore ignored. The test asserts the section sets keep_install_network to false. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-test/unit/autoyast_ipv6_network.t | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xCAT-test/unit/autoyast_ipv6_network.t b/xCAT-test/unit/autoyast_ipv6_network.t index d70afcd572..b718cc04fa 100644 --- a/xCAT-test/unit/autoyast_ipv6_network.t +++ b/xCAT-test/unit/autoyast_ipv6_network.t @@ -12,7 +12,7 @@ no warnings 'once'; use File::Spec; use FindBin; -use Test::More tests => 13; +use Test::More tests => 14; my $repo_root = File::Spec->catdir($FindBin::Bin, '..', '..'); $ENV{XCATROOT} = File::Spec->catdir($repo_root, 'xCAT-server'); @@ -54,6 +54,13 @@ like($xml, qr{\Q2001:db8:1::fe\E}, 'and the resolver is unlike($xml, qr{false}, + 'the profile network replaces the one the installer used'); + # A node with no gateway still installs; it simply gets no default route. my $nogw = xCAT::Template::_autoyast_network6('cn6nogw'); ok(defined($nogw), 'a node with no gateway still gets a section');