Skip to content

Requests.reset_request_journal() doesn't work with Wiremock V3 #95

@EvgeniyaGorobets

Description

@EvgeniyaGorobets

Apologies if this is considered in scope for #91, but I wanted to call out a specific bug.

The class method Requests.reset_request_journal() (code) throws a 404 NotFoundException after upgrading to Wiremock V3, because the POST __admin/requests/reset endpoint was deleted: wiremock/wiremock@47d4201#diff-629cfdfeca71797a13d4138932081242b849e382a194fd6784736ce83c310350L84

I believe this method should call DELETE __admin/requests instead, since this endpoint fires the new ResetRequestsTask: https://github.com/wiremock/wiremock/blob/master/src/main/java/com/github/tomakehurst/wiremock/admin/AdminRoutes.java#L84

Reproduction steps

Start up wiremock and call Requests.reset_request_journal()

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issueGood issue to get started with the project

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions