-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an example unit test for using bundle files.
- Loading branch information
1 parent
3da002f
commit b409e24
Showing
3 changed files
with
78 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/justeat/httpclient-interception/master/src/HttpClientInterception/Bundles/http-request-bundle-schema.json", | ||
"id": "example-http-request-bundle", | ||
"comment": "An example bundle of HTTP requests to be intercepted.", | ||
"version": 1, | ||
"items": [ | ||
{ | ||
"id": "html", | ||
"comment": "An HTTP request that returns an HTML string.", | ||
"uri": "https://www.just-eat.co.uk/", | ||
"contentString": "<html><head><title>Just Eat</title></head></html>" | ||
}, | ||
{ | ||
"id": "json", | ||
"comment": "An HTTP request that returns JSON.", | ||
"uri": "https://api.github.com/orgs/justeat", | ||
"requestHeaders": { | ||
"Accept": [ | ||
"application/vnd.github.v3+json" | ||
], | ||
"Authorization": [ | ||
"bearer my-token" | ||
], | ||
"User-Agent": [ | ||
"My-App/1.0.0" | ||
] | ||
}, | ||
"responseHeaders": { | ||
"X-RateLimit-Limit": [ | ||
"60" | ||
] | ||
}, | ||
"contentFormat": "json", | ||
"contentJson": { | ||
"id": 1516790, | ||
"login": "justeat", | ||
"url": "https://api.github.com/orgs/justeat" | ||
} | ||
} | ||
] | ||
} |