From 0f6d50a68d88bf7c94e65770e6fc50750bc73519 Mon Sep 17 00:00:00 2001 From: Eugene Blikh Date: Wed, 12 Aug 2026 23:27:03 +0300 Subject: [PATCH] authn: gofmt the test files --- authn/grpc_test.go | 2 +- authn/jwt_test.go | 2 +- authn/token_test.go | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/authn/grpc_test.go b/authn/grpc_test.go index e0be976a984aa1e2e019462ced37b48ddd342ccb..3d531a604011505f762efcea1565812af7a42779 100644 --- a/authn/grpc_test.go +++ b/authn/grpc_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "sourcecraft.dev/bigbes/sr-ht-core/auth" "github.com/dolthub/dolt/go/libraries/doltcore/creds" + "sourcecraft.dev/bigbes/sr-ht-core/auth" ) func basicHeader(user, pass string) string { diff --git a/authn/jwt_test.go b/authn/jwt_test.go index 4194cec580d65bf07f28ea14d89cb7c581924b25..bdd734622768783bfc6f4ddb18d6271e4c8edc6c 100644 --- a/authn/jwt_test.go +++ b/authn/jwt_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "sourcecraft.dev/bigbes/sr-ht-core/auth" "github.com/dolthub/dolt/go/libraries/doltcore/creds" + "sourcecraft.dev/bigbes/sr-ht-core/auth" ) const testAud = "dolt.srht.bigb.es" diff --git a/authn/token_test.go b/authn/token_test.go index a859739997b95debd39a477753af66af536226b7..d353d4fabe0f317c0eb0b282ed6a2bdb7c76a1be 100644 --- a/authn/token_test.go +++ b/authn/token_test.go @@ -47,7 +47,7 @@ func TestResolveBasic_UsernameTildeAndCaseInsensitive(t *testing.T) { func TestResolveBasic_UsernameMismatch(t *testing.T) { withStubBackend(t, &stubBackend{users: map[string]auth.AuthContext{ - "bigbes": sampleUser(1, "bigbes", auth.USER_TYPE_USER), + "bigbes": sampleUser(1, "bigbes", auth.USER_TYPE_USER), "mallory": sampleUser(2, "mallory", auth.USER_TYPE_USER), }}) pat := forgePAT("bigbes", "", time.Now().Add(time.Hour)) @@ -210,10 +210,10 @@ func TestTokenGrantsAllow(t *testing.T) { } cases := []struct { - name string - ac *auth.AuthContext - mode core.AccessMode - want bool + name string + ac *auth.AuthContext + mode core.AccessMode + want bool }{ {"nil caller passes", nil, core.AccessRW, true}, {"cookie (no bearer) passes", &auth.AuthContext{AuthMethod: auth.AUTH_COOKIE}, core.AccessRW, true},