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.
17 lines
333 B
17 lines
333 B
1 year ago
|
#!/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;
|
||
|
}
|