smocker
smocker copied to clipboard
Request Body matcher is saved incorrectly in mocks.yml
Summary
Smocker appears to add an extra | character when saving a request-body matcher to the mocks.yml file.
Smocker Version
0.18.2 (using latest version of docker thiht/smocker:latest)
Steps to Reproduce
-
In the UI, add a new POST mock. Configure the request body with
Default->ShouldContainSubstringmatcher
-
Open
mocks.yml
Expected: body matcher is defined with yaml keys
- request:
body:
matcher: ShouldContainSubstring
value: test-substring
Actual:
body matcher has extra | character, which starts a multi-line string
- request:
body: |
matcher: ShouldContainSubstring
value: test-substring