Skip to content

Added initial Mock utility#1

Merged
v-mwalk merged 2 commits into
mainfrom
AddMockUtils
Apr 2, 2026
Merged

Added initial Mock utility#1
v-mwalk merged 2 commits into
mainfrom
AddMockUtils

Conversation

@v-mwalk

@v-mwalk v-mwalk commented Apr 2, 2026

Copy link
Copy Markdown
Member

Added Mock ability to utils. This enables consumer frameworks to offload mocking functionality to Controlium Utils.

Test create listeners, which can use any combination of URL/Method/Body filters (using JSON-Path) to setup a named listener that, if triggered can be instructed to block, passthrough to intended destination or return a mocked response.

The consumer (the framework using this set of utils) intercepts all AUT requests and passes them to Utils' Mock; which decides what to do (block, passthrough or respond with a mocked response).

Lots of logging and transaction storage to provide framework with a way to access transaction data if needed.

@v-mwalk

v-mwalk commented Apr 2, 2026

Copy link
Copy Markdown
Member Author

This needs to handle using remote (Mock Server) based mockings as well. There could be frameworks that dont tightly wrap AUT's (and intercept within same instances as AUT) and use 'external' Mock servers. In this instance, Mock needs to pass mocking decision/data back to caller to either response with mock data or passthrough itself.

@v-mwalk v-mwalk self-assigned this Apr 2, 2026

@v-mwalk v-mwalk left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

All good. But will need unit tests as some point before release

@v-mwalk v-mwalk merged commit 6ac0e1d into main Apr 2, 2026
2 checks passed
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.

1 participant