Commit graph

40 commits

Author SHA1 Message Date
Marius Orcsik
5213806994
Updated the Unmarshalling with a test for replies 2018-08-15 11:33:50 +02:00
Marius Orcsik
28d2a1e33f
Added published date and other date fields to Object/Collection unmarshall 2018-08-06 19:11:24 +02:00
Marius Orcsik
b6ec84c634
Renamed func type 2018-08-06 15:26:50 +02:00
Marius Orcsik
b4ab90daff
Use constant for empty LangRef value 2018-08-06 13:09:24 +02:00
Marius Orcsik
d4b287f531
Fix collection unmarshalling test
Add generator and attributedTo properties to the test
2018-08-06 13:06:14 +02:00
Marius Orcsik
fb363aa377
Improve collection unmarshalling 2018-08-05 13:54:01 +02:00
Marius Orcsik
f40d875d04
Going deeper and deeper down the jsonld rabbit hole.
The current approach doesn't look too good
2018-08-01 10:52:11 +02:00
Marius Orcsik
0eedce953c
Fix error regarding output specifier 2018-07-25 12:52:07 +02:00
Marius Orcsik
b4baafa9f3
Fix Outbox test 2018-07-25 12:34:36 +02:00
Marius Orcsik
51f73c2cba
Fix failing test regarding ObjectID 2018-07-25 11:57:49 +02:00
Marius Orcsik
4dc584b0d4
Added UnmarshalJSON methods for some types
Add some tests
2018-07-24 23:11:08 +02:00
Marius Orcsik
72c2d5c331
Use package aliases for jsonld and activitypub in tests 2018-07-18 16:33:40 +02:00
Marius Orcsik
8308c6fb22
Converted the jsonld context to be an empty interface
This allows us to support passing it just as a string or URI
2018-07-16 13:26:26 +02:00
Marius Orcsik
8bd5130d0f
Move the context to a package variable 2018-07-06 22:33:47 +02:00
Marius Orcsik
978985644e
Refactored how the repo looks 2018-07-06 12:48:04 +02:00
Marius Orcsik
7f8193dff8
Refactored objects to include full AP structure 2018-06-09 14:05:46 +02:00
Marius Orcsik
55e0d31a75
Broken tests 2018-06-09 13:08:30 +02:00
Marius Orcsik
68c4bc41df
Renamed Object to BaseObject 2018-06-09 13:06:55 +02:00
Marius Orcsik
2ecb5245ec
Added marshalling tests based on json mock files 2018-06-07 16:48:08 +02:00
Marius Orcsik
1997a54824
Renamed apObject to Object 2018-06-06 15:32:26 +02:00
Marius Orcsik
74f69f09c6
Added test for ensuring a block's object is not present in the recipients list 2018-06-05 21:20:28 +02:00
Marius Orcsik
55a57cc61e
Added test for ensuring an activity's actor is removed from the recipients list
Adding RecipientsDeduplication method on Activity* structs
2018-06-05 21:04:36 +02:00
Marius Orcsik
26b14c3d0c
Adding stubs for common server tests 2018-04-10 21:33:47 +02:00
Marius Orcsik
4b40a20e0d
Add stubs for next tests from the server to server suite 2018-04-10 21:32:58 +02:00
Marius Orcsik
65343bb33c
Refactored the s2s tests and added some output info about each one 2018-04-10 20:29:55 +02:00
Marius Orcsik
87463896d5
Adding type for ObjectOrInterface arrays
Making this type play nice as a Collection interface

Adding RecipientsDeduplication mechanism with integratoin test
2018-04-10 17:53:05 +02:00
Marius Orcsik
f68a512ed8
Renamed apObject.Id to ID
Removed anonymous apObject pointer as top member of dependent structs
2018-04-08 18:55:25 +02:00
Marius Orcsik
27844eb29c
Remove test stub from run 2018-04-07 12:34:57 +02:00
Marius Orcsik
4099dea834
Adding target to Add and Remove activity initializers
Implementing S2S#2 tests from https://test.activitypub.rocks/

S2S Server: Activities requiring the target property
2018-03-27 17:40:40 +02:00
Marius Orcsik
5d77148ca6
Implementing S2S#1 tests from https://test.activitypub.rocks/
S2S Server: Activities requiring the object property
2018-03-27 17:28:09 +02:00
Marius Orcsik
b45570c418
Adding a lot of comments from ActivityPub/ActivityStreams/ActivityVocabulary specs
To quiet some go lint warnings
2018-03-27 16:16:07 +02:00
Marius Orcsik
5d13db4836
Renamed ObjectId - ObjectID 2018-03-27 15:06:06 +02:00
Marius Orcsik
c68df3052b
Add multilang name in test 2018-03-26 23:15:26 +02:00
Marius Orcsik
54e564b1b7
Adding Activity.Object parameter for all instantiation functions 2017-10-03 22:46:03 +02:00
Marius Orcsik
b2d595e31d
Improvements to jsonld.Marshal - now with tags 2017-10-02 16:19:23 +02:00
Marius Orcsik
88970c9ee2
Adding more jsonld hint tags
Adding IsLink/IsObject logic for LinkOrObject interface

Extending tests
2017-10-02 11:53:09 +02:00
Marius Orcsik
9ae0a031b3
Adding language to contexts and making the url a ref 2017-10-01 17:09:04 +02:00
Marius Orcsik
a794556013
More integration tests 2017-10-01 15:04:51 +02:00
Marius Orcsik
58995fc87b
Renamed basic integration test 2017-10-01 14:55:20 +02:00
Marius Orcsik
f811f14bd3
Adding a basic integration test 2017-10-01 14:44:49 +02:00