-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cookies): improve cookies support for http API extension
- Loading branch information
Raphaël Benitte
authored and
Raphaël Benitte
committed
Jul 5, 2017
1 parent
8956e0d
commit 2bd5bca
Showing
5 changed files
with
96 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
@http_api @cookies | ||
Feature: GitHub API | ||
|
||
Scenario: Using GitHub API | ||
Given enable cookies | ||
When I GET https://twitter.com/ | ||
Then I should receive a 200 HTTP status code | ||
And response should have a guest_id cookie | ||
And response guest_id cookie should not be secure | ||
And response guest_id cookie should not be http only | ||
# Scenario: Using GitHub API | ||
# Given enable cookies | ||
# When I GET https://twitter.com/ | ||
# Then I should receive a 200 HTTP status code | ||
# And response should have a guest_id cookie | ||
# And response guest_id cookie should not be secure | ||
# And response guest_id cookie should not be http only | ||
|
||
Scenario: test | ||
Given I enable cookies | ||
And set request headers | ||
| Content-Type | application/x-www-form-urlencoded; charset=utf-8 | | ||
| Accept | application/json | | ||
And I set request form body | ||
| grant_type | ekino | | ||
| google_authorization_code | 4/nXXR1hDzzqi7qjOE5qF5YFmibifiQ_IzULvUovajtrY | | ||
| client_id | 4be37f59-0143-470d-a0fb-514f63da5d70 | | ||
When I POST http://localhost:8070/api/v1/proxy/auth | ||
And I dump response body | ||
Given I clear request body | ||
#Then I should receive a 200 HTTP status code | ||
When I GET http://localhost:8070/api/v1/proxy/verify | ||
And I dump response body | ||
Then I should receive a 200 HTTP status code |
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