weed/s3api: prune test-only functions (#8840)

weed/s3api: prune functions that are referenced only from tests and the tests that exercise them.
This commit is contained in:
Lars Lehtonen
2026-03-30 09:43:33 -07:00
committed by GitHub
parent 955a011f39
commit 5c5d377277
6 changed files with 0 additions and 543 deletions

View File

@@ -539,10 +539,6 @@ func testJWTAuthentication(t *testing.T, iam *IdentityAccessManagement, token st
return iam.authenticateJWTWithIAM(req)
}
func testJWTAuthorization(t *testing.T, iam *IdentityAccessManagement, identity *Identity, action Action, bucket, object, token string) bool {
return testJWTAuthorizationWithRole(t, iam, identity, action, bucket, object, token, "TestRole")
}
func testJWTAuthorizationWithRole(t *testing.T, iam *IdentityAccessManagement, identity *Identity, action Action, bucket, object, token, roleName string) bool {
// Create test request
req := httptest.NewRequest("GET", "/"+bucket+"/"+object, http.NoBody)