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

Allow retrieving the messages corresponding to a test case #23

Open
lbroudoux opened this issue Jan 7, 2025 · 0 comments
Open

Allow retrieving the messages corresponding to a test case #23

lbroudoux opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
component/documentation Improvements or additions to documentation component/runtime Runtime behavior of test container kind/enhancement Enhancement of existing feature
Milestone

Comments

@lbroudoux
Copy link
Member

Reason/Context

As of today, we can launch contract tests with the library and get a TestResult object that provides details on global success and also success on each operation. However, we can not easily retrieve the detailed request/response pairs or event messages that were exchanged with the tested endpoint to realize additional checks or get more informations on what's wrong.

Description

We should provide some getMessagesForTestCase(testResultId, testCaseId) and getEventMessagesForTestCase(testResultId, testCaseId) utility methods to retrieve those messages.

Implementation ideas

Those methods could be set directly on MicrocksContainer and call the REST API exposed by Microcks server.

@lbroudoux lbroudoux added component/documentation Improvements or additions to documentation kind/enhancement Enhancement of existing feature component/runtime Runtime behavior of test container labels Jan 7, 2025
@lbroudoux lbroudoux added this to the 0.3.0 milestone Jan 7, 2025
@lbroudoux lbroudoux self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/documentation Improvements or additions to documentation component/runtime Runtime behavior of test container kind/enhancement Enhancement of existing feature
Projects
None yet
Development

No branches or pull requests

1 participant