-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(postman): introduce support for v2.0.0 auth object (#251)
fixes #250
- Loading branch information
Showing
4 changed files
with
111 additions
and
6 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
68 changes: 68 additions & 0 deletions
68
packages/postman/tests/fixtures/v2.0.0-auth.postman_collection.json
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,68 @@ | ||
{ | ||
"info": { | ||
"name": "Auth", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "users", | ||
"item": [ | ||
{ | ||
"name": "Users", | ||
"request": { | ||
"auth": { | ||
"type": "bearer", | ||
"bearer": { | ||
"token": "token-value" | ||
} | ||
}, | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"key": "Accept", | ||
"value": "application/json" | ||
} | ||
], | ||
"url": "{{baseUrl}}/users" | ||
}, | ||
"response": [ | ||
{ | ||
"name": "Success", | ||
"originalRequest": { | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"key": "Accept", | ||
"value": "application/json" | ||
}, | ||
{ | ||
"key": "Authorization", | ||
"value": "Bearer <token>", | ||
"description": "Added as a part of security scheme: bearer" | ||
} | ||
], | ||
"url": "{{baseUrl}}/user" | ||
}, | ||
"status": "OK", | ||
"code": 200, | ||
"header": [ | ||
{ | ||
"key": "Content-Type", | ||
"value": "application/json" | ||
} | ||
], | ||
"cookie": [], | ||
"body": "{\n \"username\": \"<string>\",\n \"name\": \"<string>\" \n}" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"variable": [ | ||
{ | ||
"key": "baseUrl", | ||
"value": "https://example.com/api/v1" | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/postman/tests/fixtures/v2.0.0-auth.postman_collection.result.json
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,21 @@ | ||
[ | ||
{ | ||
"bodySize": -1, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "Accept", | ||
"value": "application/json" | ||
}, | ||
{ | ||
"name": "authorization", | ||
"value": "Bearer token-value" | ||
} | ||
], | ||
"headersSize": -1, | ||
"httpVersion": "HTTP/1.1", | ||
"method": "GET", | ||
"queryString": [], | ||
"url": "https://example.com/api/v1/users" | ||
} | ||
] |