Wykres commitów

628 Commity (e79407624846c6b926b1361b35bdfcc2218bc76e)

Autor SHA1 Wiadomość Data
Marnanel Thurman ddb65c42b0 export Actor 2019-05-29 01:08:57 +01:00
Marnanel Thurman a96d2a2a85 __str__() split into __str__() and __repr__(). RemoteItem param is str()ified before use. 2019-05-29 01:08:07 +01:00
Marnanel Thurman d4a1b5707c Sole inboxes were using the address of the shared inbox.
Improved debug logging about server response.
2019-05-29 01:06:53 +01:00
Marnanel Thurman 38512de494 ActorView is a specialised ThingView 2019-05-28 17:50:32 +01:00
Marnanel Thurman 31cee0ae93 More helpful error message if the param is of the wrong type 2019-05-28 17:49:51 +01:00
Marnanel Thurman b57fafb7a8 rm old code 2019-05-28 16:04:22 +01:00
Marnanel Thurman 47d2989d29 A bunch of shared code moved to tests/__init__, with the underscore prefixes removed. 2019-05-27 21:18:28 +01:00
Marnanel Thurman 982fa47915 Add auto_follow flag (not implemented yet) 2019-05-27 21:17:29 +01:00
Marnanel Thurman 1b0b08d8ec Add the Actor model 2019-05-27 21:17:13 +01:00
Marnanel Thurman c4f80dc237 rm TODO.md because you can see the issues on gitlab now! 2019-05-25 18:48:32 +01:00
Marnanel Thurman 5fd8c5f0db Anchored the regex 2019-05-25 18:42:09 +01:00
Marnanel Thurman ca306414ac fixed field name 2019-05-25 18:40:27 +01:00
Marnanel Thurman 6fee8f0ff6 skip test_embellish until we decide whether we want it 2019-05-25 18:39:55 +01:00
Marnanel Thurman 1e32dcefe8 Read the publicKey field for an Actor to determine its public key,
since it might be local or remote.
2019-05-25 18:32:24 +01:00
Marnanel Thurman 66355d1acf Call validation properly on inbox messages 2019-05-25 18:16:47 +01:00
Marnanel Thurman 4ee4e3d855 Skipping this test for now, until we can get it signing its test messages 2019-05-25 18:16:27 +01:00
Marnanel Thurman 09180cc44e Unsigned messages are logged and dropped.
Keys are properties of the Actor object, not subscripted items.
(Otherwise the view might accidentally send them out!)
2019-05-25 18:14:59 +01:00
Marnanel Thurman 51a9377fda renamed actor_details to actor, since it's an actual object now 2019-05-25 18:14:36 +01:00
Marnanel Thurman 5699007838 redo kepi's migrations, since they got tangled 2019-05-25 18:13:52 +01:00
Marnanel Thurman c82429f0c2 "activity" returns the found object, not a dictionary based on it 2019-05-25 00:31:09 +01:00
Marnanel Thurman 9d526bae5d skip these tests until I can find out what I broke 2019-05-24 20:43:55 +01:00
Marnanel Thurman 0b1dcade3f ThingUser -> _create_person 2019-05-24 20:43:44 +01:00
Marnanel Thurman 824c082011 Partial checkin; renaming d_k.tasks to d_k.deliver now we've
split validation away from it.
2019-05-24 20:40:02 +01:00
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