Skip to content

Commit

Permalink
chore: cleanup v3 interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed May 29, 2021
1 parent 31fb98c commit d801d63
Show file tree
Hide file tree
Showing 17 changed files with 374 additions and 650 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pact: install docker
go test -v -tags=consumer -count=1 github.com/pact-foundation/pact-go/examples/v2/... -run TestExample
go test -v -tags=provider -count=1 github.com/pact-foundation/pact-go/examples/v2/... -run TestExample

pactv3: installv3
pactv3: clean #installv3
@echo "--- 🔨 Running Pact examples"
mkdir -p ./examples/v3/pacts
go test -v -tags=consumer -count=1 github.com/pact-foundation/pact-go/examples/v3/...
Expand Down
16 changes: 4 additions & 12 deletions examples/v2/consumer/goconsumer/user_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,12 @@ func TestExampleConsumerLoginHandler_UserExists(t *testing.T) {
AddInteraction().
Given("User jmarie exists").
UponReceiving("A request to login with user 'jmarie'").
WithRequest(request{
Method: "POST",
Path: term("/login/10", "/login/[0-9]+"),
Query: dsl.MapMatcher{
"foo": term("bar", "[a-zA-Z]+"),
},
Body: loginRequest,
Headers: commonHeaders,
}).

WillRespondWith(dsl.Response{
Status: 200,
Body: dsl.Match(ex.LoginResponse{
User: &ex.User{},
}),
Body: map[string]interface{}{
"Foo": eachLike("foo", 0),
},
Headers: dsl.MapMatcher{
"X-Api-Correlation-Id": dsl.Like("100"),
"Content-Type": term("application/json; charset=utf-8", `application\/json`),
Expand Down
57 changes: 0 additions & 57 deletions examples/v2/pacts/consumer-httpbin.json

This file was deleted.

25 changes: 0 additions & 25 deletions examples/v2/pacts/consumer-selfsignedtls.json

This file was deleted.

232 changes: 0 additions & 232 deletions examples/v2/pacts/jmarie-loginprovider.json

This file was deleted.

Loading

0 comments on commit d801d63

Please sign in to comment.