Marnanel Thurman
|
dadff3a45d
|
test_specific_post passes
|
2019-05-29 09:16:43 +01:00 |
Marnanel Thurman
|
34b6c59e30
|
create_person() always creates an Actor object, even with no extra data for it.
test_message() split into test_message() and test_message_body_and_headers().
|
2019-05-29 09:15:39 +01:00 |
Marnanel Thurman
|
b6fc2812d5
|
Improved headers handling in message validation
|
2019-05-29 09:15:16 +01:00 |
Marnanel Thurman
|
2f5e77c85a
|
Debug logging
|
2019-05-29 09:15:00 +01:00 |
Marnanel Thurman
|
04f6c06db9
|
Test for auto-follow. Closes issue #2.
|
2019-05-29 01:13:04 +01:00 |
Marnanel Thurman
|
5ef582aaf6
|
create_person() also creates the Actor object
|
2019-05-29 01:12:08 +01:00 |
Marnanel Thurman
|
cb9e99a208
|
Follow events cause automatic Accepts if the flag is set for that.
create() can handle initial values which are lists.
|
2019-05-29 01:09:58 +01:00 |
Marnanel Thurman
|
3d7fd94f51
|
key_name().
The pk of thing is called url, not id.
|
2019-05-29 01:09:15 +01:00 |
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 |