TuTu icon indicating copy to clipboard operation
TuTu copied to clipboard

Matching headers doesn't work

Open rafalenden opened this issue 8 years ago • 1 comments

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?

rafalenden avatar Apr 21 '17 13:04 rafalenden

That does not sounds good, could you please work on a pull request with fix?

norberttech avatar Apr 21 '17 13:04 norberttech