-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAvroConsumer-AvroProvider.json
81 lines (81 loc) · 1.8 KB
/
AvroConsumer-AvroProvider.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"consumer": {
"name": "AvroConsumer"
},
"interactions": [
{
"description": "A request to do get some Avro stuff",
"pending": false,
"pluginConfiguration": {
"avro": {
"record": "User",
"schemaKey": "1184dbf3292cee8bc7390762dd15fc52"
}
},
"request": {
"method": "GET",
"path": "/avro"
},
"response": {
"body": {
"content": "AghtYXR0",
"contentType": "avro/binary;record=User",
"contentTypeHint": "BINARY",
"encoded": "base64"
},
"headers": {
"content-type": [
"avro/binary"
]
},
"matchingRules": {
"body": {
"$.id": {
"combine": "AND",
"matchers": [
{
"match": "number"
}
]
},
"$.username": {
"combine": "AND",
"matchers": [
{
"match": "notEmpty"
}
]
}
}
},
"status": 200
},
"transport": "http",
"type": "Synchronous/HTTP"
}
],
"metadata": {
"pactRust": {
"ffi": "0.4.22",
"mockserver": "1.2.9",
"models": "1.2.3"
},
"pactSpecification": {
"version": "4.0"
},
"plugins": [
{
"configuration": {
"1184dbf3292cee8bc7390762dd15fc52": {
"avroSchema": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"io.pact\",\"fields\":[{\"name\":\"id\",\"type\":\"long\"},{\"name\":\"username\",\"type\":\"string\"}]}"
}
},
"name": "avro",
"version": "0.0.5"
}
]
},
"provider": {
"name": "AvroProvider"
}
}