mirror of
https://github.com/rvalitov/zabbix-php-fpm.git
synced 2023-11-05 03:30:27 +01:00
[add] more info on error
This commit is contained in:
parent
19de506b60
commit
36808569fd
@ -23,13 +23,13 @@ oneTimeSetUp() {
|
|||||||
testMissingPackagesDiscoveryScript() {
|
testMissingPackagesDiscoveryScript() {
|
||||||
DATA=$(sudo bash "/etc/zabbix/zabbix_php_fpm_discovery.sh" "/php-fpm-status")
|
DATA=$(sudo bash "/etc/zabbix/zabbix_php_fpm_discovery.sh" "/php-fpm-status")
|
||||||
IS_OK=$(echo "$DATA" | grep -F ' not found.')
|
IS_OK=$(echo "$DATA" | grep -F ' not found.')
|
||||||
assertNotNull "Discovery script didn't report error on missing utility 'jq'" "$IS_OK"
|
assertNotNull "Discovery script didn't report error on missing utilities $DATA" "$IS_OK"
|
||||||
}
|
}
|
||||||
|
|
||||||
testMissingPackagesStatusScript() {
|
testMissingPackagesStatusScript() {
|
||||||
DATA=$(sudo bash "/etc/zabbix/zabbix_php_fpm_status.sh" "localhost:9000" "/php-fpm-status")
|
DATA=$(sudo bash "/etc/zabbix/zabbix_php_fpm_status.sh" "localhost:9000" "/php-fpm-status")
|
||||||
IS_OK=$(echo "$DATA" | grep -F ' not found.')
|
IS_OK=$(echo "$DATA" | grep -F ' not found.')
|
||||||
assertNotNull "Status script didn't report error on missing utility 'cgi-fcgi'" "$IS_OK"
|
assertNotNull "Status script didn't report error on missing utilities $DATA" "$IS_OK"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Load shUnit2.
|
# Load shUnit2.
|
||||||
|
Loading…
Reference in New Issue
Block a user