mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-03 08:54:37 -04:00
set federatedRepoList into context
This commit is contained in:
parent
cf8a30efac
commit
d251fc2611
5 changed files with 13 additions and 15 deletions
|
@ -14,6 +14,7 @@ func Test_FederatedRepoValidation(t *testing.T) {
|
|||
RepoID: 12,
|
||||
ExternalID: "12",
|
||||
FederationHostID: 1,
|
||||
Uri: "http://localhost:3000/api/v1/activitypub/repo-id/1",
|
||||
}
|
||||
if res, err := validation.IsValid(sut); !res {
|
||||
t.Errorf("sut should be valid but was %q", err)
|
||||
|
@ -22,6 +23,7 @@ func Test_FederatedRepoValidation(t *testing.T) {
|
|||
sut = FederatedRepo{
|
||||
ExternalID: "12",
|
||||
FederationHostID: 1,
|
||||
Uri: "http://localhost:3000/api/v1/activitypub/repo-id/1",
|
||||
}
|
||||
if res, _ := validation.IsValid(sut); res {
|
||||
t.Errorf("sut should be invalid")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue