Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

knotserver: fix generate pull URL test

Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>

authored by willdot.net and committed by

Tangled (Jul 2, 2026, 5:50 PM +0300) d51aed46 a5551885

+4 -4
+4 -4
knotserver/internal_test.go
··· 11 11 const ( 12 12 appviewURL = "https://tangled.org/" 13 13 user = "willdot.net" 14 - userDID = "did:plc:dadhhalkfcq3gucaq25hjqon" 14 + repoDID = "did:plc:ixran6dpypl5lslliiqceshs" 15 15 pushedBranch = "feature-abc" 16 16 defaultBranch = "main" 17 17 ) ··· 31 31 "is fork": { 32 32 repoName: "knot-testing-fork", 33 33 remote: "https://knot1.tangled.sh/did:plc:dadhhalkfcq3gucaq25hjqon/knot-testing", 34 - expectedURL: "https://tangled.org/did:plc:dadhhalkfcq3gucaq25hjqon/knot-testing/pulls/new?fork=did%3Aplc%3Adadhhalkfcq3gucaq25hjqon%2Fknot-testing-fork&source=fork&sourceBranch=feature-abc&targetBranch=main", 34 + expectedURL: "https://tangled.org/did:plc:dadhhalkfcq3gucaq25hjqon/knot-testing/pulls/new?fork=did%3Aplc%3Aixran6dpypl5lslliiqceshs&source=fork&sourceBranch=feature-abc&targetBranch=main", 35 35 }, 36 36 "is fork on same knot": { 37 37 repoName: "knot-testing-fork", 38 38 remote: "file:///home/git/repositories/did:plc:ixran6dpypl5lslliiqceshs", 39 - expectedURL: "https://tangled.org/did:plc:dadhhalkfcq3gucaq25hjqon/knot-testing/pulls/new?fork=did%3Aplc%3Adadhhalkfcq3gucaq25hjqon%2Fknot-testing-fork&source=fork&sourceBranch=feature-abc&targetBranch=main", 39 + expectedURL: "https://tangled.org/did:plc:dadhhalkfcq3gucaq25hjqon/knot-testing/pulls/new?fork=did%3Aplc%3Aixran6dpypl5lslliiqceshs&source=fork&sourceBranch=feature-abc&targetBranch=main", 40 40 }, 41 41 } 42 42 ··· 50 50 h := InternalHandle{ 51 51 db: database, 52 52 } 53 - res, err := h.createPullURL(appviewURL, tc.remote, user, userDID, tc.repoName, pushedBranch, defaultBranch) 53 + res, err := h.createPullURL(appviewURL, tc.remote, user, repoDID, tc.repoName, pushedBranch, defaultBranch) 54 54 require.NoError(t, err) 55 55 56 56 assert.Equal(t, tc.expectedURL, res)