Add session endpoint test for #2448 (#2450)

This commit is contained in:
Jeff Mitchell committed 2022-09-13 20:29:58 -04:00
1 parent fa619b0910
commit 37fb9815ce
3 files changed
+48 -5

No files matched your search

+3
View File
@@ -11,6 +11,9 @@ import (
"github.com/stretchr/testify/require"
)
// TestAuthToken, despite its name, does more than just return an auth token; it
// also creates an auth method, an account, and a user and binds them together,
// then creates an auth token against it
func TestAuthToken(t testing.TB, conn *db.DB, kms *kms.Kms, scopeId string, opt ...Option) *AuthToken {
t.Helper()
authMethod := password.TestAuthMethods(t, conn, scopeId, 1)[0]