Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Commit

Permalink
add journalist name to reply
Browse files Browse the repository at this point in the history
  • Loading branch information
Allie Crevier committed Sep 2, 2020
1 parent 38b285d commit 157effc
Show file tree
Hide file tree
Showing 58 changed files with 3,491 additions and 1,625 deletions.
2 changes: 1 addition & 1 deletion data/setUp.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"{\"body\": \"{\\\"passphrase\\\": \\\"correct horse battery staple profanity oil chewy\\\", \\\"username\\\": \\\"journalist\\\"}\", \"method\": \"POST\", \"path_query\": \"api/v1/token\", \"timeout\": 20}+1": "{\"status\": 200, \"body\": \"{\\n \\\"expiration\\\": \\\"2020-03-30T22:54:18.785946Z\\\", \\n \\\"journalist_first_name\\\": null, \\n \\\"journalist_last_name\\\": null, \\n \\\"journalist_uuid\\\": \\\"a46e5678-32ab-4c9d-94d6-ef46214a105e\\\", \\n \\\"token\\\": \\\"eyJhbGciOiJIUzI1NiIsImV4cCI6MTU4NTYwODg1OCwiaWF0IjoxNTg1NTgwMDU4fQ.eyJpZCI6MX0.3ECVQJecByeF0bYcf0nHSPayyztBjSZuLMwAIaT5hnA\\\"\\n}\\n\", \"headers\": {\"Content-Type\": \"application/json\", \"Content-Length\": \"317\", \"Server\": \"Werkzeug/0.16.0 Python/3.5.2\", \"Date\": \"Mon, 30 Mar 2020 14:54:18 GMT\"}, \"version\": \"0.2.0-dev-20200330-060315\\n\"}"}
{"{\"body\": \"{\\\"passphrase\\\": \\\"correct horse battery staple profanity oil chewy\\\", \\\"username\\\": \\\"journalist\\\"}\", \"method\": \"POST\", \"path_query\": \"api/v1/token\", \"timeout\": 20}+1": "{\"status\": 200, \"body\": \"{\\n \\\"expiration\\\": \\\"2020-09-01T03:23:28.417689Z\\\", \\n \\\"journalist_first_name\\\": \\\"\\\", \\n \\\"journalist_last_name\\\": \\\"\\\", \\n \\\"journalist_uuid\\\": \\\"eb6326bb-fb03-434b-a628-d093b1c8027d\\\", \\n \\\"token\\\": \\\"eyJpYXQiOjE1OTg5MDE4MDgsImV4cCI6MTU5ODkzMDYwOCwiYWxnIjoiSFMyNTYifQ.eyJpZCI6MX0.tMkp4aHcxOhQwARYa7Db3OL4JTz2iPSXNZbMO-eHLEE\\\"\\n}\\n\", \"headers\": {\"Content-Type\": \"application/json\", \"Content-Length\": \"313\", \"Server\": \"Werkzeug/0.16.0 Python/3.5.2\", \"Date\": \"Mon, 31 Aug 2020 19:23:28 GMT\"}, \"version\": \"0.3.0\\n\"}"}
39 changes: 26 additions & 13 deletions data/test-badotp.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
interactions:
- request:
body: '{"one_time_code": "no", "passphrase": "correct horse battery staple
profanity oil chewy", "username": "journalist"}'
body: '{"username": "journalist", "passphrase": "correct horse battery staple
profanity oil chewy", "one_time_code": "no"}'
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['119']
User-Agent: [python-requests/2.20.0]
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '115'
User-Agent:
- python-requests/2.22.0
method: POST
uri: http://127.0.0.1:8081/api/v1/token
response:
body: {string: "{\n \"error\": \"Forbidden\",\n \"message\": \"Token authentication failed.\"\n}\n"}
body:
string: "{\n \"error\": \"Forbidden\", \n \"message\": \"Token authentication\
\ failed.\"\n}\n"
headers:
Content-Length: ['73']
Content-Type: [application/json]
Date: ['Tue, 19 Mar 2019 18:56:30 GMT']
Server: [Werkzeug/0.14.1 Python/2.7.12]
status: {code: 403, message: FORBIDDEN}
Content-Length:
- '73'
Content-Type:
- application/json
Date:
- Mon, 31 Aug 2020 19:06:57 GMT
Server:
- Werkzeug/0.16.0 Python/3.5.2
status:
code: 403
message: FORBIDDEN
version: 1
37 changes: 25 additions & 12 deletions data/test-badpassword.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,33 @@
interactions:
- request:
body: '{"one_time_code": "278592", "passphrase": "no", "username": "journalist"}'
body: '{"username": "journalist", "passphrase": "no", "one_time_code": "205004"}'
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['119']
User-Agent: [python-requests/2.20.0]
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '73'
User-Agent:
- python-requests/2.22.0
method: POST
uri: http://127.0.0.1:8081/api/v1/token
response:
body: {string: "{\n \"error\": \"Forbidden\",\n \"message\": \"Token authentication failed.\"\n}\n"}
body:
string: "{\n \"error\": \"Forbidden\", \n \"message\": \"Token authentication\
\ failed.\"\n}\n"
headers:
Content-Length: ['73']
Content-Type: [application/json]
Date: ['Tue, 19 Mar 2019 18:56:30 GMT']
Server: [Werkzeug/0.14.1 Python/2.7.12]
status: {code: 403, message: FORBIDDEN}
Content-Length:
- '73'
Content-Type:
- application/json
Date:
- Mon, 31 Aug 2020 19:06:57 GMT
Server:
- Werkzeug/0.16.0 Python/3.5.2
status:
code: 403
message: FORBIDDEN
version: 1
39 changes: 26 additions & 13 deletions data/test-baduser.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
interactions:
- request:
body: '{"one_time_code": "278592", "passphrase": "correct horse battery staple
profanity oil chewy", "username": "no"}'
body: '{"username": "no", "passphrase": "correct horse battery staple profanity
oil chewy", "one_time_code": "205004"}'
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
Content-Length: ['119']
User-Agent: [python-requests/2.20.0]
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '111'
User-Agent:
- python-requests/2.22.0
method: POST
uri: http://127.0.0.1:8081/api/v1/token
response:
body: {string: "{\n \"error\": \"Forbidden\",\n \"message\": \"Token authentication failed.\"\n}\n"}
body:
string: "{\n \"error\": \"Forbidden\", \n \"message\": \"Token authentication\
\ failed.\"\n}\n"
headers:
Content-Length: ['73']
Content-Type: [application/json]
Date: ['Tue, 19 Mar 2019 18:56:30 GMT']
Server: [Werkzeug/0.14.1 Python/2.7.12]
status: {code: 403, message: FORBIDDEN}
Content-Length:
- '73'
Content-Type:
- application/json
Date:
- Mon, 31 Aug 2020 19:06:57 GMT
Server:
- Werkzeug/0.16.0 Python/3.5.2
status:
code: 403
message: FORBIDDEN
version: 1

0 comments on commit 157effc

Please sign in to comment.