wiremock / robotframework-wiremock

Robot framework library for WireMock
https://wiremock.org/docs/solutions/python
MIT License
6 stars 6 forks source link

create_mock_request_matcher just support bodyPatterns->equalToJson, not support bodyPatterns->match #4

Open nixuewei opened 3 years ago

nixuewei commented 3 years ago

for def create_mock_request_matcher, currently it just support bodyPatterns->equalToJson. but I want to use bodyPatterns->match if json_body:

req['bodyPatterns'] = [{'equalToJson': json.dumps(json_body),

        #                         'ignoreArrayOrder': True,
        #                         'ignoreExtraElements': True}]
        req['bodyPatterns'] = [{'match': json_body,
                                'ignoreArrayOrder': True,
                                'ignoreExtraElements': True}]