feat: add internal cluster admin endpoints

This commit is contained in:
Philipp
2026-06-11 09:35:25 +02:00
parent 376f6249b2
commit fd9a99a6d8
15 changed files with 561 additions and 7 deletions
+5
View File
@@ -43,6 +43,7 @@ func TestLoadOverrides(t *testing.T) {
t.Setenv("WORKER_CONCURRENCY", "12")
t.Setenv("REDIS_ADDR", "redis:6379")
t.Setenv("MASTER_KEY_BASE64", "test-key")
t.Setenv("OPERATOR_TOKEN", "operator-secret")
cfg, err := Load()
if err != nil {
@@ -70,6 +71,9 @@ func TestLoadOverrides(t *testing.T) {
if cfg.MasterKeyBase64 != "test-key" {
t.Fatalf("MasterKeyBase64 = %q, want test-key", cfg.MasterKeyBase64)
}
if cfg.OperatorToken != "operator-secret" {
t.Fatalf("OperatorToken = %q, want operator-secret", cfg.OperatorToken)
}
}
func TestLoadRejectsInvalidLogLevel(t *testing.T) {
@@ -110,6 +114,7 @@ func clearConfigEnv(t *testing.T) {
"REDIS_ADDR",
"APP_SITE_URL",
"MASTER_KEY_BASE64",
"OPERATOR_TOKEN",
} {
t.Setenv(key, "")
}