Moving from Allure TestOps Server to Allure TestOps Cloud
Migration is a multi-step process that requires a planned downtime window. The steps below cover creating the Cloud instance, reducing data to fit within Cloud limits, and handing the archives to the support team for import.
Steps overview
- Create an Allure TestOps Cloud instance.
- Open a support ticket to initiate migration.
- Delete test artifacts to bring storage below the 60 GB Cloud limit.
- Create encrypted data archives and share them with the support team.
Create a Cloud instance
Go to Start Free Trial and fill out the form. Once the instance is ready, go to Administration → License → Manage licenses and add payment information.
Open a support ticket
Create a Support ticket at help.qameta.io to initiate the migration. The ticket is used for all communication throughout the process.
Use this subject line:
Migration to SaaS <instance_name>.testops.cloud for <your_company_name>
where:
<instance_name>is the domain name used when registering the Cloud instance<your_company_name>is your company name
Include the current Allure TestOps Server version and any relevant details in the message body.
Reduce storage to under 60 GB
If your Server instance data exceeds 60 GB, delete artifacts before creating the archive. The largest portion of data is typically test artifacts, which can be removed using cleanup policies.
To keep only artifacts from the last 48 hours:
Go to Administration → Clean up policies.
Click + Create and create rules for all targets and result statuses (15 rules total), with a clean delay of 48 hours.
Cleanup rules
Target Test result status Clean delay Attachment Failed 48 Attachment Broken 48 Attachment Passed 48 Attachment Skipped 48 Attachment Unknown 48 Scenario Failed 48 Scenario Broken 48 Scenario Passed 48 Scenario Skipped 48 Scenario Unknown 48 Fixture Failed 48 Fixture Broken 48 Fixture Passed 48 Fixture Skipped 48 Fixture Unknown 48
To trigger cleanup immediately without waiting for the next scheduled run, use the API:
- Go to
<testops>/swagger-ui.html, where<testops>is the base URL of your Server instance. - Find the cleanup-controller category.
- Run /cleanup/scheduler/cleaner_schema_global → Try it out. Wait for the request to finish.
- Run /cleanup/scheduler/cleaner_schema_project → Try it out. Wait for the request to finish.
- Run /cleanup/scheduler/blob_remove_task → Try it out. Wait for the request to finish.
Large artifact volumes may produce error responses from these endpoints. The errors do not affect the cleanup process and can be ignored.
Monitor cleanup progress with this query against the testops database:
SELECT COUNT(*) FROM blob_remove_task;
Proceed to the next step when the query returns 0.
Cloud instances come with a predefined set of cleanup rules. See Default global cleanup rules.
Create and send data archives
These instructions apply to Allure TestOps version 5.x or higher only.
Use the most recent release of pg_dump version 16.
Stop all traffic to the Server instance by stopping the Allure TestOps service, the load balancer, or the ingress routes.
Create a database dump:
pg_dump --file=[FILE-NAME].dump --host=[DB-HOST] --port=[DB-PORT] \ --username=[USERNAME] --dbname=[DB-NAME] \ --compress=9 --format=c \ --schema=public --verbose --blobs --no-owner \ --no-privileges --no-comments -Wwhere:
FILE-NAME— output file nameDB-HOST— database hostDB-PORT— PostgreSQL portUSERNAME— database usernameDB-NAME— database name
Download all files from the test artifacts storage using S3cmd or a similar tool.
Pack the database dump and artifact files into one or more archives. Encrypt each archive with a strong password.
Upload the archives to a location accessible by the support team.
Share the archive links and passwords in the support ticket created earlier.
After the support team receives the archives, data import takes up to 24 hours. You will be notified via the same ticket once the Cloud instance is ready.