-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run tests for spec compliance #11
Comments
As the test server is deployed (#12), I tried out https://linkedresearch.org/ldn/tests/receiver on https://test.skohub.io/inbox?target=http://test.lobid.org/gnd/118696432 with data
When I do exactly this with curl, it works:
This is is quite confusing and gives the impression that the test does not test what it says it does. @csarven, can you bring some clarity into this? |
The payload must be in JSON-LD ( Edit: I think 400 response is correct in this case (while the Content Type says it is JSON-LD, the payload is not). Although I'm not sure right now why you get a 202. Is |
https://test.skohub.io/inbox?target=http://test.lobid.org/gnd/118696432 is the URL for the inbox of the target resource http://test.lobid.org/gnd/118696432.
However, I do not get the test at https://linkedresearch.org/ldn/tests/receiver to be successful. Whether I use the default data that is JSON-LD or post
@literarymachine has built it to always respond 202 because the notification won't be stored and does not get a URI but will be send via Websub to subscribers. |
Make sure params beside the mimetype eg. Edit: put another way (perhaps more importantly), the server shouldn't end up in 400 if all it wants to do is ignore such params in Content-Type. The Content-Type value is valid after all, and it is perfectly normal for a sender to send that (even if they're not required as per LDN spec). For reference, the LDN Test Suite sends out the equivalent of: Note the |
Running the WebSub tests we noticed two things:
I reopened #2 to cover 1.). We will have to think about how to deal with 2.) |
Regarding 2.), I see two options:
I tend towards the second solution. I did not follow up with ActivityPub in the past but already thought that it might be a good fit because of being JSON-LD-based as well. With this problem with Websub occuring, I think we should seriously consider using ActivityPub instead. We will definitely have no problem regarding the payload of an
Furthermore, get possibilities of expanding Skohub with other ActivityPub/Stream features like the client to server protocol, likes etc. |
I just tested the current setup again with https://linkedresearch.org/ldn/tests/receiver#test-response on inbox We should take a look at this in December. Regarding testing ActivityPub, there currently exists no test suite, see https://socialhub.activitypub.rocks/t/the-activitypub-test-suite/290/3. |
As defined in the wiki, the parameter now is Also, our actors are currently not the URIs of the concepts, but relative paths:
This is due to the fact that we currently have to map them to webfinger |
LDN receiver: https://linkedresearch.org/ldn/tests/receiver
For WebSub tests see https://websub.rocks/
The text was updated successfully, but these errors were encountered: