Skip to content

Commit 15c6f8e

Browse files
committed
Test PHP-FPM docker-php-entrypoint-init
1 parent 7fd241a commit 15c6f8e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pytest
2+
3+
4+
@pytest.mark.php_fpm_exec
5+
def test_php_fpm_exec_has_dumb_init(host):
6+
php_fpm_exec = host.run("ps 1")
7+
8+
assert "dumb-init" in php_fpm_exec.stdout
9+
assert "--rewrite 2:3" in php_fpm_exec.stdout
10+
assert "--rewrite 15:3" in php_fpm_exec.stdout
11+
assert "--rewrite 1:17" in php_fpm_exec.stdout
12+
13+
assert "shush" not in php_fpm_exec.stdout

test/container/php/test_helper_scripts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def test_php_images_contain_helper_scripts(host):
1111
"/usr/local/bin/docker-php-ext-pdo-pgsql",
1212
"/usr/local/bin/docker-php-ext-rdkafka",
1313
"/usr/local/bin/docker-php-entrypoint",
14+
"/usr/local/bin/docker-php-entrypoint-init",
1415
"/usr/local/bin/php-fpm-healthcheck",
1516
]
1617

0 commit comments

Comments
 (0)