2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-21 16:39:30 +00:00

test(httpd): require SLES service unit

This commit is contained in:
Vinícius Ferrão
2026-07-27 17:02:40 -03:00
parent ae0d790adb
commit 951562a45a
@@ -32,6 +32,9 @@ like( $xcat_spec,
my $xcatsn_spec = read_file('xCATsn/xCATsn.spec');
like( $xcatsn_spec, qr{a2enmod headers},
'service-node RPM enables mod_headers where Apache requires it' );
like( $xcatsn_spec,
qr{apacheserviceunit='httpd\.service'.*?apacheserviceunit='apache2\.service'}s,
'service-node RPM covers both EL and SUSE Apache service units' );
like( $xcatsn_spec,
qr{# for install or upgrade restart the daemon.*?/etc/init\.d/\$apachedaemon reload.*?systemctl reload \$apacheserviceunit}s,
'service-node RPM reloads Apache after installs and upgrades' );