]> Untitled Git - lemmy.git/commit
Re-organizing federation tests. #746 #1040 (#1047)
authorDessalines <dessalines@users.noreply.github.com>
Tue, 4 Aug 2020 14:57:37 +0000 (10:57 -0400)
committerGitHub <noreply@github.com>
Tue, 4 Aug 2020 14:57:37 +0000 (10:57 -0400)
commite336e5bcc03e29d4a8cc052b06eaa89cbd64c213
tree7fe035281bfbe691253a99c0efd2121264808512
parent97d2584a3b8fce8ce2606140c26bea78fa5270fc
Re-organizing federation tests. #746 #1040 (#1047)

* Re-organizing federation tests. #746 #1040

* Add more checks in inbox, plus some refactoring (#76)

Merge branch 'main' into more-inbox-permissions

Move check_community_ban() into helper function

Move slur check into helper functions

Move Claims::decode and site ban check into helper function

Note: this changes behaviour in that site ban is checked in more
places now. we could easily add a boolean parameter
check_for_site_ban to get the previous behaviour back

Rewrite user_inbox and community_inbox in the same way as shared_inbox

Add check against instance allowlist etc in shared_inbox

Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/76

* Adding verbose to test results.

Co-authored-by: nutomic <nutomic@noreply.yerbamate.dev>
Co-authored-by: dessalines <dessalines@noreply.yerbamate.dev>
Co-authored-by: Felix Ableitner <me@nutomic.com>
27 files changed:
docker/federation-test/servers.sh
docker/federation/docker-compose.yml
docker/travis/docker-compose.yml
server/lemmy_db/src/comment.rs
server/lemmy_db/src/community.rs
server/lemmy_db/src/post.rs
server/src/api/comment.rs
server/src/api/community.rs
server/src/api/mod.rs
server/src/api/post.rs
server/src/api/site.rs
server/src/api/user.rs
server/src/apub/activities.rs
server/src/apub/fetcher.rs
server/src/apub/inbox/activities/create.rs
server/src/apub/inbox/community_inbox.rs
server/src/apub/inbox/shared_inbox.rs
server/src/apub/inbox/user_inbox.rs
server/src/apub/mod.rs
ui/package.json
ui/src/api_tests/api.spec.ts [deleted file]
ui/src/api_tests/comment.spec.ts [new file with mode: 0644]
ui/src/api_tests/community.spec.ts [new file with mode: 0644]
ui/src/api_tests/follow.spec.ts [new file with mode: 0644]
ui/src/api_tests/post.spec.ts [new file with mode: 0644]
ui/src/api_tests/private_message.spec.ts [new file with mode: 0644]
ui/src/api_tests/shared.ts [new file with mode: 0644]