Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Name role capabilities consistently

cc5123a549d8d0991e74a88fff8208b5071d1192 · Keenan Nemetz · 1d ago · parent 648cd81b

server/integration_test.go +6−6

@@ -1317,8 +1317,8 @@ func TestWhoAmIRoleAnswersFromTheInstance(t *testing.T) {
1317 1317 if err != nil {
1318 1318 t.Fatalf("writer whoami --role: %v\n%s", err, errs)
1319 1319 }
1320 if got := strings.TrimSpace(out); got != "maintain" {
1321 t.Fatalf("writer whoami --role = %q, want maintain", got)
1320 if got := strings.TrimSpace(out); got != "maintainer" {
1321 t.Fatalf("writer whoami --role = %q, want maintainer", got)
1322 1322 }
1323 1323
1324 1324 // A stranger on a private repository learns nothing about it, just like a
@@ -1339,8 +1339,8 @@ func TestWhoAmIRoleAnswersFromTheInstance(t *testing.T) {
1339 1339 if err != nil {
1340 1340 t.Fatalf("stranger whoami --role on a public repository: %v\n%s", err, errs)
1341 1341 }
1342 if got := strings.TrimSpace(out); got != "read" {
1343 t.Fatalf("stranger whoami --role = %q, want read after publishing", got)
1342 if got := strings.TrimSpace(out); got != "reader" {
1343 t.Fatalf("stranger whoami --role = %q, want reader after publishing", got)
1344 1344 }
1345 1345 }
1346 1346
@@ -3966,12 +3966,12 @@ func TestACLCommandsNameTheFieldTheyChange(t *testing.T) {
3966 3966 }
3967 3967
3968 3968 cli("acl", "set-role", f.repo, "wilbur", "read")
3969 if got := acl().Entries[f.accountName("wilbur")]; got != "read" {
3969 if got := acl().Entries[f.accountName("wilbur")]; got != "reader" {
3970 3970 t.Fatalf("role after set-role = %q", got)
3971 3971 }
3972 3972
3973 3973 cli("acl", "set-default-role", f.repo, "contribute")
3974 if got := acl().Default; got != "contribute" {
3974 if got := acl().Default; got != "contributor" {
3975 3975 t.Fatalf("default after set-default-role = %q", got)
3976 3976 }
3977 3977