-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: merge TestAPIProxy into TestAPI
Now that the SDK‒proxy connection is itself instrumented, there's only one path to test, with no special error-handling logic required. I considered merging TestAPI and TestShared as well, now that (without TestAPIProxy) TestAPI is the only subclass of TestShared. But reorganizing the alphabetized helpers in TestShared versus the strictly-sequenced TestAPI methods can wait.
- Loading branch information
Showing
97 changed files
with
14,003 additions
and
5,474 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
interactions: | ||
- request: | ||
body: '{"username": "journalist", "passphrase": "correct horse battery staple | ||
profanity oil chewy", "one_time_code": "253705"}' | ||
headers: {} | ||
method: POST | ||
uri: api/v1/token | ||
response: !!python/object:securedrop_client.sdk.JSONResponse | ||
data: | ||
expiration: '2024-02-02T04:32:07.217091Z' | ||
journalist_first_name: null | ||
journalist_last_name: null | ||
journalist_uuid: 8248d25d-f6f6-4ad3-a6d4-a287641d533c | ||
token: IldNSTRhZFdmaDRQb0I3MzNYNmR0NkR4OFFrNDhsZEl0U05teVFyZEs4UTQi.ZbxUJw.JbZXOTTX32PYHCLs5X8sr7s10KI | ||
headers: | ||
connection: close | ||
content-length: '265' | ||
content-type: application/json | ||
date: Fri, 02 Feb 2024 02:32:07 GMT | ||
server: Werkzeug/2.2.3 Python/3.8.10 | ||
status: 200 | ||
version: 1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.