v0.332.0: one sign-in for the file manager — a dashboard pass, a host-only files cookie, a per-box secret header (R-1100, operator D16)
gates / gates (push) Successful in 47s
gates / gates (push) Successful in 47s
This commit is contained in:
@@ -7,10 +7,10 @@ import (
|
||||
|
||||
// `09` §3 decision 36 — the kept-data source appears only when named, at /srv/megorzott.
|
||||
func TestFileBrowser_KeptSourceOnlyWhenNamed(t *testing.T) {
|
||||
if s := RenderFileBrowserConfigKept(nil, false, ""); strings.Contains(s, FileBrowserKeptMount) {
|
||||
if s := RenderFileBrowserConfigKept(nil, false, "", FileBrowserSSO{}); strings.Contains(s, FileBrowserKeptMount) {
|
||||
t.Fatal("a kept source rendered with no label")
|
||||
}
|
||||
s := RenderFileBrowserConfigKept(nil, false, "Megőrzött adatok")
|
||||
s := RenderFileBrowserConfigKept(nil, false, "Megőrzött adatok", FileBrowserSSO{})
|
||||
if !strings.Contains(s, `path: "/srv/`+FileBrowserKeptMount+`"`) || !strings.Contains(s, `name: "Megőrzött adatok"`) {
|
||||
t.Fatalf("kept source missing:\n%s", s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user