-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
Minor changes to HttpCallAssertion #483
Comments
I'am noticing a breaking change regarding to this: |
@LazloBodi That's actually related to #323. In short, you'll just need to put a * at the end of it if it might have a query string, i.e. |
Yep, that was the problem. thanks for the help. |
With #481, where fake responses can be set up for requests that meet specific conditions, fluent methods for setting up those conditions began to very closely resemble methods used in call assertions (
WithVerb
,WithQueryParam
, etc.). This revealed a couple omissions and less-than-ideal method signatures inHttpCallAssertion
that will be fixed for 3.0. Specifically:BREAKING changes:
WithQueryParamValue(name, value)
will be replaced by the existingWithQueryParam(name)
by adding an optionalvalue
parameter.WithoutQueryParamValue(name, value)
will be replaced by the existingWithoutQueryParam(name)
by adding an optionalvalue
parameter.WithQueryParamValues(object)
andWithoutQueryParamValues(object)
will be renamedWithQueryParams
andWithoutQueryParams
, respectively.Additions and non-breaking changes:
WithVerb
will have an overload that takes a string.WithVerb
overloads will allow multiple verbs (params); assert will pass on any match.WithAnyQueryParam(params string[])
to assert any of a list of query parameter names was passed, or any query parameter at all if no list is provided.The text was updated successfully, but these errors were encountered: