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

Upgrade to 1.5.19 breaks a form data test #906

Closed
basdijkstra opened this issue Mar 19, 2023 · 4 comments
Closed

Upgrade to 1.5.19 breaks a form data test #906

basdijkstra opened this issue Mar 19, 2023 · 4 comments
Assignees
Labels

Comments

@basdijkstra
Copy link

basdijkstra commented Mar 19, 2023

So, I've got a test in my RestAssured.Net repo that breaks after upgrading to WireMock .Net 1.5.19, but I don't understand why.

This is what the request that's made looks like:

image

and this is my stub definition:

private void CreateStubForFormData()
{
    this.Server?.Given(Request.Create().WithPath("/form-data").UsingPost()
        .WithHeader("Content-Type", "application/x-www-form-urlencoded")
        .WithBody(new ExactMatcher("name=John+Doe&email=johndoe%40example.com")))
        .RespondWith(Response.Create()
        .WithStatusCode(201));
}

Works a charm with version 1.5.18 (WireMock returns the 201), but not anymore after upgrading to 1.5.19 (WireMock returns a 404, so there's probably a matching issue). What am I missing here?

@StefH StefH added bug and removed question labels Mar 19, 2023
@StefH StefH self-assigned this Mar 19, 2023
@StefH
Copy link
Collaborator

StefH commented Mar 19, 2023

It related to new code in #903

I'll take a look.

@StefH
Copy link
Collaborator

StefH commented Mar 19, 2023

#907

@StefH StefH closed this as completed Mar 19, 2023
@StefH
Copy link
Collaborator

StefH commented Mar 19, 2023

@basdijkstra
It should be fixed in 1.5.20

Please test and if you find any other things, pleas e create a issue.

@basdijkstra
Copy link
Author

Hey @StefH, thank you, that new release has indeed fixed the issue. Appreciate the quick action taken!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants