Hello! I'm testing Pactflow bi-directional contrac...
# pactflow
e
Hello! I'm testing Pactflow bi-directional contract testing. I published Provider contract (OAS), and produced a Consumer contract via msw adapter, and have it published too. I need some help with understanding verification status. I verified that contracts are compatible with
swagger-mock-validator
locally, and UI says
Contract Comparison Status Compatible
, but overall status is
Unknown
and matrix says
verification failed
?
can-i-deploy
says no too
m
Please check if you've published provider self verification results This is a flag on the provider contract publish cli
e
right, I haven't - i was hoping that since we auto-generate OAS from the code this wouldn't be required (cli allowed to not publish it)
does self-verification result contain a list of OAS endpoints and other info, or can it be a generic json that says verification ?
s
Swagger file overwrites everytime all tests executes and passes
?
e
correct
assuming that OAS is always correct, this hack of a verification result works and Pactflow shows
Copy code
{
  "success": "true"
}
m
does self-verification result contain a list of OAS endpoints and other info, or can it be a generic json that says verification
It’s whatever makes sense for your context to demonstrate the verification was successful. It can be a string that says “YOLO” or a full markdown/json/other document with the test execution output etc.
👍 1