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

feat: add script execution after the rule validation #18

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

andrea-deri
Copy link
Contributor

@andrea-deri andrea-deri commented Mar 12, 2024

This PR permits to handle the configuration of business logic execution using dedicated scripts.
The main information about the logic is defined in this PR, this one is related only to the configuration APIs that includes the new information in the existing interfaces.

List of Changes

  • Updated interface and persistence logic, including references to scripting binding
  • Added dedicated entity that maps the collection used for store script code to be executed by engine
  • Added information on MockRuleEntity that permits to refers to script code to be executed in runtime
  • Added new API for retrieve all script metadata that can be assigned to mock rule

Motivation and Context

This modification broadens the use cases in which Mocker can be used, adding dynamic logic that can simplify and add expressiveness to tests.

How Has This Been Tested?

  • Tested in local environment

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@andrea-deri andrea-deri self-assigned this Mar 12, 2024
@andrea-deri andrea-deri requested a review from a team as a code owner March 12, 2024 14:07
Copy link

This PR exceeds the recommended size of 400 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Copy link

Comment this PR with update_code to format the code. Consider to use pre-commit to format the code.

@andrea-deri andrea-deri merged commit 510c049 into main Mar 12, 2024
6 of 16 checks passed
@andrea-deri andrea-deri deleted the feat-scripting-on-mock-rule branch March 12, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant