3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[fix] port pools test

This commit is contained in:
Ramil Valitov 2020-06-29 14:58:32 +03:00
parent 9aae10855b
commit 388eef5b61
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -202,7 +202,7 @@ testZabbixDiscoverNumberOfIPPools() {
testZabbixDiscoverNumberOfPortPools() { testZabbixDiscoverNumberOfPortPools() {
DATA=$(zabbix_get -s 127.0.0.1 -p 10050 -k php-fpm.discover["/php-fpm-status"]) DATA=$(zabbix_get -s 127.0.0.1 -p 10050 -k php-fpm.discover["/php-fpm-status"])
NUMBER_OF_POOLS=$(echo "$DATA" | grep -o -F '{"{#POOLNAME}":"http1",' | wc -l) NUMBER_OF_POOLS=$(echo "$DATA" | grep -o -F '{"{#POOLNAME}":"port1",' | wc -l)
PHP_COUNT=$(getNumberOfPHPVersions) PHP_COUNT=$(getNumberOfPHPVersions)
assertEquals "Number of pools mismatch" "$PHP_COUNT" "$NUMBER_OF_POOLS" assertEquals "Number of pools mismatch" "$PHP_COUNT" "$NUMBER_OF_POOLS"
} }