Facu Conejero
03/06/2023, 12:21 PMFacu Conejero
03/06/2023, 12:22 PM{
"consumer": {
"name": "verification-ui"
},
"interactions": [
{
"description": "the email address for a valid guid",
"providerStates": [
{
"name": "returns a 204"
}
],
"request": {
"body": {
"guid": "some-guid"
},
"headers": {
"Content-Type": "application/json"
},
"method": "POST",
"path": "/api/v1/verify-email-address"
},
"response": {
"body": {},
"headers": {
"Content-Type": "application/json"
},
"status": 204
}
}
],
"metadata": {
"pact-js": {
"version": "10.4.1"
},
"pactRust": {
"ffi": "0.4.0",
"models": "1.0.4"
},
"pactSpecification": {
"version": "3.0.0"
}
},
"provider": {
"name": "account"
}
}
Timothy Jones
03/06/2023, 1:04 PMis it possible between different technologies?Yes. This is a major selling point of Pact
Timothy Jones
03/06/2023, 1:05 PMAfter passing it a string it should return a succesful 204 message. However, I’m seeing it return 502Pact doesn’t return 502, so this is probably a misconfiguration in your code
Timothy Jones
03/06/2023, 1:06 PMThe only thing that occurs to me is that it may have to be with the metadata since it’s between two different technologies and I haven’t specified that anywhere?No, I don’t think this is related.
Timothy Jones
03/06/2023, 1:06 PMTimothy Jones
03/06/2023, 1:07 PMThis is what the contract looks like after being generated by the consumerAside - but you should never need to look in the contract file. You can generally treat it as opaque (although in this case it’s helpful, as we can see what you’re trying to do with it)
Facu Conejero
03/06/2023, 1:32 PMTimothy Jones
03/06/2023, 1:33 PMTimothy Jones
03/06/2023, 1:34 PMTimothy Jones
03/06/2023, 1:34 PMFacu Conejero
03/06/2023, 1:40 PM