GitHub
01/18/2024, 8:16 PMinteractions[0].request.contents.encoded as false
The difference being 12.x has interactions[0].request.contents.encoded as base64
with interactions[0].request.contents.content being base64 encoded in 12.x
11.0.2
{
"consumer": {
"name": "myconsumer"
},
"interactions": [
{
"description": "a MATT message",
"key": "daf974126abe44c0",
"pending": false,
"request": {
"contents": {
"content": "MATThellotcpMATT",
"contentType": "application/matt",
"contentTypeHint": "DEFAULT",
"encoded": false
}
},
"response": [
{
"contents": {
"content": "MATTtcpworldMATT",
"contentType": "application/matt",
"contentTypeHint": "DEFAULT",
"encoded": false
}
}
],
"transport": "matt",
"type": "Synchronous/Messages"
},
{
"description": "an HTTP request to /matt",
"key": "b6c5b973534175ec",
"pending": false,
"providerStates": [
{
"name": "the Matt protocol exists"
}
],
"request": {
"body": {
"content": "MATThelloMATT",
"contentType": "application/matt",
"contentTypeHint": "DEFAULT",
"encoded": false
},
"headers": {
"content-type": [
"application/matt"
]
},
"method": "POST",
"path": "/matt"
},
"response": {
"body": {
"content": "MATTworldMATT",
"contentType": "application/matt",
"contentTypeHint": "DEFAULT",
"encoded": false
},
"headers": {
"content-type": [
"application/matt"
]
},
"status": 200
},
"type": "Synchronous/HTTP"
}
],
"metadata": {
"pact-js": {
"version": "11.0.2"
},
"pactRust": {
"ffi": "0.4.0",
"mockserver": "0.9.8",
"models": "1.0.4"
},
"pactSpecification": {
"version": "4.0"
},
"plugins": [
{
"configuration": {},
"name": "matt",
"version": "0.0.7"
}
]
},
"provider": {
"name": "myprovider"
}
}
{
"consumer": {
"name": "myconsumer"
},
"interactions": [
{
"description": "a MATT message",
"pending": false,
"request": {
"contents": {
"content": "TUFUVGhlbGxvdGNwTUFUVA==",
"contentType": "application/matt",
"contentTypeHint": "DEFAULT",
"encoded": "base64"
}
},
"response": [
{
"contents": {
"content": "TUFUVHRjcHdvcmxkTUFUVA==",
"contentType": "application/matt",
"contentTypeHint": "DEFAULT",
"encoded": "base64"
}
}
],
"transport": "matt",
"type": "Synchronous/Messages"
},
{
"description": "an HTTP request to /matt",
"pending": false,
"providerStates": [
{
"name": "the Matt protocol exists"
}
],
"request": {
"body": {
"content": "TUFUVGhlbGxvTUFUVA==",
"contentType": "application/matt",
"contentTypeHint": "DEFAULT",
"encoded": "base64"
},
"headers": {
"content-type": [
"application/matt"
]
},
"method": "POST",
"path": "/matt"
},
"response": {
"body": {
"content": "TUFUVHdvcmxkTUFUVA==",
"contentType": "application/matt",
"contentTypeHint": "DEFAULT",
"encoded": "base64"
},
"headers": {
"content-type": [
"application/matt"
]
},
"status": 200
},
"type": "Synchronous/HTTP"
}
],
"metadata": {
"pact-js": {
"version": "12.0.0"
},
"pactRust": {
"ffi": "0.4.12",
"mockserver": "1.2.4",
"models": "1.1.14"
},
"pactSpecification": {
"version": "4.0"
},
"plugins": [
{
"configuration": {},
"name": "matt",
"version": "0.0.7"
}
]
},
"provider": {
"name": "myprovider"
}
}
pact-foundation/pact-js
GitHub Actions: build-and-test (20.x, ubuntu-latest)
GitHub Actions: build-and-test (20.x, macos-latest)
GitHub Actions: build-and-test (18.x, ubuntu-latest)
GitHub Actions: build-and-test (18.x, macos-latest)
GitHub Actions: build-and-test (16.x, ubuntu-latest)
GitHub Actions: build-and-test (20.x, ubuntu-latest)
GitHub Actions: build-and-test (16.x, macos-latest)
GitHub Actions: build-and-test (20.x, macos-latest)
GitHub Actions: build-and-test (18.x, ubuntu-latest)
Cirrus CI: Task Summary
Cirrus CI: Task Summary
Cirrus CI: Task Summary
Cirrus CI: Task Summary
Cirrus CI: Task Summary
GitHub Actions: build-and-test (18.x, macos-latest)
Cirrus CI: Task Summary
GitHub Actions: build-and-test (16.x, ubuntu-latest)
GitHub Actions: build-and-test (16.x, macos-latest)
✅ 7 other checks have passed
7/25 successful checksGitHub
01/22/2024, 6:03 PM