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 binding on mock rules #15

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 adds the configuration of a new feature on Mocker configurator in order to handle the configuration of business logic execution using dedicated scripts. The main information about the logic is defined in this PR.
This new functionality is added:

  • as new visible information in mock resource view, for each mock rule that uses the scripting logic
  • as configurable feature either in edit and add mock rule pages

List of Changes

  • Added information about bound script for each mock rule that uses it
  • Added section on new/edit mock rule that permits to bind script to a mock rule
  • Added explicative tooltips on other fields
  • Several other little fixes and improvements

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):

Information about script bind to mock rule in detail view

Screenshot 2024-03-12 alle 17 43 05

Binding script to mock rule

Screenshot 2024-03-12 alle 15 28 08

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 merged commit 3543f37 into main Mar 12, 2024
7 of 10 checks passed
@andrea-deri andrea-deri deleted the feat-scripting-on-mock-rule branch March 12, 2024 14:35
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.

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