-
Notifications
You must be signed in to change notification settings - Fork 169
/
rest-fights-grpc-locations.json
192 lines (192 loc) · 7.65 KB
/
rest-fights-grpc-locations.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
"consumer": {
"name": "rest-fights"
},
"interactions": [
{
"comments": {
"testname": "io.quarkus.sample.superheroes.fight.service.FightServiceConsumerContractTests.helloLocationsSuccess()"
},
"description": "A hello request",
"interactionMarkup": {
"markup": "```protobuf\nmessage HelloRequest {\n}\n```\n\n```protobuf\nmessage HelloReply {\n string message = 1;\n}\n```\n",
"markupType": "COMMON_MARK"
},
"key": "6157e489",
"pending": false,
"pluginConfiguration": {
"protobuf": {
"descriptorKey": "a8fe1a3b44eaf00837c1f6f2dbc2f63d",
"service": ".io.quarkus.sample.superheroes.location.v1.Locations/Hello"
}
},
"request": {
"contents": {
"content": ""
},
"metadata": {
"contentType": "application/protobuf;message=.io.quarkus.sample.superheroes.location.v1.HelloRequest"
}
},
"response": [
{
"contents": {
"content": "Cg9IZWxsbyBsb2NhdGlvbiE=",
"contentType": "application/protobuf; message=.io.quarkus.sample.superheroes.location.v1.HelloReply",
"contentTypeHint": "BINARY",
"encoded": "base64"
},
"matchingRules": {
"body": {
"$.message": {
"combine": "AND",
"matchers": [
{
"match": "regex",
"regex": ".+"
}
]
}
}
},
"metadata": {
"contentType": "application/protobuf;message=.io.quarkus.sample.superheroes.location.v1.HelloReply"
}
}
],
"transport": "grpc",
"type": "Synchronous/Messages"
},
{
"comments": {
"testname": "io.quarkus.sample.superheroes.fight.service.FightServiceConsumerContractTests.findRandomLocationSuccess()"
},
"description": "A request for a random location",
"interactionMarkup": {
"markup": "```protobuf\nmessage RandomLocationRequest {\n}\n```\n\n```protobuf\nmessage Location {\n string name = 1;\n string picture = 3;\n}\n```\n",
"markupType": "COMMON_MARK"
},
"key": "be585f93",
"pending": false,
"pluginConfiguration": {
"protobuf": {
"descriptorKey": "a8fe1a3b44eaf00837c1f6f2dbc2f63d",
"service": ".io.quarkus.sample.superheroes.location.v1.Locations/GetRandomLocation"
}
},
"request": {
"contents": {
"content": ""
},
"metadata": {
"contentType": "application/protobuf;message=.io.quarkus.sample.superheroes.location.v1.RandomLocationRequest"
}
},
"response": [
{
"contents": {
"content": "CgtHb3RoYW0gQ2l0eRooaHR0cDovL3d3dy5zb21ld2hlcmUuY29tL2dvdGhhbV9jaXR5LnBuZw==",
"contentType": "application/protobuf; message=.io.quarkus.sample.superheroes.location.v1.Location",
"contentTypeHint": "BINARY",
"encoded": "base64"
},
"matchingRules": {
"body": {
"$.name": {
"combine": "AND",
"matchers": [
{
"match": "regex",
"regex": ".+"
}
]
},
"$.picture": {
"combine": "AND",
"matchers": [
{
"match": "regex",
"regex": "((http|https):\\/\\/).+"
}
]
}
}
},
"metadata": {
"contentType": "application/protobuf;message=.io.quarkus.sample.superheroes.location.v1.Location"
}
}
],
"transport": "grpc",
"type": "Synchronous/Messages"
},
{
"comments": {
"testname": "io.quarkus.sample.superheroes.fight.service.FightServiceConsumerContractTests.findRandomLocationNoLocationFound()"
},
"description": "A request for a random location",
"interactionMarkup": {
"markup": "```protobuf\nmessage RandomLocationRequest {\n}\n```\n\n```protobuf\nmessage Location {\n}\n```\n",
"markupType": "COMMON_MARK"
},
"key": "5dffc2cf",
"pending": false,
"pluginConfiguration": {
"protobuf": {
"descriptorKey": "a8fe1a3b44eaf00837c1f6f2dbc2f63d",
"service": ".io.quarkus.sample.superheroes.location.v1.Locations/GetRandomLocation"
}
},
"providerStates": [
{
"name": "No random location found"
}
],
"request": {
"contents": {
"content": ""
},
"metadata": {
"contentType": "application/protobuf;message=.io.quarkus.sample.superheroes.location.v1.RandomLocationRequest"
}
},
"response": [
{
"contents": {
"content": ""
},
"metadata": {
"contentType": "application/protobuf;message=.io.quarkus.sample.superheroes.location.v1.Location",
"grpc-message": "A location was not found",
"grpc-status": "NOT_FOUND"
}
}
],
"transport": "grpc",
"type": "Synchronous/Messages"
}
],
"metadata": {
"pact-jvm": {
"version": "4.6.11"
},
"pactSpecification": {
"version": "4.0"
},
"plugins": [
{
"configuration": {
"a8fe1a3b44eaf00837c1f6f2dbc2f63d": {
"protoDescriptors": "Ct8GChhsb2NhdGlvbnNlcnZpY2UtdjEucHJvdG8SKWlvLnF1YXJrdXMuc2FtcGxlLnN1cGVyaGVyb2VzLmxvY2F0aW9uLnYxIqcBCghMb2NhdGlvbhISCgRuYW1lGAEgASgJUgRuYW1lEiAKC2Rlc2NyaXB0aW9uGAIgASgJUgtkZXNjcmlwdGlvbhIYCgdwaWN0dXJlGAMgASgJUgdwaWN0dXJlEksKBHR5cGUYBCABKA4yNy5pby5xdWFya3VzLnNhbXBsZS5zdXBlcmhlcm9lcy5sb2NhdGlvbi52MS5Mb2NhdGlvblR5cGVSBHR5cGUiFwoVUmFuZG9tTG9jYXRpb25SZXF1ZXN0ImIKDUxvY2F0aW9uc0xpc3QSUQoJbG9jYXRpb25zGAEgAygLMjMuaW8ucXVhcmt1cy5zYW1wbGUuc3VwZXJoZXJvZXMubG9jYXRpb24udjEuTG9jYXRpb25SCWxvY2F0aW9ucyIOCgxIZWxsb1JlcXVlc3QiJgoKSGVsbG9SZXBseRIYCgdtZXNzYWdlGAEgASgJUgdtZXNzYWdlKlIKDExvY2F0aW9uVHlwZRIKCgZQTEFORVQQABIICgRDSVRZEAESCQoFUExBQ0UQAhIKCgZJU0xBTkQQAxILCgdDT1VOVFJZEAQSCAoETU9PThAFMpUCCglMb2NhdGlvbnMSjAEKEUdldFJhbmRvbUxvY2F0aW9uEkAuaW8ucXVhcmt1cy5zYW1wbGUuc3VwZXJoZXJvZXMubG9jYXRpb24udjEuUmFuZG9tTG9jYXRpb25SZXF1ZXN0GjMuaW8ucXVhcmt1cy5zYW1wbGUuc3VwZXJoZXJvZXMubG9jYXRpb24udjEuTG9jYXRpb24iABJ5CgVIZWxsbxI3LmlvLnF1YXJrdXMuc2FtcGxlLnN1cGVyaGVyb2VzLmxvY2F0aW9uLnYxLkhlbGxvUmVxdWVzdBo1LmlvLnF1YXJrdXMuc2FtcGxlLnN1cGVyaGVyb2VzLmxvY2F0aW9uLnYxLkhlbGxvUmVwbHkiAEJFCitpby5xdWFya3VzLnNhbXBsZS5zdXBlcmhlcm9lcy5sb2NhdGlvbi5ncnBjQhRMb2NhdGlvblNlcnZpY2VQcm90b1ABYgZwcm90bzM=",
"protoFile": "syntax = \"proto3\";\n\noption java_multiple_files = true;\noption java_package = \"io.quarkus.sample.superheroes.location.grpc\";\noption java_outer_classname = \"LocationServiceProto\";\n\npackage io.quarkus.sample.superheroes.location.v1;\n\nenum LocationType {\n PLANET = 0;\n CITY = 1;\n PLACE = 2;\n ISLAND = 3;\n COUNTRY = 4;\n MOON = 5;\n}\n\nmessage Location {\n string name = 1;\n string description = 2;\n string picture = 3;\n LocationType type = 4;\n}\n\nmessage RandomLocationRequest {}\n\nmessage LocationsList {\n repeated Location locations = 1;\n}\n\nmessage HelloRequest {}\n\nmessage HelloReply {\n string message = 1;\n}\n\nservice Locations {\n rpc GetRandomLocation(RandomLocationRequest) returns (Location) {}\n rpc Hello(HelloRequest) returns (HelloReply) {}\n}\n"
}
},
"name": "protobuf",
"version": "0.5.4"
}
]
},
"provider": {
"name": "grpc-locations"
}
}