We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/sauparna.gupta/Library/Caches/go-build" GOENV="/Users/sauparna.gupta/Library/Application Support/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/sauparna.gupta/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/sauparna.gupta/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GOVCS="" GOVERSION="go1.20" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/Users/sauparna.gupta/services/terraform-provider-pact/go.mod" GOWORK="" CGO_CFLAGS="-O2 -g" CGO_CPPFLAGS="" CGO_CXXFLAGS="-O2 -g" CGO_FFLAGS="-O2 -g" CGO_LDFLAGS="-O2 -g" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hj/4rhb2sfx3wjf51nnmn6r4vp80000gr/T/go-build690945761=/tmp/go-build -gno-record-gcc-switches -fno-common"
{ "match": true, "comment": "Headers match with regex", "expected" : { "headers": { "Accept": "alligators", "Content-Type": "hippos" }, "matchingRules": { "$.headers.Accept": {"match": "regex", "regex": "\\w+"} } }, "actual": { "headers": { "Content-Type": "hippos", "Accept": "godzilla" } } }
{ "match": true, "comment": "Headers match with regex", "expected" : { "headers": { "Accept": "alligators", "Content-Type": "hippos" }, "matchingRules": { "$.header.Accept": {"match": "regex", "regex": "\\w+"} } }, "actual": { "headers": { "Content-Type": "hippos", "Accept": "godzilla" } } }
The field should be $.headers.<key> not $.header.<key>
$.headers.<key>
$.header.<key>
It can be easily reproduced by just generating a pact file where a consumer test contains matching rules for header keys
WARN: Ignoring unsupported matching rules {"match"=>"type"} for path $['header']['Authorization']
The text was updated successfully, but these errors were encountered:
Thanks for raising @Saup21
Resolved in v2.0.8 of pact-go, with libpact_ffi 0.4.23
Sorry, something went wrong.
No branches or pull requests
Software versions
Expected behaviour
Actual behaviour
The field should be
$.headers.<key>
not$.header.<key>
Steps to reproduce
It can be easily reproduced by just generating a pact file where a consumer test contains matching rules for header keys
Relevent log files
WARN: Ignoring unsupported matching rules {"match"=>"type"} for path $['header']['Authorization']
The text was updated successfully, but these errors were encountered: