Creating an OTOBO test system – Step-by-step guide
Creating an OTOBO test system – Step-by-step guide
Section titled “Creating an OTOBO test system – Step-by-step guide”An OTOBO test system is an excellent way to safely test new features, configurations, and updates without affecting the production system. In this article, we will show you how to create and set up a separate OTOBO test system.
Why an OTOBO test system?
Section titled “Why an OTOBO test system?”An OTOBO test system allows you to:
- Safely try out new features and configurations
- Test system updates before live implementation
- Evaluate customizations and scripting changes
- Identify and fix sources of errors and bugs before they reach the production system
Prerequisites for the OTOBO test system
Section titled “Prerequisites for the OTOBO test system”Before you begin creating an OTOBO test system, you should meet the following requirements:
- System resources: At least 2 CPUs, 4 GB RAM, and 20 GB of hard disk space. The test system can run on lower specifications, as it is not intended for production use.
- Operating system: Ubuntu 20.04 or Debian 10 is recommended. A Docker setup is also possible.
- Access to production system data (optional): If you want to test a copy of the current OTOBO installation, you need access to the database and the files of the production system.
Step 1: Prepare the environment
Section titled “Step 1: Prepare the environment”Docker-based installation (recommended)
Section titled “Docker-based installation (recommended)”For a quick and easy setup, we recommend the Docker installation. This allows for an isolated test environment.
-
Install Docker and Docker Compose:
Terminal window sudo apt updatesudo apt install docker.io docker-compose -
Clone the OTOBO Docker repository:
Terminal window cd /optgit clone https://github.com/RotherOSS/otobo-docker.git --branch rel-11_0 --single-branch -
Copy the
.envfile for the test system:Terminal window cd /opt/otobo-dockercp -p .docker_compose_env_http .env -
Configure the password for the database admin user: Open the
.envfile and set a secure password:Terminal window OTOBO_DB_ROOT_PASSWORD=<Your_secret_password>
Alternative: Manual installation
Section titled “Alternative: Manual installation”If you would like to set up the OTOBO test system without Docker, install the required components (Apache, MariaDB, Perl modules) according to the OTOBO installation guide. Please note that this process is more complex and requires more manual steps.
Step 2: Copy production system data (optional)
Section titled “Step 2: Copy production system data (optional)”If you want to set up the test system based on the current production system, follow the steps below. This is optional, but useful if you want to test configurations and data in a realistic scenario.
-
Back up the production database:
Terminal window mysqldump -u root -p otobo > /path/to/backup/otobo_backup.sql -
Back up the file system: Copy the
Kerneldirectory and thevar/articledirectory of the production system:Terminal window rsync -avz /opt/otobo/Kernel /path/to/backup/Kernelrsync -avz /opt/otobo/var/article /path/to/backup/article -
Import the backup into the test system:
-
Database: Copy the backup to the test system and import it:
Terminal window mysql -u root -p otobo_test < /path/to/backup/otobo_backup.sql -
File system: Copy the backed-up
Kernelandarticledirectories to the test system.
-
Note: After importing into the test environment, change all sensitive data (e.g., passwords, email addresses) and ensure that the test system does not accidentally come into contact with production customers.
Step 3: Configure the OTOBO test system
Section titled “Step 3: Configure the OTOBO test system”-
Adjust the database connection: Open the
Kernel/Config.pmfile in the OTOBO test system and change the configurations for the database so that it points to the test database:$Self->{'Database'}{'Type'} = 'mysql';$Self->{'Database'}{'Host'} = 'localhost';$Self->{'Database'}{'Name'} = 'otobo_test';$Self->{'Database'}{'User'} = 'otobo';$Self->{'Database'}{'Password'} = '<Your_test_database_password>'; -
Verify the test environment: Restart the OTOBO daemon and check if the test system is running correctly:
Terminal window docker-compose exec web bashbin/otobo.Daemon.pl start
Step 4: Secure the test system
Section titled “Step 4: Secure the test system”- Restrict access: Limit access to the test system using firewalls or access controls to prevent unauthorized persons from accessing it.
- Disable email notifications: Ensure that the test system does not send any emails. Adjust the email configurations accordingly.
Step 5: Use the test system and perform tests
Section titled “Step 5: Use the test system and perform tests”The OTOBO test system is now ready. You can:
- Test new features and configurations
- Try out scripts, integrations, and customizations
- Evaluate updates and migration paths
Summary
Section titled “Summary”Creating an OTOBO test system is an important step to safely try out new features, configurations, and updates. With this guide, you can create an OTOBO test system to optimize your processes and identify potential problems early on. Remember to comply with data protection regulations, especially when copying data from your production system.
Do you need support setting up your OTOBO test system? Contact us for more information!