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 the selection of urls to target an http disruption #73

Open
Tracked by #251
pablochacin opened this issue Nov 28, 2022 · 0 comments
Open
Tracked by #251

Allow the selection of urls to target an http disruption #73

pablochacin opened this issue Nov 28, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@pablochacin
Copy link
Collaborator

pablochacin commented Nov 28, 2022

When defining an HTTPFault allow the specification of a list of URL paths the fault should affect. requests not matching any of the paths should not be affected.

As many APIs have URLs that include varibles (e.g. user or product ids) the specification should allow for specifying wildcards or placeholders in the paths:

const fault = {
    select: ["books/*"]
    delay: 100,
}

As the fault specification allows the definition of a list of paths to be excluded, there is the potential of conflicts: a path that match the selection patterns but also the exclusion pattern. In this case, the exclusion should override the selection and the request should not be affected by the fault.

@pablochacin pablochacin added the enhancement New feature or request label Nov 28, 2022
@pablochacin pablochacin added this to the v0.2.0 milestone Nov 28, 2022
@pablochacin pablochacin modified the milestones: v0.2.0, v0.3.0, V0.4.0 Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant