Judge catalogue tests as the check does: the predefined list and templates read from the tree (issue 914)

This commit is contained in:
2026-10-16 14:50:40 +02:00
parent a20680dfe7
commit 65f24cd45d
8 changed files with 87 additions and 67 deletions
+1 -6
View File
@@ -2,7 +2,6 @@ package main
import (
"context"
"os"
"path/filepath"
"reflect"
"strings"
@@ -244,11 +243,7 @@ func TestATakeoverIsNotComposedForAHubPlacedOffItsTunnel(t *testing.T) {
// theResolver is the catalogue's dnsmasq module as it is (internal/beside).
func theResolver(t *testing.T) catalogue.Manifest {
t.Helper()
raw, err := os.ReadFile(filepath.Join(beside.Catalogue(t), "dnsmasq", "module.json"))
if err != nil {
t.Fatal(err)
}
m, err := catalogue.ParseManifest(raw)
m, err := catalogue.ReadTreeManifest(beside.Dir(t, "mesh-catalog"), filepath.Join(beside.Catalogue(t), "dnsmasq"))
if err != nil {
t.Fatalf("dnsmasq does not parse:\n%v", err)
}