Configuring job settings
HCL® OneTest™ Data periodically deletes all the generated test data and the jobs of test data generation with API history to clear the memory. However, if you want to change the default number of days to retain the generated test data jobs in memory, you must configure the job settings.
Before you begin
- You must have cluster-admin permissions.
- You must have the IP address of the computer where HCL OneTest™ Server is installed.
About this task
As a default configuration, HCL®
OneTest™ Data
retains the jobs with their generated test data and API history for five days after
the jobs are completed. All the jobs that are created before five days are deleted.
If you want to retain the jobs with their generated data for more number of days in
HCL®
OneTest™ Data, then you must modify
the value of the data_rotation_time property to the number of
days you want to retain the jobs in the configmap
file.
Procedure
- Log in to the SSH console of HCL OneTest Server.
-
Run the following command to edit the configuration file:
kubectl edit configmap -n test-system {my-ots}-data-config -o yaml
-
Search for the data_rotation_time property in the
configuration file, and then set the value to the number of days you want the
jobs to retain in the server.
Note: The default value of data_rotation_time is 5.
For example, if you want to retain the jobs for 10 days, set the value of data_rotation_time property as 10.
- Save your changes, and then exit from the configuration file.
-
Run the following command to delete and restart the <onetest
data> pod:
kubectl delete pod {my-ots}-data-app-0