From c30f08cf13bc4f173c86f74faedb51ddd698714d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Sun, 27 Sep 2026 02:09:26 -0300 Subject: [PATCH] test(nodediscover): cover the ipxe default of discovered x86 nodes An x86 node without an x86 method gets netboot=ipxe, and one that already has ipxe, pxe or xnba keeps it. --- xCAT-test/unit/nodediscover_default_netboot.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-test/unit/nodediscover_default_netboot.t b/xCAT-test/unit/nodediscover_default_netboot.t index ed7dcdf1c..0cef10a19 100644 --- a/xCAT-test/unit/nodediscover_default_netboot.t +++ b/xCAT-test/unit/nodediscover_default_netboot.t @@ -70,6 +70,9 @@ is( default_netboot( 'riscv64', '', 'grub2-tftp' ), undef, 'riscv64 keeps grub is( default_netboot( 'riscv32', '', '' ), undef, 'riscv32 is not treated as riscv64' ); # existing architectures keep their behavior +is( default_netboot( 'x86_64', '', '' ), 'ipxe', 'x86_64 nodes default to ipxe' ); +is( default_netboot( 'x86', '', 'grub2' ), 'ipxe', 'x86 with a non-x86 method is corrected to ipxe' ); +is( default_netboot( 'x86_64', '', 'ipxe' ), undef, 'x86_64 keeps ipxe' ); is( default_netboot( 'x86_64', '', 'pxe' ), undef, 'x86_64 keeps pxe' ); is( default_netboot( 'x86_64', '', 'xnba' ), undef, 'x86_64 keeps xnba' ); is( default_netboot( 'ppc64le', 'PowerNV', '' ), 'petitboot', 'PowerNV nodes default to petitboot' );