Add an isolated PHP smoke test for hosting plans

This commit is contained in:
parkel committed 2026-11-19 21:35:59 +01:00
1 parent 64ee6ddcba
commit 374408f8c7
14 files changed
+253 -6

No files matched your search

+23
View File
@@ -48,6 +48,29 @@ to RabbitMQ. After a broker outage, queued requests resume when the worker and
scheduler reconnect. Plans that remain incomplete five minutes after dispatch
are eligible for delivery again.
## Run an isolated PHP test site
Open a completed preview for the account's current domain and select **Download
test bundle**. The archive contains the exact Apache preview, a matching PHP-FPM
pool, site metadata, and a small PHP test page. It is intended for the isolated
Ubuntu check below.
Run the test with Docker from the repository root. Set the bundle path to the
downloaded tar archive.
```sh
docker build -t coulobre-web-smoke tests/web-node
bundle="$PWD/coulobre-web-plan-1.tar"
docker run --rm --network none \
--mount "type=bind,src=$bundle,dst=/test/site.tar,readonly" \
coulobre-web-smoke
```
The Ubuntu container installs a system user for the site, checks the Apache and
PHP-FPM configurations, and makes an HTTP request with the account's primary
domain. A passing check confirms PHP execution through the generated socket.
The container uses its own filesystem and loopback interface.
## MariaDB
Create a dedicated MariaDB database and application user. Install the MariaDB or