Fix TenantID construction in auth error test
TenantID is an [8]byte, so casting 1 does not compile. Use NewTenantID like the other tests. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
committed by
Cursor Agent
parent
77c57cc4a5
commit
4e895df54f
@@ -52,7 +52,7 @@ func TestRedirectAuthError(t *testing.T) {
|
|||||||
func TestAuthErrorCodeFromSAML(t *testing.T) {
|
func TestAuthErrorCodeFromSAML(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
configID := gid.New(gid.TenantID(1), coredata.SAMLConfigurationEntityType)
|
configID := gid.New(gid.NewTenantID(), coredata.SAMLConfigurationEntityType)
|
||||||
email, err := mail.ParseAddr("user@example.com")
|
email, err := mail.ParseAddr("user@example.com")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user