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
Marnanel Thurman
0e19b00f38
Tests for the outbox view. Rough initial version.
2019-07-18 14:31:57 +01:00
Marnanel Thurman
368814cd9c
Migration to add f_ prefixes in Actor. Should have been in 8aa62d5a
.
2019-07-18 14:31:06 +01:00
Marnanel Thurman
5a02c8c93f
Outbox passes is_local_user to validate. Debug messages cleaned up a bit.
2019-07-18 14:29:31 +01:00
Marnanel Thurman
13a3f47d42
Lots of checks on objects created by "Create"
2019-07-18 14:28:51 +01:00
Marnanel Thurman
8aa62d5abd
Fields unique to Actor have the "f_" prefix if they're fields of the Thing.
...
For example, publicKey becomes f_publicKey. This allows polymorphic subscripting.
Also, cleaned up some of the code from before we introduced polymorphism.
2019-07-18 14:27:21 +01:00
Marnanel Thurman
c57db91ce1
Removing some debug messages which were duplicated elsewhere.
2019-07-18 14:26:02 +01:00
Marnanel Thurman
eb6408badf
missing logging parameter
2019-07-18 14:25:10 +01:00
Marnanel Thurman
a5eba85fea
Rename validate()'s "is_local" to "is_local_user", and store it in the model.
...
This is because "is_local" is ambiguous; was the message received
locally (not over the network), or was the user a local user?
2019-07-18 14:23:43 +01:00
Marnanel Thurman
bf0c673a79
stub OutboxView
2019-07-18 12:16:44 +01:00
Marnanel Thurman
f65a6d4b08
validate() sets up the task and calls it.
...
It isn't itself the task, as before.
2019-07-18 12:16:02 +01:00
Marnanel Thurman
18565c6afe
Huge checkin: central project "kepi" to use the "django_kepi" library.
...
This has shown up some bugs. Checking in the fixes for them too.
2019-07-11 18:25:06 +01:00
Marnanel Thurman
c59228c58f
Remove ActorView. Use ThingView instead.
...
ActorView was based on a (very) old design where Actors were
special-cased.
2019-07-11 17:40:12 +01:00
Marnanel Thurman
b6697c81c6
Attempting to get the visibility tests passing. Not there yet.
2019-07-11 17:24:22 +01:00
Marnanel Thurman
11b187c71f
"preferredUsername" is now held in Actor as a field.
...
Actor can figure out standard paths for local users.
Constants for these added to test_settings.
2019-07-11 17:23:19 +01:00
Marnanel Thurman
67788b7907
test_as_reply passes
2019-07-09 16:37:09 +01:00
Marnanel Thurman
b687ebfe5a
"thread" is a property of Item, not its superclass
2019-07-09 16:15:54 +01:00
Marnanel Thurman
4638315d8d
None of the Create tests throw an exception (but not all of them pass)
2019-07-09 16:03:04 +01:00