test(volume_server/http): cover jwt ui access override behavior

This commit is contained in:
Chris Lu
2026-02-15 14:45:28 -08:00
parent 7768fda023
commit de974c05d5
3 changed files with 28 additions and 0 deletions
+7
View File
@@ -328,6 +328,13 @@ func writeSecurityConfig(configDir string, profile matrix.Profile) error {
b.WriteString("\"\n")
b.WriteString("expires_after_seconds = 60\n")
}
if profile.AccessUI {
if b.Len() > 0 {
b.WriteString("\n")
}
b.WriteString("[access]\n")
b.WriteString("ui = true\n")
}
if b.Len() == 0 {
b.WriteString("# optional security config generated for integration tests\n")
}