ultisuite-backend/internal/authentik/api_base_test.go
R3D347HR4Y e4549f29b2
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(authentik): implement password recovery flow and API integration
- Added a new blueprint for password recovery (`05-ulti-recovery.yaml`) to facilitate user password reset via email.
- Introduced a new API handler for managing Authentik flow sessions, including starting and responding to flows.
- Implemented flow session management with in-memory storage for tracking user sessions during the recovery process.
- Enhanced error handling for flow session operations and added unit tests for the new functionalities.
- Updated README to include the new recovery flow in the Authentik blueprints documentation.
2026-06-19 22:34:29 +02:00

20 lines
608 B
Go

package authentik
import "testing"
func TestAPIBaseURL(t *testing.T) {
t.Parallel()
cases := map[string]string{
"http://authentik-server:9000": "http://authentik-server:9000/auth",
"http://authentik-server:9000/": "http://authentik-server:9000/auth",
"http://authentik-server:9000/auth": "http://authentik-server:9000/auth",
"http://authentik-server:9000/auth/": "http://authentik-server:9000/auth",
"": "http://authentik-server:9000/auth",
}
for in, want := range cases {
if got := APIBaseURL(in); got != want {
t.Fatalf("APIBaseURL(%q) = %q, want %q", in, got, want)
}
}
}