forked from TrueCloudLab/frostfs-s3-gw
parent
712740b668
commit
cb87fc693b
1 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ func assertBearerToken(t *testing.T, exp, act bearer.Token) {
|
||||||
require.Equal(t, exp.Marshal(), act.Marshal())
|
require.Equal(t, exp.Marshal(), act.Marshal())
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_tokens_encrypt_decrypt(t *testing.T) {
|
func TestTokensEncryptDecrypt(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
tkn bearer.Token
|
tkn bearer.Token
|
||||||
tkn2 bearer.Token
|
tkn2 bearer.Token
|
||||||
|
@ -43,7 +43,7 @@ func Test_tokens_encrypt_decrypt(t *testing.T) {
|
||||||
assertBearerToken(t, tkn, tkn2)
|
assertBearerToken(t, tkn, tkn2)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_bearer_token_in_access_box(t *testing.T) {
|
func TestBearerTokenInAccessBox(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
box *AccessBox
|
box *AccessBox
|
||||||
box2 AccessBox
|
box2 AccessBox
|
||||||
|
@ -75,7 +75,7 @@ func Test_bearer_token_in_access_box(t *testing.T) {
|
||||||
assertBearerToken(t, tkn, *tkns.BearerToken)
|
assertBearerToken(t, tkn, *tkns.BearerToken)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_session_token_in_access_box(t *testing.T) {
|
func TestSessionTokenInAccessBox(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
box *AccessBox
|
box *AccessBox
|
||||||
box2 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)
|
require.Equal(t, []*session.Container{tkn}, tkns.SessionTokens)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Test_accessbox_multiple_keys(t *testing.T) {
|
func TestAccessboxMultipleKeys(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
box *AccessBox
|
box *AccessBox
|
||||||
tkn bearer.Token
|
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 (
|
var (
|
||||||
box *AccessBox
|
box *AccessBox
|
||||||
tkn bearer.Token
|
tkn bearer.Token
|
||||||
|
|
Loading…
Reference in a new issue