citrusframework / citrusframework/citrus

Wait for http endpoint to deliver certain payload

Open
#473 0 comments 0 reactions 0 assignees View on GitHub
enhancement prio-low
Dominant language
Java
Stars
485
Forks
155
Avg merge
4d 22h
Merged PRs (30d)
6

Description

**User story**
As a citrus test developer, I want to be able to wait for a certain payload from my microservice http endpoint, to evaluate whether the service is ready or not.

**Additional context**
Let's say a microservice has a `/status` endpoint responding with a json document as follows:
```json
{ "status": "busy/ready/booting }
```
It would be great if one could state something like
```java
waitFor()
.http()
.url("http://myAwesomeService:8080/status")
.method(HttpMethod.GET)
.status(HttpStatus.OK)
.validate("$.status", "ready")
```

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing waitFor().http() entry point and its handling of URL, method, and status assertions. Determine where response payload validation belongs, then verify that a JSON status value such as "ready" can be matched before considering the work complete; no files or tests are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.