Skip to content

Matching headers doesn't work #30

Description

@rafalenden

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions