You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_httpd/01-httpd-running.bats

17 lines
333 B

#!/usr/bin/bats
load ../../library/assertions;
PACKAGE=httpd
setup() {
if [[ -z $(/bin/rpm -qa | /bin/grep ${PACKAGE}) ]]; then
skip "${PACKAGE} is not installed, tests skipped"
fi
}
@test "is httpd service present" {
/bin/systemctl status ${PACKAGE} | /bin/grep -E 'running;|disabled;'
assert_success;
}