From 26742a8d36b0ca71d8e1d0ac5cb4a72c9d66dd0b Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Fri, 6 Nov 2026 14:59:16 -0300 Subject: [PATCH] fix(xcat-core): template cases expect the old default postscripts xcatconfig now puts configdhcpv6duid in the postscripts of xcatdefaults, so a node made from a template inherits syslog,remoteshell, configdhcpv6duid,syncfiles. Eight lsdef and mkdef checks still match syslog,remoteshell,syncfiles. Four cases failed in xcat_pr_test on 559577a41: mkdef_template_cec_template_without_remainder, mkdef_template_switch_template_without_attribute, lsdef_template_switch_template and mkdef_node_with_a_node_template. The checks now match the list that xcatconfig writes. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-test/autotest/testcase/lsdef/cases0 | 4 ++-- xCAT-test/autotest/testcase/mkdef/cases0 | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/xCAT-test/autotest/testcase/lsdef/cases0 b/xCAT-test/autotest/testcase/lsdef/cases0 index 569fcdd323..17fe65b45e 100644 --- a/xCAT-test/autotest/testcase/lsdef/cases0 +++ b/xCAT-test/autotest/testcase/lsdef/cases0 @@ -249,9 +249,9 @@ check:output=~Object name\: switch-template check:output=~groups=switch check:output=~nodetype=switch check:output=~postbootscripts\=otherpkgs -check:output=~postscripts\=syslog\,remoteshell\,syncfiles +check:output=~postscripts\=syslog\,remoteshell\,configdhcpv6duid\,syncfiles check:output=~usercomment\=the switch definition template -check:output=~postscripts\=syslog\,remoteshell\,syncfiles +check:output=~postscripts\=syslog\,remoteshell\,configdhcpv6duid\,syncfiles check:output=~ip\=OPTIONAL\:the ip address of the switch check:output=~mac\=OPTIONAL\:the MAC address of the switch check:output=~switchtype\=OPTIONAL\:The type of switch diff --git a/xCAT-test/autotest/testcase/mkdef/cases0 b/xCAT-test/autotest/testcase/mkdef/cases0 index f61dc18616..a0adbed082 100644 --- a/xCAT-test/autotest/testcase/mkdef/cases0 +++ b/xCAT-test/autotest/testcase/mkdef/cases0 @@ -235,9 +235,9 @@ check:output=~Object name\: auto_test_node_1 check:output=~groups=switch check:output=~nodetype=switch check:output=~postbootscripts\=otherpkgs -check:output=~postscripts\=syslog\,remoteshell\,syncfiles +check:output=~postscripts\=syslog\,remoteshell\,configdhcpv6duid\,syncfiles check:output=~usercomment\=the switch definition template -check:output=~postscripts\=syslog\,remoteshell\,syncfiles +check:output=~postscripts\=syslog\,remoteshell\,configdhcpv6duid\,syncfiles check:output!=ip\=OPTIONAL\:the ip address of the switch check:output!=mac\=OPTIONAL\:the MAC address of the switch check:output!=switchtype\= @@ -259,7 +259,7 @@ check:output=~hwtype\=cec check:output=~mgt\=hmc check:output=~nodetype\=ppc check:output=~postbootscripts\=otherpkgs -check:output=~postscripts\=syslog\,remoteshell\,syncfiles +check:output=~postscripts\=syslog\,remoteshell\,configdhcpv6duid\,syncfiles check:output=~usercomment\=the cec definition template check:output=~hcp\=test check:output=~mtm\=test @@ -301,7 +301,7 @@ check:output=~hwtype\=cec check:output=~mgt\=hmc check:output=~nodetype\=ppc check:output=~postbootscripts\=otherpkgs -check:output=~postscripts\=syslog\,remoteshell\,syncfiles +check:output=~postscripts\=syslog\,remoteshell\,configdhcpv6duid\,syncfiles check:output=~usercomment\=the cec definition template check:output=~hcp\=test2 check:output=~mtm\=test2 @@ -335,7 +335,7 @@ check:output=~hwtype\=cec check:output=~mgt\=hmc check:output=~nodetype\=ppc check:output=~postbootscripts\=otherpkgs -check:output=~postscripts\=syslog\,remoteshell\,syncfiles +check:output=~postscripts\=syslog\,remoteshell\,configdhcpv6duid\,syncfiles check:output=~usercomment\=the cec definition template check:output=~hcp\=test check:output=~mtm\=test @@ -363,7 +363,7 @@ check:output=~hwtype\=cec check:output=~mgt\=hmc check:output=~nodetype\=ppc check:output=~postbootscripts\=otherpkgs -check:output=~postscripts\=syslog\,remoteshell\,syncfiles +check:output=~postscripts\=syslog\,remoteshell\,configdhcpv6duid\,syncfiles check:output=~usercomment\=the cec definition template check:output=~hcp\=test2 check:output=~mtm\=test2