Commit graph

44 commits

Author SHA1 Message Date
Daniel Krol
f8d51f9b31 Rename file to be more uniform 2022-07-06 15:26:26 -04:00
Daniel Krol
125e461d95 Change password endpoint implemented and tested 2022-07-06 14:03:59 -04:00
Daniel Krol
bce47979f6 Comments, remove some old junk 2022-07-06 13:00:23 -04:00
Daniel Krol
3829155308 ErrNoUId -> ErrWrongCredentials 2022-07-06 12:44:35 -04:00
Daniel Krol
f8e5ada1ee Comment 2022-06-29 11:15:00 -04:00
Daniel Krol
d121b115f2 Fix intergration test after moving functions around 2022-06-29 11:10:29 -04:00
Daniel Krol
3d492d8b86 Update API: PostWallet no longer returns a wallet 2022-06-23 15:22:31 -04:00
Daniel Krol
94114ec36d Finish server tests 2022-06-22 17:56:29 -04:00
Daniel Krol
a6d41df4e4 Simplify expectErrorString 2022-06-22 11:37:03 -04:00
Daniel Krol
ea4b907293 checkAuth test 2022-06-22 11:17:09 -04:00
Daniel Krol
c6ef525f7c Oops, missed fmt 2022-06-22 11:06:05 -04:00
Daniel Krol
e0f847a381 Basic validation checks in error tests (just to make sure validation functions are called) 2022-06-21 19:48:32 -04:00
Daniel Krol
39015963e6 wallet request validation test. loopify auth request validation test. 2022-06-21 19:27:54 -04:00
Daniel Krol
408a4817dc Test validation errors for get/post wallet 2022-06-21 18:25:22 -04:00
Daniel Krol
db1c55dff0 TestServerPostWallet 2022-06-21 16:59:32 -04:00
Daniel Krol
d38fdf0d11 Axe function we folded into other function 2022-06-21 11:56:32 -04:00
Daniel Krol
1f4bf9da6d Add errors to GetWallet test 2022-06-21 11:52:03 -04:00
Daniel Krol
8ba482521f Get server/wallet test ready for loop with variations 2022-06-20 20:47:58 -04:00
Daniel Krol
322e4d38f5 Improve a few tests. 2022-06-20 18:10:54 -04:00
Daniel Krol
9ddf00d3f3 Test getWallet (via handleWallet) 2022-06-19 18:54:59 -04:00
Daniel Krol
fd7e1988d3 Remove placeholders for overly focused tests 2022-06-19 17:51:40 -04:00
Daniel Krol
62866a0045 Handle oversized requests. 2022-06-19 17:49:05 -04:00
Daniel Krol
f472b73a68 Found a decent chunk of repeated code in http handler tests 2022-06-19 16:57:37 -04:00
Daniel Krol
05bf9e51ff Test register errors 2022-06-19 16:41:20 -04:00
Daniel Krol
f9492e64fa Switch to specifying errors to return for mocked store functions. 2022-06-19 16:40:16 -04:00
Daniel Krol
11255d7d41 Test getPostData, factor stuff out of auth test 2022-06-19 15:56:10 -04:00
Daniel Krol
19ed8f9f89 Test missing email explicitly 2022-06-17 16:15:27 -04:00
Daniel Krol
da849cc9be Test (and fix) validation for register 2022-06-17 16:12:20 -04:00
Daniel Krol
8146fa6ebd Implement register success test 2022-06-17 15:39:21 -04:00
Daniel Krol
1cbf2e82b5 Do the API versioning differently
I want the consts to contain the API version in them.
2022-06-17 15:38:44 -04:00
Daniel Krol
0109c2f8f1 Fix test for error string 2022-06-17 12:58:44 -04:00
Daniel Krol
05505bfebb Better organized fake store functions for server test 2022-06-17 12:52:17 -04:00
Daniel Krol
3391f653ac Oops, need to remove version from more payloads 2022-06-17 12:49:22 -04:00
Daniel Krol
23bd804f97 API Version in the URL, not the payload. Duh. 2022-06-16 17:58:11 -04:00
Daniel Krol
fcec1ad950 Serve from localhost explicitly 2022-06-16 10:01:49 -04:00
Daniel Krol
d467559dcd test client: factor out wallet sync API into class
In preparation for adding the LBRY SDK api class
2022-06-10 21:08:24 -04:00
Daniel Krol
512ebe3e95 Protocol changes
* Regress from `lastSynced` to just `sequence` to start with something simpler
* Simplified payload: separate metadata, assume canonical way to hmac it together
  * No more "wallet state" except as a simple wrapper on the front end
* Version number in wallet payloads
2022-06-10 15:04:31 -04:00
Daniel Krol
a4048262d8 AuthRequest validate test 2022-06-07 20:08:56 -04:00
Daniel Krol
e9dafa7ab9 Auth scope tests 2022-06-07 18:41:50 -04:00
Daniel Krol
eccef61d0b "Full" in Auth endpoint name is no longer useful 2022-06-07 18:24:01 -04:00
Daniel Krol
8b3f395f0e Fix name error in test 2022-06-07 18:16:01 -04:00
Daniel Krol
41721a8f70 Delete some things we don't need anymore 2022-06-07 18:15:46 -04:00
Daniel Krol
0bf11b059c Change to normal password auth, and various things 2022-06-07 17:47:38 -04:00
Daniel Krol
2fbcf6ee6d Get/Post WalletState, account recover, test client
A few things at once because it was faster to get a demo out the door. Skipping most test implementation though I made failing stubs so I know what to fill in later.

* Get/Post WalletState
* downloadKey/email so that a second client can log in, and/or recover from lost client
* Test client in Python to demonstrate the above
* Organize into packages
2022-01-04 16:07:23 -05:00