2022-02-21 17:57:27 +00:00
|
|
|
package session_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2022-12-09 11:16:24 +00:00
|
|
|
"github.com/TrueCloudLab/frostfs-api-go/v2/session"
|
|
|
|
statustest "github.com/TrueCloudLab/frostfs-api-go/v2/status/test"
|
2022-02-21 17:57:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestStatusCodes(t *testing.T) {
|
|
|
|
statustest.TestCodes(t, session.LocalizeFailStatus, session.GlobalizeFail,
|
|
|
|
session.StatusTokenNotFound, 4096,
|
|
|
|
session.StatusTokenExpired, 4097,
|
|
|
|
)
|
|
|
|
}
|