From ebefdec9f8e06b7b8334cfb83aff74d159cd0214 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Wed, 28 Oct 2026 13:28:53 -0300 Subject: [PATCH] test(template): the IPv6 networking section carries an element the schema refuses AutoYaST validated the generated profile and reported "Extra element networking in interleave", then told the operator no profile could be retrieved. The element is dhcp_resolv, which the schema of Leap 15.6 does not accept. The test asserts the section has no dhcp_resolv and keeps dhcp_hostname, which the schema does accept. 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 e07044a57d..d70afcd572 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 => 11; +use Test::More tests => 13; my $repo_root = File::Spec->catdir($FindBin::Bin, '..', '..'); $ENV{XCATROOT} = File::Spec->catdir($repo_root, 'xCAT-server'); @@ -47,6 +47,13 @@ unlike($xml, qr{(?!-)}, 'no IPv4 netmask is emitted for the interface') like($xml, qr{\Q2001:db8:1::fe\E}, 'the default route carries the IPv6 gateway'); like($xml, qr{\Q2001:db8:1::fe\E}, 'and the resolver is the IPv6 one'); +# dhcp_resolv says whether DHCP may overwrite resolv.conf. The AutoYaST schema of Leap 15.6 +# does not accept it, and one invalid element makes YaST reject the whole profile: it reports +# "Extra element networking in interleave" and then that no profile could be retrieved. The +# section configures the node statically, so there is no DHCP to keep away from resolv.conf. +unlike($xml, qr{