I'm running into an issue with trying to mock an e...
# wiremock-dotnet
s
I'm running into an issue with trying to mock an endpoint that I can't figure out what is happening. I'm attempting to use a simple url, method, header match on the request, and when I submit the request, it says it doesn't match seemingly based on the header Real Request
Copy code
POST /v1/token HTTP/1.1
Host: localhost:54287
traceparent: oa-2a7ac95c456e05294be1ff5e58083ee8-kaldfjl
Content-Type: application/json
Content-Length: 22

{
    "test": true
}
Mapping - only included a portion that was relevant
Copy code
"request": {
                "url": "/v1/token",
                "method": "POST",
                "headers": {
                    "traceparent": {
                        "contains": "2a7ac95c456e05294be1ff5e58083ee8"
                    }
                }
            }
I'm checking the various endpoints to diagnose like the near misses endpoints, but I can't see any revelant information as to why it wouldn't match. Is there any other things I can check like adding better logging in the docker container that wiremock is running inside? Thread in Slack Conversation