Commit graph libervia-backend/tests/unit
Author SHA1 Message Date
Goffi
57c945dc9f tests (unit/ap gateway): message/item retractation tests:
this patch adds 4 tests to check pubsub <=> AP item retractation and message <=> AP item
retractation.

rel 367
2022-06-17 15:50:34 +02:00
Goffi
847780b473 tests (unit/ap gateway): fix onMessage call following change in the component:
the component now uses the normal message workflow, thus the tests had to be updated

rel 367
2022-06-17 15:50:34 +02:00
Goffi
4c28917466 test (unit/AP gateway): AP direct message ↔ XMPP <message> conversion:
test that AP direct messages are converted to XMPP `<message>` stanzas instead of pubsub
items.
test that XMPP `<message>` stanzas are converted to AP direct messages (i.e. items
addressed solely to the recipient, without *followers* or *public* collections).

rel 366
2022-05-24 17:57:39 +02:00
Goffi
72ec311ef1 tests (unit/ap_gateway): fix tests 2022-05-24 17:49:14 +02:00
Goffi
4d3f5f1afa tests (unit/ap-gateway): tests for following/followers <=> PPS:
AP following/followers collections to XMPP Public Pubsub Subscriptions conversion is
checked in both directions.

rel 365
2022-05-13 19:29:17 +02:00
Goffi
127d383eb5 tests (ap-gateway): fix use of outbox URL to get items 2022-03-21 16:37:19 +01:00
Goffi
d1a623d12b tests (unit): AP gateway unit tests:
are covered:

- AP actor handle to XMPP JID/pubsub node
- XMPP JID/pubsub node to AP actor handle
- AP request to JID/pubsub node (AP collection to items/RSM metadata conversion)
- pubsub request to AP actor (pubsub request with RSM to AP collection/pagination requests
  conversion)

ticket 363
2022-01-31 18:35:52 +01:00
Goffi
465d836127 tests: pubsub cache tests 2021-08-02 21:52:17 +02:00
Goffi
e89b5f6e79 tests: unit tests preparation with some fixtures 2021-08-02 21:52:17 +02:00