This commit is contained in:
2026-08-12 11:59:14 +02:00
parent 3c4cfc9703
commit c87a5d3e7f
111 changed files with 19381 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
[KUBE](../README.md)  /  Test
# Test
> [!NOTE]
> Testing the operation of individual units or the entire system.
## Commands
### `--test <option>`
Options:
- `mariadb` - A database with a random name is created on the master device and the existence of the created database is checked on the slave device.
- `redis` - A key with a random name is created on the master and the existence of the created key is verified on the replicas.
- `site` - A site is created (without `WordPress`). MariaDB (a database and user are created). `Redis` (a user is created). The site is opened via HTTP (the response code is checked). The site is deleted.
- `wordpress` - A WordPress site is created. `MariaDB` (a database and user are created). `Redis` (a user is created). The site is opened via HTTP (the response code is checked). The site is deleted.
- `mailint` - Internal test of sending a letter from one user to another.
- `mailext` - Test sending a letter to the specified address (In progress...)
Example:
```bash
sudo kube.sh --test mariadb
sudo kube.sh --test redis
sudo kube.sh --test mailint
```