Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matching headers doesn't work #30

Open
rafenden opened this issue Apr 21, 2017 · 1 comment
Open

Matching headers doesn't work #30

rafenden opened this issue Apr 21, 2017 · 1 comment

Comments

@rafenden
Copy link

rafenden commented Apr 21, 2017

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?

@norberttech
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants