fix pact test due to breaking api change (#720)
Bas van Beek authored 5 years ago
Peter Bourgon committed 5 years ago
15 | 15 | } |
16 | 16 | |
17 | 17 | pact := dsl.Pact{ |
18 | Port: 6666, | |
19 | 18 | Consumer: "addsvc", |
20 | 19 | Provider: "stringsvc", |
21 | 20 | } |
24 | 23 | pact.AddInteraction(). |
25 | 24 | UponReceiving("stringsvc uppercase"). |
26 | 25 | WithRequest(dsl.Request{ |
27 | Headers: map[string]string{"Content-Type": "application/json; charset=utf-8"}, | |
26 | Headers: dsl.MapMatcher{"Content-Type": dsl.String("application/json; charset=utf-8")}, | |
28 | 27 | Method: "POST", |
29 | Path: "/uppercase", | |
28 | Path: dsl.String("/uppercase"), | |
30 | 29 | Body: `{"s":"foo"}`, |
31 | 30 | }). |
32 | 31 | WillRespondWith(dsl.Response{ |
33 | 32 | Status: 200, |
34 | Headers: map[string]string{"Content-Type": "application/json; charset=utf-8"}, | |
33 | Headers: dsl.MapMatcher{"Content-Type": dsl.String("application/json; charset=utf-8")}, | |
35 | 34 | Body: `{"v":"FOO"}`, |
36 | 35 | }) |
37 | 36 |