From cb87fc693b5af56b93e8f9302cae05b883d2f990 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 25 Oct 2022 12:36:31 +0300 Subject: [PATCH] [#617] Unify test names Signed-off-by: Denis Kirillov --- creds/accessbox/bearer_token_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/creds/accessbox/bearer_token_test.go b/creds/accessbox/bearer_token_test.go index eeb15f6..ccb095e 100644 --- a/creds/accessbox/bearer_token_test.go +++ b/creds/accessbox/bearer_token_test.go @@ -17,7 +17,7 @@ func assertBearerToken(t *testing.T, exp, act bearer.Token) { require.Equal(t, exp.Marshal(), act.Marshal()) } -func Test_tokens_encrypt_decrypt(t *testing.T) { +func TestTokensEncryptDecrypt(t *testing.T) { var ( tkn bearer.Token tkn2 bearer.Token @@ -43,7 +43,7 @@ func Test_tokens_encrypt_decrypt(t *testing.T) { assertBearerToken(t, tkn, tkn2) } -func Test_bearer_token_in_access_box(t *testing.T) { +func TestBearerTokenInAccessBox(t *testing.T) { var ( box *AccessBox box2 AccessBox @@ -75,7 +75,7 @@ func Test_bearer_token_in_access_box(t *testing.T) { assertBearerToken(t, tkn, *tkns.BearerToken) } -func Test_session_token_in_access_box(t *testing.T) { +func TestSessionTokenInAccessBox(t *testing.T) { var ( box *AccessBox box2 AccessBox @@ -110,7 +110,7 @@ func Test_session_token_in_access_box(t *testing.T) { require.Equal(t, []*session.Container{tkn}, tkns.SessionTokens) } -func Test_accessbox_multiple_keys(t *testing.T) { +func TestAccessboxMultipleKeys(t *testing.T) { var ( box *AccessBox tkn bearer.Token @@ -145,7 +145,7 @@ func Test_accessbox_multiple_keys(t *testing.T) { } } -func Test_unknown_key(t *testing.T) { +func TestUnknownKey(t *testing.T) { var ( box *AccessBox tkn bearer.Token