Wykres commitów

95 Commity (b287e1f6eae91312e9ff2295773186b39b255736)

Autor SHA1 Wiadomość Data
Marnanel Thurman b287e1f6ea Dictionary subset was backwards! 2019-04-25 19:51:24 +01:00
Marnanel Thurman d201903750 First set of embellish() additions for Notes 2019-04-25 19:47:44 +01:00
Marnanel Thurman e73a34f10b Partial checkin. Trying to generate the Create activity automatically when a Note (etc) is saved. 2019-04-25 01:13:10 +01:00
Marnanel Thurman 488770e5ba Embellish framework: first stubs 2019-04-25 01:12:05 +01:00
Marnanel Thurman 696192daaa CachedPublicKey renamed to CachedRemoteUser; its pk is the owner URL
and it gains the "inbox" and "outbox" user URLs.
2019-04-18 19:32:55 +01:00
Marnanel Thurman aab84445da rm extraneous comma 2019-04-18 19:26:32 +01:00
Marnanel Thurman 320624129c Tests for django_kepi.tasks. All passed. 2019-04-14 20:52:47 +01:00
Marnanel Thurman 9ae34685e2 test_asyncresult -> test_tasks. Still updating this. 2019-04-14 19:27:59 +01:00
Marnanel Thurman cb08c6c7db Every module initialises its own logger. 2019-04-14 19:18:16 +01:00
Marnanel Thurman c7564aabd6 First steps on getting test_inbox to pass.
IncomingMessage.waiting_for can be null.
d_k.views creates its own logger.
2019-04-10 20:43:37 +01:00
Marnanel Thurman bbe19a8d77 Restoring old tests I deleted, inadvisably. 2019-04-10 20:35:16 +01:00
Marnanel Thurman fb4bbe2c49 "actor" and "key_id" are now properties of CachedPublicKey, rather than methods. 2019-04-10 20:10:46 +01:00
Marnanel Thurman 6336eac2b2 Removed Quarantined* and CachedText because they duplicate what kepi.validation does.
Also removed their tests.
2019-04-10 20:09:20 +01:00
Marnanel Thurman 35be80864c Tests for incoming initial message validation all written and passing.
Still need to write tests for validation of incoming messages where
the key has had to be fetched by a batch process.
2019-04-10 17:41:46 +01:00
Marnanel Thurman df491d602f Validation tests for local actor and remote actor 2019-04-10 06:35:16 +01:00
Marnanel Thurman 988b27f9f0 Generate test messages for validation, instead of supplying literals 2019-04-09 20:23:29 +01:00
Marnanel Thurman ca6acca571 Public/private key pairs for testing.
(These are taken from the alicebobcarol.json fixture in un_chapeau.)
2019-04-08 20:52:52 +01:00
Marnanel Thurman 2303ac635d mock cached key lookup 2019-04-08 19:48:06 +01:00
Marnanel Thurman 4aefc6c51c add background task mock 2019-04-08 19:21:23 +01:00
Marnanel Thurman 0e7c89a03a Bringing the new validation system into models. Many more tests needed. 2019-04-07 21:39:11 +01:00
Marnanel Thurman 528551ca37 Test to verify headers. (Not actually a proper test yet.) 2019-04-06 21:57:14 +01:00
Marnanel Thurman da353f95ec test note 2019-04-06 21:56:50 +01:00
Marnanel Thurman dbaf53915d rm out of date test 2019-03-04 08:01:35 +00:00
Marnanel Thurman ee12bd6880 intermediate 2019-03-03 21:30:18 +00:00
Marnanel Thurman c9a4df27c9 rm old tests 2019-03-03 21:13:00 +00:00
Marnanel Thurman 0d59ebbc58 The contents of a CachedText can be None by default. Tests added. 2019-02-16 20:24:43 +00:00
Marnanel Thurman 27b64f8e4e CachedText model added, with simple test 2019-02-16 20:05:14 +00:00
Marnanel Thurman 63a6d16eed Tests for the "something" model (which has a daft name, which should be changed). 2018-10-29 14:28:13 +00:00
Marnanel Thurman f00b74b988 New approach to caching remote objects 2018-10-29 13:35:18 +00:00
Marnanel Thurman e6953e329d Renamed methods to avoid confusion.
activity is now activity_form.
find_activity is now activity_find.

django_kepi.resolve is now django_kepi.find.
2018-10-12 21:47:18 +01:00
Marnanel Thurman 554766326b Activate httpretty and it all works. I feel a bit of a fool. 2018-10-12 20:13:59 +01:00
Marnanel Thurman 1e61103353 Don't test whether a remote article has been loaded for a Like that failed;
it causes weird race conditions. If the article itself is valid,
it should stay.
2018-10-12 18:20:18 +01:00
Marnanel Thurman 800dcaaf88 abolishing NeedToFetchException because it messes up debugging 2018-10-12 17:45:44 +01:00
Marnanel Thurman b81d6c7107 Using central logger. 2018-10-12 16:32:40 +01:00
Marnanel Thurman 2899e20188 Malformed JSON check doesn't attempt to build the JSON string itself.
Using central logger.

Added silly hack for testing state issues.
2018-10-12 16:31:47 +01:00
Marnanel Thurman 412799fc2f Nudging httpretty to allow Celery to callback is moved to __init__.py.
That is possibly the most techie sentence I've ever written.

Using central logger.

Success codes changed to 0 and 1 instead of False and True.
2018-10-12 16:29:46 +01:00
Marnanel Thurman 73f8032791 wild amounts of tinkering to make the tests use httpretty 2018-10-10 21:28:41 +01:00
Marnanel Thurman a87298b9ed rm outdated comment 2018-10-09 16:59:23 +01:00
Marnanel Thurman cfe269f72c intermediate 2018-10-05 00:12:03 +01:00
Marnanel Thurman 3841a009f9 intermediate 2018-10-03 22:43:42 +01:00
Marnanel Thurman 0f840e5c12 Testing for asyncresult 2018-10-03 20:53:45 +01:00
Marnanel Thurman 7b5408ed4c Sort out model identifiers in things_for_testing 2018-09-27 17:53:25 +01:00
Marnanel Thurman 937bc04651 Test for "all known" tests for Activity creation as well as QM deletion 2018-09-27 17:36:12 +01:00
Marnanel Thurman e58a303589 Test that messages where all parts are known go through immediately. Also, url_identifier() -> activity_id in ThingArticle for regularity. 2018-09-27 16:52:29 +01:00
Marnanel Thurman 20ff4d636d Tests for non-json messages 2018-09-27 16:38:41 +01:00
Marnanel Thurman daa5543916 rm outdated comment 2018-09-27 13:50:26 +01:00
Marnanel Thurman 8717b59a97 Attempts to create "Like" activities, not "Article"s (which aren't Activitys) 2018-09-23 21:58:38 +01:00
Marnanel Thurman fd991062f3 After creating a Follow, also create an Accept for it 2018-09-18 23:12:13 +01:00
Marnanel Thurman 22cf60d524 add user to test, to avoid NeedToFetch 2018-09-16 21:49:08 +01:00
Marnanel Thurman 2b29a8e8e2 Removed all the old Cobject stuff, at last. This confused
makemigrations so much that I killed all the existing migrations
and started again.

Activity fields representing key+value pairs all begin with "f_"
because it was getting confusing when only some of them did.

Activity.deserialize() renamed Activity.create().

The tests don't all pass at present, but they will soon.
2018-09-16 21:42:27 +01:00