build - prozess optimiert mit push nach zot
nginx-kill - > maint. site...
This commit is contained in:
1 parent
665135f87e
commit
64417d8353
19 files changed
+447
-61
No files matched your search
@@ -1200,3 +1200,15 @@ func TestConfigDefaults_EnrollLimitDisabled(t *testing.T) {
|
||||
t.Errorf("-1 (unbegrenzt) überschrieben: %d", c.EnrollLimit)
|
||||
}
|
||||
}
|
||||
|
||||
func TestPublicURLs_BlankEntriesIgnored(t *testing.T) {
|
||||
dir := filepath.Join(t.TempDir(), "suldata")
|
||||
s, err := New(ctx, Config{DataDir: dir, PublicURLs: []string{"", " ", "https://a.example:8443"}, Logger: slog.New(slog.DiscardHandler)})
|
||||
if err != nil {
|
||||
t.Fatalf("leere Einträge verhindern den Start: %v", err)
|
||||
}
|
||||
defer s.Shutdown(ctx)
|
||||
if got, _ := s.PublicURLs(ctx); !reflect.DeepEqual(got, []string{"https://a.example:8443"}) {
|
||||
t.Errorf("gespeichert: %v", got)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user