Wykres commitów

305 Commity (4bb225c4e87b53772ad49e20c33fd120609cc8de)

Autor SHA1 Wiadomość Data
Marnanel Thurman 4bb225c4e8 Actor class, and crypto for it, though we don't use them yet in this branch 2019-05-24 20:37:02 +01:00
Marnanel Thurman 1da029d0d3 Validation tests 2019-05-24 20:36:42 +01:00
Marnanel Thurman 52f3a50444 validation goes back in django_kepi.validate 2019-05-24 20:31:51 +01:00
Marnanel Thurman 745ea99255 Remove admin for django_kepi (for now, anyway) 2019-05-24 20:22:34 +01:00
Marnanel Thurman 52add8741e partial checkin for tests/test_inbox 2019-05-22 18:27:46 +01:00
Marnanel Thurman 8e7207347e rm activity_id, which is from an old design 2019-05-22 18:27:37 +01:00
Marnanel Thurman 02f0578d43 Move _create_remote_object() into tests/__init__. 2019-05-22 18:13:50 +01:00
Marnanel Thurman 3b33a32ebb rm tests/test_resolve; this tests an obsolete form of delegation 2019-05-22 18:11:01 +01:00
Marnanel Thurman 078957de24 rm tests/test_response; duplicates work in tests/test_views 2019-05-22 18:10:14 +01:00
Marnanel Thurman 16ee07eea9 rm tests/test_somethings; replaced by various other tests 2019-05-22 18:08:36 +01:00
Marnanel Thurman 8a77d0f774 Task tests working again, except for validation.
We'll need to store the private keys in a separate table.
2019-05-22 18:06:20 +01:00
Marnanel Thurman ee939e10fe test_find passes 2019-05-22 17:44:17 +01:00
Marnanel Thurman e492abc58f Moved _create_person to tests/__init__.py 2019-05-22 17:42:07 +01:00
Marnanel Thurman c6744b0999 RemoteItem made into a subclass of dict, which makes everything simpler.
The local_only param of find() made optional.
2019-05-22 17:40:23 +01:00
Marnanel Thurman 47dfbb5d1d If a KepiView.activity() returns None, KepiView.get() treats it as a 404 2019-05-22 02:20:13 +01:00
Marnanel Thurman 155843f3c1 it's the logger 2019-05-22 02:17:45 +01:00
Marnanel Thurman 02965beef6 some stray Thing.uuids fixed to Thing.numbers 2019-05-22 02:16:38 +01:00
Marnanel Thurman 465ecbbd89 Restarting with d_k migrations because it got itself tied in knots. 2019-05-22 02:10:30 +01:00
Marnanel Thurman c7ce673b00 Primary key for a Thing is an 8-digit hex number, not a UUID. 2019-05-22 02:10:07 +01:00
Marnanel Thurman 8ad8cc7221 Expect type=='Person' in results. Also one _create_person which escaped from before. 2019-05-22 00:34:30 +01:00
Marnanel Thurman 978a7d2f15 ThingView can have id or name in kwargs 2019-05-22 00:33:58 +01:00
Marnanel Thurman d9fa99f3b5 fiddling around with imports to get things in the right modules 2019-05-22 00:23:59 +01:00
Marnanel Thurman 45e5662e78 Removed create(), which was accidentally similar to d_k.models.create().
Removed most of the type registry, since we're doing it a different way now.
2019-05-22 00:23:06 +01:00
Marnanel Thurman 2a434beaac create Persons in the same way as in other tests.
This is turning into boilerplate code, so we might need to refactor.
2019-05-22 00:22:25 +01:00
Marnanel Thurman e25b3c2b4f Collection tests pass 2019-05-21 19:24:40 +01:00
Marnanel Thurman 3e01e3ba75 AllUsersView 2019-05-21 19:24:22 +01:00
Marnanel Thurman 1014c528d5 Include name in activity_form. Don't include fields whose value is the empty string. 2019-05-21 19:23:23 +01:00
Marnanel Thurman c42d5c8170 Remove AsyncResultView because async tasks access the db directly now. 2019-05-21 19:10:40 +01:00
Marnanel Thurman 843db7f95b Scaling down things_for_testing 2019-05-21 19:07:16 +01:00
Marnanel Thurman bee37dc22e Harmonised the f#ormat of user URLs in the collection tests. 2019-05-21 19:06:01 +01:00
Marnanel Thurman e28641d222 Following and follower views pick the correct fields out of the Following object,
and don't list pending requests.

Simplified debug logging.
2019-05-21 19:04:36 +01:00
Marnanel Thurman da617e9522 Side-effects for Follow, Accept, and Reject implemented.
Debug logging simplified somewhat.
2019-05-21 19:04:05 +01:00
Marnanel Thurman 35ae4ba5a8 Added request(), accept(), and reject().
Also, Following.__str__() had the "pending" messages backwards.
2019-05-21 19:03:07 +01:00
Marnanel Thurman d63e66259a Simplified debug logging 2019-05-21 19:02:49 +01:00
Marnanel Thurman 3ab1531f50 URL paths for objects go to ThingView, not KepiView (which is the superclass) 2019-05-21 18:10:23 +01:00
Marnanel Thurman d7453210b0 ThingObjectView renamed to ThingView 2019-05-21 18:10:12 +01:00
Marnanel Thurman 1d55d73be8 enhance error message 2019-05-21 18:05:37 +01:00
Marnanel Thurman ef246d94a8 Partial commit of Thing.__getitem__ 2019-05-19 22:16:47 +01:00
Marnanel Thurman d6cbe11b1d fix local URL format 2019-05-19 22:16:34 +01:00
Marnanel Thurman 0306ee2abf add remote_only flag 2019-05-19 22:16:19 +01:00
Marnanel Thurman bcc67c2457 export is_local 2019-05-19 22:02:03 +01:00
Marnanel Thurman a615993695 clearer debug messages for object creation 2019-05-19 21:23:41 +01:00
Marnanel Thurman 4fdfb4d68d Persons must be "Person"s, obviously 2019-05-19 21:23:19 +01:00
Marnanel Thurman 852dd08678 Put the "name" field into Thing, as "f_name".
This means error messages can display an understandable name for a Thing.

It also makes queries a bit easier.
2019-05-19 20:56:41 +01:00
Marnanel Thurman a789aa6064 Fixed tests for following/followers collections. They currently fail. 2019-05-19 20:44:33 +01:00
Marnanel Thurman ba4e6099f8 forgot to commit migration! 2019-05-18 21:34:48 +01:00
Marnanel Thurman 91bdfcc447 added missing import 2019-05-18 21:34:38 +01:00
Marnanel Thurman a217f8795d Added the Following class back in. 2019-05-18 21:32:39 +01:00
Marnanel Thurman 9d1fc571ea "local" is no longer an argument to Create. Skipped one test. 2019-05-18 19:05:15 +01:00
Marnanel Thurman a9749b1ffe If values passed into create() aren't JSON-able, we stringify them.
Fixed one typo.
2019-05-18 19:04:29 +01:00