Marnanel Thurman
7248b91edc
find_local can take an object_to_store
2019-07-31 20:37:46 +01:00
Marnanel Thurman
edb2f0334a
_put_stuff_in_inbox renamed to _put_stuff_in_outbox (oops)
2019-07-31 19:52:04 +01:00
Marnanel Thurman
892ab39d9b
test_read_create, though it doesn't pass yet.
2019-07-31 19:51:08 +01:00
Marnanel Thurman
26cf459b9f
Use the new "value" param for create. Also, run_delivery=False.
2019-07-31 19:50:41 +01:00
Marnanel Thurman
e16178ba00
create() can run local delivery if you pass run_delivery=True.
...
It can also optionally take a "value" parameter as well as
reading the fields of the new object out of kwargs.
2019-07-31 19:49:42 +01:00
Marnanel Thurman
50c4f2f6b7
test_read_from_outbox, initial
2019-07-31 19:11:04 +01:00
Marnanel Thurman
4882f76ec3
Rearranging inbox and outbox tests into "send to" and "read from".
2019-07-31 18:59:56 +01:00
Marnanel Thurman
f126d7adca
KepiView.activity() renamed activity_get().
...
Otherwise, it gets confusing because of activity_store().
2019-07-30 19:22:22 +01:00
Marnanel Thurman
229bbfae15
Public keys can be strings or dicts containing the string.
2019-07-30 19:18:34 +01:00
Marnanel Thurman
ee070e6992
Some more error checking in Collection.build_name
2019-07-30 19:17:32 +01:00
Marnanel Thurman
f019d7b67e
deliver() gains the "incoming" parameter, for local delivery
...
of incoming messages.
Validation doesn't track target collections any more. Instead,
when it's validated, it passes the message over to deliver(),
with incoming=True.
Hence, validation.IncomingMessage loses the "target_collection" field.
2019-07-30 19:16:25 +01:00
Marnanel Thurman
105b9fd5eb
KepiView can take an activity_store request (which I just made up)
...
ActorView split out from ThingView.
"name" field in URLs renamed to "username".
2019-07-30 19:14:29 +01:00
Marnanel Thurman
7e6f649b4f
test_outbox reads back from the outbox
2019-07-30 19:09:20 +01:00
Marnanel Thurman
df1b151d69
Created object gets reasonable 'to' field.
...
'to' and 'cc' get copied to Create activity.
2019-07-30 19:06:02 +01:00
Marnanel Thurman
30888694d1
Thing.audiences property
2019-07-30 19:04:26 +01:00
Marnanel Thurman
8bb5feff89
USER_URL_FORMAT user name field is "username" to disambiguate from collection name
...
inbox and outbox views are special cases of collection views
2019-07-30 16:23:29 +01:00
Marnanel Thurman
4af7301fae
pass in target_collection
2019-07-30 16:22:44 +01:00
Marnanel Thurman
5f5afa1978
Collection views contain the activity_forms of the members, not just the ids
2019-07-26 17:53:01 +01:00
Marnanel Thurman
9cad59bdc2
add fixme
2019-07-26 17:52:47 +01:00
Marnanel Thurman
8348be5f56
Added Collection model, and modified the collection views to display it.
...
Tests in test_inbox2 use it, but this is a work in progress.
2019-07-26 17:47:44 +01:00
Marnanel Thurman
579266b5fa
test_inbox2. Like test_inbox, but using the tools built for test_outbox.
...
When test_inbox2 is working, I'll merge it with test_inbox.
2019-07-25 17:18:09 +01:00
Marnanel Thurman
a412f6cbc1
InboxView fixed up to match OutboxView
2019-07-25 17:17:40 +01:00
Marnanel Thurman
e2a9df0cd7
Check whether a public key is represented by a dict rather than a string.
...
If it is, grab the actual key string from the relevant field.
2019-07-25 17:16:40 +01:00
Marnanel Thurman
0d6533057a
Add TOMBSTONES to settings
2019-07-22 18:01:26 +01:00
Marnanel Thurman
1b5a75b309
Fixed delete test for outbox to check with and without tombstones.
2019-07-22 18:00:41 +01:00
Marnanel Thurman
55aaff9a4a
Removed extraneous deletes() on errors, because Thing will delete for us.
...
delete() implemented.
2019-07-22 17:59:59 +01:00
Marnanel Thurman
fc3f213757
Thing fields named f_* have content correctly parsed as JSON.
...
Thing.entomb() had rotted; fixed.
Debug print removed.
2019-07-22 17:58:04 +01:00
Marnanel Thurman
270e55b1af
Introduced django_kepi.side_effects, to move all that special-case
...
code out of django_kepi.models.thing.
2019-07-22 17:30:15 +01:00
Marnanel Thurman
34b63787a8
Test for deletion; fails
2019-07-22 17:30:05 +01:00
Marnanel Thurman
d278a8d69e
Put an import back which somehow got deleted and broke stuff
2019-07-22 14:16:04 +01:00
Marnanel Thurman
32ee56b18e
Update to outbox doesn't work on objects you don't own
2019-07-21 18:43:54 +01:00
Marnanel Thurman
517ea268a4
Update activities to outbox work.
2019-07-21 18:38:50 +01:00
Marnanel Thurman
5691417a35
Test for Update activity sent to outbox. Fails.
2019-07-21 18:23:01 +01:00
Marnanel Thurman
0191a96c70
test_like in outbox. Also fix up checks in other tests.
2019-07-21 18:06:18 +01:00
Marnanel Thurman
2b6468b7d6
Add f_actor to Thing, because it's too common to keep in other_fields
2019-07-21 18:05:48 +01:00
Marnanel Thurman
e23d18a2f3
simplify assertion in test_unwrapped_object
2019-07-21 17:33:29 +01:00
Marnanel Thurman
98567b816c
Creates which fail get deleted.
2019-07-21 17:26:09 +01:00
Marnanel Thurman
5ed943d1a0
test_create_doesnt_work_on_activities written. Currently fails.
2019-07-21 17:17:18 +01:00
Marnanel Thurman
05e4d0ccf6
IncomingMessage.fields memoised
2019-07-21 16:55:15 +01:00
Marnanel Thurman
09348f663c
add 'testserver' to ALLOWED_HOSTS
2019-07-21 16:54:56 +01:00
Marnanel Thurman
b4f4a164cf
Test for posting non-activities to outbox. Currently fails.
2019-07-20 23:35:52 +01:00
Marnanel Thurman
5c5a9b7017
Tests for posting to outbox with incorrect IDs both local and remote.
...
They pass.
2019-07-20 23:26:46 +01:00
Marnanel Thurman
806706825b
rm debug message
2019-07-20 23:26:01 +01:00
Marnanel Thurman
1ce0ee1df2
Interloper tests for Create activities, which both currently fail
2019-07-19 22:46:47 +01:00
Marnanel Thurman
6b4baeb2ea
Test for unsigned messages into outbox passes
2019-07-19 22:17:47 +01:00
Marnanel Thurman
7ed917764e
Create test in outbox passes
2019-07-19 22:13:48 +01:00
Marnanel Thurman
7b3c1125cd
Local users for testing have a "preferredUsername" field
2019-07-19 22:12:56 +01:00
Marnanel Thurman
609be9b810
f_preferredUsername is stored in JSON
2019-07-19 22:12:39 +01:00
Marnanel Thurman
6c964dddd6
"key" is the whole string, not a dict containing it
2019-07-19 22:12:17 +01:00
Marnanel Thurman
01dc57338c
rm serializers.py, which was left around from un_chapeau
2019-07-18 14:32:26 +01:00