question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: WithBody can't be used with multiple matching rules?

See original GitHub issue

Stuck with a question: is it possible to use several matching rules for request body?

WithParam(…) from IParamsRequestBuilder as well as WithHeader(…) from IHeadersAndCookiesRequestBuilder support smth like:

foreach (var matcher in ParamMatchers)
{
     request.WithParam(matcher.Key, MatchBehaviour.AcceptOnMatch, matcher.Value.ToArray());
}

since it intakes key.

But for WithBody(…) from IRequestBuilder can’t do smth similar.

How can I deal with several matching rules for request body?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
StefHcommented, Jul 23, 2019

In some hours.

0reactions
PkAIRcommented, Jul 23, 2019

Got it, thanks. For now I don’t see any reason for doing it.

Anyway, I’m happy with this change.

Do you have eta when it will be available in stable?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot match url with dynamic path variable when used ...
It doesn't work if I use Wiremock in tandem with WireMockRestServiceServer (spring-cloud-contract). Working code - with Wiremock alone @Rule ...
Read more >
Unable to activate matching rule that identifies duplicate ...
Result: The matching rule will fail to activate because the number of match keys with 100+ dupes is more than 2% of the...
Read more >
CRS rule groups and rules - Azure Web Application Firewall
Custom rules are always applied before rules in the Core Rule Set are evaluated. If a request matches a custom rule, the corresponding...
Read more >
Frequently Asked Questions (FAQs) | Anatomical Sciences
Frequently Asked Questions (FAQs) · 2. Is it necessary to include a body donation in the donor's will? · 3. Are there age...
Read more >
How to set the matching rule for any 3 email fields matches?
2 Answers. Unfortunately Salesforce matching rules will not compare one field to a different field (like Email 1 field against Email 2 field), ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found