From 283db3b82afedc3d2365325f21bd7d200e983db2 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Mon, 16 Oct 2023 08:53:18 +0200 Subject: [PATCH] add some more description --- .../fed_poc/activitystreams2_test.cljc | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/src/test/cljc/org/domaindrivenarchitecture/fed_poc/activitystreams2_test.cljc b/src/test/cljc/org/domaindrivenarchitecture/fed_poc/activitystreams2_test.cljc index eeea9c7..4c87480 100644 --- a/src/test/cljc/org/domaindrivenarchitecture/fed_poc/activitystreams2_test.cljc +++ b/src/test/cljc/org/domaindrivenarchitecture/fed_poc/activitystreams2_test.cljc @@ -107,22 +107,25 @@ ::sut/type "Like", ::sut/actor "https://social.bla/alyssa", ::sut/object "http://example.org/notes/1"}))) - (testing "likes for forgejo repositories" - (is (s/valid? ::sut/Like - {::sut/id "https://repo.prod.meissa.de/jem/like/12345", - ::sut/type "Like", - ::sut/actor "https://repo.prod.meissa.de/jem", - ::sut/object "https://codeberg.org/forgejo/forgejo.git"})) - (is (s/valid? ::sut/Like - {::sut/id "https://repo.prod.meissa.de/api/users/jem/like/12345", - ::sut/type "Like", - ::sut/actor "https://repo.prod.meissa.de/api/users/jem", - ::sut/object "https://codeberg.org/forgejo/forgejo.git"})) - (is (s/valid? ::sut/Like - {::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"})) + (testing "likes for forgejo repositories - using public uris for id refernce" + (testing "using public uris for id refernce" + (is (s/valid? ::sut/Like + {::sut/id "https://repo.prod.meissa.de/jem/like/12345", + ::sut/type "Like", + ::sut/actor "https://repo.prod.meissa.de/jem", + ::sut/object "https://codeberg.org/forgejo/forgejo.git"}))) + (testing "using api uris for id refernce" + (is (s/valid? ::sut/Like + {::sut/id "https://repo.prod.meissa.de/api/users/jem/like/12345", + ::sut/type "Like", + ::sut/actor "https://repo.prod.meissa.de/api/users/jem", + ::sut/object "https://codeberg.org/forgejo/forgejo.git"}))) + (testing "using activitypub api uris for id refernce" + (is (s/valid? ::sut/Like + {::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