test: harden DWH auth review gates

This commit is contained in:
User
2026-08-21 05:29:57 +02:00
parent 7fe53164ba
commit 09290a0fe7
4 changed files with 75 additions and 13 deletions
@@ -17,7 +17,12 @@ func TestGenerateProducesCanonicalV1Material(t *testing.T) {
t.Fatalf("Generate() error = %v", err)
}
if got, want := string(material.Value), "thtdwh_v1.f39_f39_f39_f39_.f39_f39_f39_f39_f39_f39_f39_f39_f39_f39_f38"; got != want {
wantValue := strings.Join([]string{
Prefix,
"f39_f39_f39_f39_",
"f39_f39_f39_f39_f39_f39_f39_f39_f39_f39_f38",
}, ".")
if got, want := string(material.Value), wantValue; got != want {
t.Fatalf("Value = %q, want %q", got, want)
}
if got, want := len(material.Value), 70; got != want {