From 951562a45ab44dfa226a8b9e80277eeb1023329e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Mon, 27 Jul 2026 17:02:40 -0300 Subject: [PATCH] test(httpd): require SLES service unit --- xCAT-test/unit/httpd_security_packaging.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-test/unit/httpd_security_packaging.t b/xCAT-test/unit/httpd_security_packaging.t index 5e4679862..6fc6f18d4 100644 --- a/xCAT-test/unit/httpd_security_packaging.t +++ b/xCAT-test/unit/httpd_security_packaging.t @@ -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' );