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' );