mesh/delivery superseded: a newer head of the same pull request
mesh/check failed: g14: novox/mesh-catalog#464: checks/health/go.mod names mesh-sdk a9560890ee26, which is neither on mesh-sdk's trunk nor the group's…
26 lines
785 B
Go
26 lines
785 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.novox.be/novox/mesh-catalog/checks/trunk"
|
|
)
|
|
|
|
// The script's run of this check over the real tree (novox/hq ADR 0529 clause 2): the known list gains no line the trunk's copy
|
|
// at the merge base does not hold. Without a trunk copy the lines in seed are the trunk's.
|
|
func TestTheKnownListHoldsNoLineTheTrunksDoesNot(t *testing.T) {
|
|
known, err := Known("known")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
base := seed
|
|
if path, ok := trunk.Copy(t, "checks/secrets/known"); ok {
|
|
if base, err = Known(path); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|
|
for _, line := range Added(known, base) {
|
|
t.Errorf("checks/secrets/known gains %q, which the trunk's copy does not hold: the list only shrinks — protect the key instead (novox/hq issue 342)", line)
|
|
}
|
|
}
|