-
-
Notifications
You must be signed in to change notification settings - Fork 178
/
pact_broker_client-pact_broker.json
133 lines (130 loc) · 3.17 KB
/
pact_broker_client-pact_broker.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
{
"provider": {
"name": "Pact Broker"
},
"consumer": {
"name": "Pact Broker Client"
},
"interactions": [
{
"description": "a request to publish a pact",
"request": {
"method": "put",
"path": "/pacticipant/Condor/versions/1.3.0/pacts/Pricing%20Service",
"body": {
"consumer": {
"name": "Condor"
},
"provider": {
"name": "Pricing Service"
},
"interactions": [
]
},
"headers": {
"X-Pact-Broker-Client-Version": "2.0.0",
"Content-Type": "application/json"
}
},
"response": {
"headers": {
},
"status": 201
}
},
{
"description": "a request to publish a pact",
"providerState": "an error occurs while publishing a pact",
"request": {
"method": "put",
"path": "/pacticipant/Condor/versions/1.3.0/pacts/Pricing%20Service",
"body": {
"consumer": {
"name": "Condor"
},
"provider": {
"name": "Pricing Service"
},
"interactions": [
]
},
"headers": {
"X-Pact-Broker-Client-Version": "2.0.0",
"Content-Type": "application/json"
}
},
"response": {
"status": 500,
"headers": {
},
"body": {
"error": {
"json_class": "Pact::Term",
"data": {
"generate": "An error occurred",
"matcher": {"json_class":"Regexp","o":0,"s":".*"}
}
}
}
}
},
{
"description": "a request to retrieve the repository URL of the 'Pricing Service'",
"providerState": "the 'Pricing Service' does not exist in the pact-broker",
"request": {
"method": "get",
"path": "/pacticipant/Pricing%20Service/repository_url",
"headers": {
"X-Pact-Broker-Client-Version": "2.0.0",
"Accept": "text/plain"
}
},
"response": {
"status": 404,
"headers": {
}
}
},
{
"description": "a request to register the repository URL of a pacticipant",
"providerState": "the 'Pricing Service' does not exist in the pact-broker",
"request": {
"method": "patch",
"path": "/pacticipant/Pricing%20Service",
"body": {
"repository_url": "[email protected]:business-systems/condor.git"
},
"headers": {
"X-Pact-Broker-Client-Version": "2.0.0",
"Content-Type": "application/json+patch"
}
},
"response": {
"status": 201
}
},
{
"description": "a request to retrieve the repository URL of the 'Pricing Service'",
"providerState": "the 'Pricing Service' already exists in the pact-broker",
"request": {
"method": "get",
"path": "/pacticipant/Pricing%20Service/repository_url",
"headers": {
"X-Pact-Broker-Client-Version": "2.0.0",
"Accept": "text/plain"
}
},
"response": {
"status": 200,
"headers": {"Content-Type": "text/plain;charset=utf-8"
},
"body": "[email protected]:business-systems/condor.git"
}
}
],
"metadata": {
"pact_gem": {
"version": "1.0.15"
}
}
}