Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHIS2-18568: hard-code response timeout to 30 seconds #19880

Open
wants to merge 2 commits into
base: 2.40
Choose a base branch
from

Conversation

cjmamo
Copy link
Contributor

@cjmamo cjmamo commented Feb 7, 2025

No description provided.

@cjmamo cjmamo requested review from a team February 7, 2025 10:40
@cjmamo cjmamo self-assigned this Feb 7, 2025
@cjmamo cjmamo changed the title DHIS2-18568): hard-code response timeout to 30 seconds DHIS2-18568: hard-code response timeout to 30 seconds Feb 7, 2025
Copy link

sonarqubecloud bot commented Feb 7, 2025

Comment on lines +267 to +269
Map<String, Object> route = new HashMap<>();
route.put("name", "route-under-test");
route.put("url", "http://localhost:" + mockServerContainer.getFirstMappedPort());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do this with json-tree, have a look at Json.object

@Autowired private RouteService service;

@Autowired private ObjectMapper jsonMapper;
private MockServerClient mockServerClient;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you are mocking a service that the routing somehow wants to talk with but that doesn't get clear in any why from the code. Maybe find some names that don't tell me what it is on a technical level (I can see that in the class name) but what the instance is doing, what role it has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants