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

add modification rule support for betamax #244

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

babarismail
Copy link

Change overview:
This will allow users to modify responses and send them back to the client. This was a feature that we required since our requests were dynamic and sent unique ids in them. It was required to send the unique id back in the response which I have written a custom modify rule for.
Modify rules will be configured just the way matching rules are. This will allow users to write their own custom logic. The only modify rule that comes with it by default is a no-op.

…custom logic just like a MatchRule before returning the response.
# Resolved Conflicts:
#	betamax-core/src/main/java/software/betamax/Configuration.java
#	betamax-core/src/main/java/software/betamax/ModifyRule.java
#	betamax-core/src/main/java/software/betamax/tape/MemoryTape.java
#	betamax-core/src/main/java/software/betamax/tape/Tape.java
@babarismail
Copy link
Author

Hey guys, can you take a look at this PR?

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