41 lines
658 B
Plaintext
41 lines
658 B
Plaintext
|
|
--TEST--
|
||
|
|
FPM: Ping on the status invisible pool
|
||
|
|
--SKIPIF--
|
||
|
|
<?php include "skipif.inc"; ?>
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
|
||
|
|
require_once "tester.inc";
|
||
|
|
|
||
|
|
$cfg = <<<EOT
|
||
|
|
[global]
|
||
|
|
error_log = {{FILE:LOG}}
|
||
|
|
[unconfined]
|
||
|
|
listen = {{ADDR}}
|
||
|
|
pm = static
|
||
|
|
pm.max_children = 1
|
||
|
|
pm.status_listen = {{ADDR[status]}}
|
||
|
|
pm.status_path = /status
|
||
|
|
ping.path = /ping
|
||
|
|
ping.response = pong
|
||
|
|
EOT;
|
||
|
|
|
||
|
|
$tester = new FPM\Tester($cfg);
|
||
|
|
$tester->start();
|
||
|
|
$tester->expectLogStartNotices();
|
||
|
|
$tester->ping('{{ADDR[status]}}');
|
||
|
|
usleep(100000);
|
||
|
|
$tester->terminate();
|
||
|
|
$tester->expectLogTerminatingNotices();
|
||
|
|
$tester->close();
|
||
|
|
|
||
|
|
?>
|
||
|
|
Done
|
||
|
|
--EXPECT--
|
||
|
|
Done
|
||
|
|
--CLEAN--
|
||
|
|
<?php
|
||
|
|
require_once "tester.inc";
|
||
|
|
FPM\Tester::clean();
|
||
|
|
?>
|