add some more description
This commit is contained in:
parent
913b0bfe8e
commit
283db3b82a
1 changed files with 19 additions and 16 deletions
|
@ -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"
|
||||||
(is (s/valid? ::sut/Like
|
(testing "using public uris for id refernce"
|
||||||
{::sut/id "https://repo.prod.meissa.de/jem/like/12345",
|
(is (s/valid? ::sut/Like
|
||||||
::sut/type "Like",
|
{::sut/id "https://repo.prod.meissa.de/jem/like/12345",
|
||||||
::sut/actor "https://repo.prod.meissa.de/jem",
|
::sut/type "Like",
|
||||||
::sut/object "https://codeberg.org/forgejo/forgejo.git"}))
|
::sut/actor "https://repo.prod.meissa.de/jem",
|
||||||
(is (s/valid? ::sut/Like
|
::sut/object "https://codeberg.org/forgejo/forgejo.git"})))
|
||||||
{::sut/id "https://repo.prod.meissa.de/api/users/jem/like/12345",
|
(testing "using api uris for id refernce"
|
||||||
::sut/type "Like",
|
(is (s/valid? ::sut/Like
|
||||||
::sut/actor "https://repo.prod.meissa.de/api/users/jem",
|
{::sut/id "https://repo.prod.meissa.de/api/users/jem/like/12345",
|
||||||
::sut/object "https://codeberg.org/forgejo/forgejo.git"}))
|
::sut/type "Like",
|
||||||
(is (s/valid? ::sut/Like
|
::sut/actor "https://repo.prod.meissa.de/api/users/jem",
|
||||||
{::sut/id "https://repo.prod.meissa.de/activitypub/user-id/1/outbox/12345",
|
::sut/object "https://codeberg.org/forgejo/forgejo.git"})))
|
||||||
::sut/type "Like",
|
(testing "using activitypub api uris for id refernce"
|
||||||
::sut/actor "https://repo.prod.meissa.de/activitypub/user-id/1",
|
(is (s/valid? ::sut/Like
|
||||||
::sut/object "https://codeberg.org/forgejo/forgejo.git"}))
|
{::sut/id "https://repo.prod.meissa.de/activitypub/user-id/1/outbox/12345",
|
||||||
|
::sut/type "Like",
|
||||||
|
::sut/actor "https://repo.prod.meissa.de/activitypub/user-id/1",
|
||||||
|
::sut/object "https://codeberg.org/forgejo/forgejo.git"})))
|
||||||
))
|
))
|
||||||
|
|
||||||
(deftest Object-test
|
(deftest Object-test
|
||||||
|
|
Loading…
Reference in a new issue