Ricerche recenti


Nessuna ricerca recente

How can I create tests jobs to check route /job_statuses.json ?



Data ultimo post: 11 giu 2024

I'm writing a client that uses this API:

https://developer.zendesk.com/api-reference/ticketing/ticket-management/job_statuses/#list-job-statuses

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 commenti

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


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


Accedi per aggiungere un commento.

Non hai trovato quello che cerchi?

Nuovo post