3
0
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:
Ramil Valitov 2020-07-06 23:58:36 +03:00
parent 19de506b60
commit 36808569fd
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -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.