최근 검색


최근 검색 없음

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



2024년 6월 11일에 게시됨

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개

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


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물