Marnanel Thurman
|
9dd211b728
|
add logger (forgot this one last time)
|
2019-04-14 19:27:23 +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
|
bee5d98fad
|
Fix to Inbox to remove use of Quarantine*, which has gone away.
Needs more thorough testing.
|
2019-04-10 20:11:29 +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
|
e451a7fa8a
|
more logging in django_kepi/__init__.py
|
2019-04-08 19:28:13 +01:00 |
Marnanel Thurman
|
4aefc6c51c
|
add background task mock
|
2019-04-08 19:21:23 +01:00 |
Marnanel Thurman
|
857f79585b
|
validation's use of the logging package was broken.
IncomingMessage.__str__() now returns a string!
|
2019-04-07 21:51:09 +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
|
bbeb3cb668
|
+django_celery_results to requirements.txt
|
2019-02-13 23:50:39 +00:00 |
Marnanel Thurman
|
9fcf27b4ee
|
Annotate queries with is_local and content type. Next step is using them.
|
2018-10-29 15:18:23 +00:00 |
Marnanel Thurman
|
8317f82a43
|
Person lookups return Persons correctly; they don't delegate to the right types yet
|
2018-10-29 14:39:52 +00:00 |
Marnanel Thurman
|
d50333cc44
|
fixme notes
|
2018-10-29 14:33:33 +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
|
fa193e5bd7
|
intermediate checkin
|
2018-10-29 13:43:12 +00:00 |
Marnanel Thurman
|
f00b74b988
|
New approach to caching remote objects
|
2018-10-29 13:35:18 +00:00 |
Marnanel Thurman
|
ca77f81aa5
|
Activity split out from models.py into activity_model.py
|
2018-10-23 18:56:55 +01:00 |
Marnanel Thurman
|
4c4a0df7a4
|
Notes towards documenting activity types (and regularising spec)
|
2018-10-17 16:47:24 +01:00 |
Marnanel Thurman
|
939a8e029c
|
version bump to 0.0.20
|
2018-10-14 02:10:06 +01:00 |
Marnanel Thurman
|
a813e7972a
|
nuke all migrations and start again
|
2018-10-14 02:09:14 +01:00 |
Marnanel Thurman
|
2ecb130bb1
|
'warn' downgraded to 'info' if deserialising an Activity has unresolved references but there's no parent message to inform about it. All clear? Good.
|
2018-10-14 02:06:27 +01:00 |
Marnanel Thurman
|
ad837571a8
|
object_type_registry can have multiple handlers for the same object type
|
2018-10-14 02:03:35 +01:00 |
Marnanel Thurman
|
0f4375b46b
|
icons
|
2018-10-13 23:49:02 +01:00 |
Marnanel Thurman
|
c62dd6cd66
|
add decorator @activity_type
|
2018-10-12 22:32:50 +01: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
|
434dc1fac1
|
Version number bump to 0.0.18
|
2018-10-12 20:16:15 +01:00 |
Marnanel Thurman
|
a9a7937dde
|
async_result success codes are 0 and 1, not False and True
|
2018-10-12 20:15:12 +01:00 |
Marnanel Thurman
|
dd5e925872
|
If an Activity can't be created because of unresolved references, don't try to return it anyway!
|
2018-10-12 20:14:32 +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
|
81e68ebf0a
|
Don't set DEBUG; it interferes with the test runner's --debug-mode option.
Rewritten LOGGERS so that it filters everything out if we're not in debug mode.
|
2018-10-12 16:28:20 +01:00 |
Marnanel Thurman
|
2d03a62dbb
|
async_result success codeis are 0 or 1, not False or True. (bool("False") is True!)
async_result malformed body check isn't performed if success==0.
Using central logger.
|
2018-10-12 16:26:17 +01:00 |