ultisuite-backend/internal/users/provision_resolve_test.go
R3D347HR4Y 1ffd0817d8
Some checks are pending
CI / Go tests (push) Waiting to run
CI / Integration tests (push) Waiting to run
CI / DB migrations (push) Waiting to run
feat(migration): enhance migration API with roster and audit export features
- Added endpoints for listing and importing migration rosters.
- Introduced audit export functionality for migration jobs in CSV and NDJSON formats.
- Implemented tenant mismatch validation for Microsoft migration claims.
- Enhanced error handling for email claiming and migration processes.
- Added integration tests for roster import and claim workflows.
2026-06-13 13:11:30 +02:00

27 lines
611 B
Go

package users
import (
"testing"
)
func TestLookupUserIDEmptyExternalID(t *testing.T) {
_, err := LookupUserID(t.Context(), nil, "")
if err == nil {
t.Fatal("expected error for empty external id")
}
}
func TestLookupUserIDByEmailEmpty(t *testing.T) {
_, err := LookupUserIDByEmail(t.Context(), nil, "")
if err == nil {
t.Fatal("expected error for empty email")
}
}
func TestResolveProvisionUserRequiresIdentity(t *testing.T) {
_, err := ResolveProvisionUser(t.Context(), nil, "", "user@example.com", "User")
if err == nil {
t.Fatal("expected error without external_id or existing user")
}
}