Recent searches
No recent searches
How can I create tests jobs to check route /job_statuses.json ?
Posted Jun 11, 2024
I'm writing a client that uses this API:
I have no active jobs, so the current list of jobs is empty.
However I would like to validate my code that deserializes the list jobs when it isn't empty.
So how can I create fake jobs to check that my client works?
All the API routes that create jobs (by the way I haven't found a comprehensive list of those) are destructive, so I want to avoid destructing things for testing.
0
2
2 comments
Olivier Mengué
It would be helpful to have an API route that produce a job with 30 expected results, and every second one results is marked as completed until it is done.
That test route could also have parameters to produce failed results.
0
Olivier Mengué
In fact I just noticed that my account has plenty of completed “Batch Update Ticket” jobs, so I should be able to go forward with my implementation.
0