add some more description

This commit is contained in:
Michael Jerger 2023-10-16 08:53:18 +02:00
parent 913b0bfe8e
commit 283db3b82a

View file

@ -107,22 +107,25 @@
::sut/type "Like", ::sut/type "Like",
::sut/actor "https://social.bla/alyssa", ::sut/actor "https://social.bla/alyssa",
::sut/object "http://example.org/notes/1"}))) ::sut/object "http://example.org/notes/1"})))
(testing "likes for forgejo repositories" (testing "likes for forgejo repositories - using public uris for id refernce"
(testing "using public uris for id refernce"
(is (s/valid? ::sut/Like (is (s/valid? ::sut/Like
{::sut/id "https://repo.prod.meissa.de/jem/like/12345", {::sut/id "https://repo.prod.meissa.de/jem/like/12345",
::sut/type "Like", ::sut/type "Like",
::sut/actor "https://repo.prod.meissa.de/jem", ::sut/actor "https://repo.prod.meissa.de/jem",
::sut/object "https://codeberg.org/forgejo/forgejo.git"})) ::sut/object "https://codeberg.org/forgejo/forgejo.git"})))
(testing "using api uris for id refernce"
(is (s/valid? ::sut/Like (is (s/valid? ::sut/Like
{::sut/id "https://repo.prod.meissa.de/api/users/jem/like/12345", {::sut/id "https://repo.prod.meissa.de/api/users/jem/like/12345",
::sut/type "Like", ::sut/type "Like",
::sut/actor "https://repo.prod.meissa.de/api/users/jem", ::sut/actor "https://repo.prod.meissa.de/api/users/jem",
::sut/object "https://codeberg.org/forgejo/forgejo.git"})) ::sut/object "https://codeberg.org/forgejo/forgejo.git"})))
(testing "using activitypub api uris for id refernce"
(is (s/valid? ::sut/Like (is (s/valid? ::sut/Like
{::sut/id "https://repo.prod.meissa.de/activitypub/user-id/1/outbox/12345", {::sut/id "https://repo.prod.meissa.de/activitypub/user-id/1/outbox/12345",
::sut/type "Like", ::sut/type "Like",
::sut/actor "https://repo.prod.meissa.de/activitypub/user-id/1", ::sut/actor "https://repo.prod.meissa.de/activitypub/user-id/1",
::sut/object "https://codeberg.org/forgejo/forgejo.git"})) ::sut/object "https://codeberg.org/forgejo/forgejo.git"})))
)) ))
(deftest Object-test (deftest Object-test