-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: display V3 provider states in HTML (#357)
- Loading branch information
thatguysimon
authored
Nov 3, 2020
1 parent
8290189
commit 8e06a7f
Showing
6 changed files
with
118 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"provider": { | ||
"name": "Some Provider" | ||
}, | ||
"consumer": { | ||
"name": "Some Consumer" | ||
}, | ||
"interactions": [ | ||
{ | ||
"description": "a request to list all alligators in Tel Aviv", | ||
"providerStates": [ | ||
{"name": "alligators exist", "params" : {}}, | ||
{"name": "the city of Tel Aviv has a zoo", "params" : {}}, | ||
{"name": "the zoo keeps record of its alligator population", "params" : {}} | ||
], | ||
"params": {}, | ||
"request": { | ||
"method": "get", | ||
"path": "/alligators" | ||
}, | ||
"response": { | ||
"headers" : {"Content-Type": "application/json"}, | ||
"status" : 200, | ||
"body" : { | ||
"alligators": [{ | ||
"name": "Bob", | ||
"phoneNumber" : { | ||
"json_class": "Pact::Term", | ||
"data": { | ||
"generate": "12345678", | ||
"matcher": {"json_class":"Regexp","o":0,"s":"\\d+"} | ||
} | ||
} | ||
}] | ||
} | ||
} | ||
} | ||
], | ||
"metadata": { | ||
"pactSpecification": { | ||
"version": "3.0.0" | ||
} | ||
} | ||
} |