Files
2026-08-18 09:40:08 +02:00

1.1 KiB

KUBE  /  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:

sudo kube.sh --test mariadb
sudo kube.sh --test redis
sudo kube.sh --test mailint