Mock service that returns 500 for certain time

Six Stars

Mock service that returns 500 for certain time

How could I create a Talend service that would return for 10 seconds 500 response and after 10 seconds it would work normally?

 

I need that for testing retry logic.


Accepted Solutions
Community Manager

Re: Mock service that returns 500 for certain time

I have knocked up a basic example service. It is attached. It was written using 6.2.1. You can use it to see how I did it or add to it for your testing. Essentially I am taking the time when the service starts and then checking the time every time the service is called. 


All Replies
Community Manager

Re: Mock service that returns 500 for certain time

I have knocked up a basic example service. It is attached. It was written using 6.2.1. You can use it to see how I did it or add to it for your testing. Essentially I am taking the time when the service starts and then checking the time every time the service is called. 

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read