2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-08 12:40:45 +00:00

test(genesis): cover s390x config name

This commit is contained in:
Vinícius Ferrão
2026-09-04 16:37:39 -03:00
parent 8217422a70
commit 6aba71b44c
4 changed files with 5 additions and 5 deletions
@@ -46,7 +46,7 @@ my $json = $backend->render_dhcp4_config(
test => 'option[93].hex == 0x001f',
additional_only => JSON::true,
'option-data' => [
{ name => 'conf-file', data => 'pxelinux.cfg/s390x/192.168.122.0_24' },
{ name => 'conf-file', data => 's390x/192.168.122.0_24' },
],
},
{
+1 -1
View File
@@ -231,7 +231,7 @@ is_deeply(
'option-data' => [
{
name => 'conf-file',
data => 'pxelinux.cfg/s390x/10.0.0.0_24',
data => 's390x/10.0.0.0_24',
'always-send' => 1,
},
],
+1 -1
View File
@@ -38,7 +38,7 @@ like(
);
like(
$rendered,
qr/client-architecture = 00:1f \{ #QEMU s390x\n\s+option conf-file = "pxelinux\.cfg\/s390x\/192\.0\.2\.0_24";/,
qr/client-architecture = 00:1f \{ #QEMU s390x\n\s+option conf-file = "s390x\/192\.0\.2\.0_24";/,
'QEMU s390x receives its network configuration',
);
+2 -2
View File
@@ -133,8 +133,8 @@ my %network_entry = (
ok($classes{'xcat-s390x-qemu-10.0.0.0_24'}, 'the Kea subnet includes QEMU s390x boot policy');
is(
$classes{'xcat-s390x-qemu-10.0.0.0_24'}{'option-data'}[0]{data},
'pxelinux.cfg/s390x/10.0.0.0_24',
'the Kea subnet sends the complete s390x configuration path',
's390x/10.0.0.0_24',
'the Kea subnet sends the s390x configuration name',
);
is_deeply(
[ grep { /^xcat-s390x-/ } @{ $subnet->{additional_client_classes} } ],