TuTu
TuTu copied to clipboard
Matching headers doesn't work
Hi,
I have a use case when I try to use TuTu for Soap mocking, SoapClient during the request is adding SOAPAction header which ends with the name of Soap action.
Unfortunately matching of headers doesn't work.
responses.yml
say_hello:
request:
path: /soap-endpoint
methods: ['POST']
headers:
SOAPAction: endsWith('#GetDetails'))
response:
content: |
Hello {{ request.headers }}!
I'm missing something?
That does not sounds good, could you please work on a pull request with fix?