Files
seaweedfs/seaweed-block/cmd/blockmaster/chart_flag_regression_test.go
T
pingqiuandClaude Opus 5.5 951fa7985e test: the four reproductions skip unless SEAWEED_KNOWN_BUGS=1 (#186 #187 #188 #189)
Each names its open issue; the fix PR removes its skip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:11:08 -08:00

26 lines
768 B
Go

package main
import (
"os"
"path/filepath"
"strings"
"testing"
)
func TestChartOptInLoopbackFlagIsAcceptedByBlockmaster(t *testing.T) {
if os.Getenv("SEAWEED_KNOWN_BUGS") != "1" {
t.Skip("known bug #186 (open): reproduction runs with SEAWEED_KNOWN_BUGS=1; the fix PR removes this skip")
}
raw, err := os.ReadFile(filepath.Join("..", "..", "charts", "seaweed-block", "templates", "blockmaster.yaml"))
if err != nil {
t.Fatal(err)
}
const flag = "--launcher-reject-loopback-publish-targets"
if !strings.Contains(string(raw), flag) {
t.Skip("chart no longer emits this opt-in flag")
}
if _, err := parseFlags([]string{"--authority-store", t.TempDir(), flag}); err != nil {
t.Fatalf("chart opt-in flag rejected by real binary parser: %v", err)
}
}