test(10.2-01): retarget moved package fixtures

- Resolve CLI and module-local fixtures from modules/ paths
- Keep root admin assets reachable from nested package tests
This commit is contained in:
Jakub Zych
2026-09-28 12:56:15 +02:00
parent 5e50b166ef
commit 57e7b56983
5 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ func TestParityCommandContract(t *testing.T) {
}
}
spec := filepath.Join("..", "..", "tide", "testdata", "one-route-spec.yaml")
spec := filepath.Join("..", "..", "modules", "tide", "testdata", "one-route-spec.yaml")
outDir := t.TempDir()
fixture := filepath.Join(outDir, "sample.yaml")
const jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhbGljZSJ9.signaturehere123456"

View File

@@ -20,7 +20,7 @@ func TestParityCommands(t *testing.T) {
}
}
spec := filepath.Join("..", "..", "tide", "testdata", "one-route-spec.yaml")
spec := filepath.Join("..", "..", "modules", "tide", "testdata", "one-route-spec.yaml")
outDir := t.TempDir()
fixture := filepath.Join(outDir, "sample.yaml")

View File

@@ -202,7 +202,7 @@ func conformSpec(t *testing.T) conformSpecDoc {
if !ok {
t.Fatal("caller")
}
raw, err := os.ReadFile(filepath.Join(filepath.Dir(file), "..", "admin", "openapi", "admin.json"))
raw, err := os.ReadFile(filepath.Join(filepath.Dir(file), "..", "..", "admin", "openapi", "admin.json"))
if err != nil {
t.Fatal(err)
}

View File

@@ -17,7 +17,7 @@ func TestPhase09ContractInventory(t *testing.T) {
if !ok {
t.Fatal("caller")
}
specPath := filepath.Clean(filepath.Join(filepath.Dir(file), "..", "admin", "openapi", "admin.json"))
specPath := filepath.Clean(filepath.Join(filepath.Dir(file), "..", "..", "admin", "openapi", "admin.json"))
raw, err := os.ReadFile(specPath)
if err != nil {
t.Fatalf("read %s: %v", specPath, err)

View File

@@ -154,7 +154,7 @@ func TestPhase10SPAKeysResolve(t *testing.T) {
if !ok {
t.Fatal("caller")
}
root := filepath.Join(filepath.Dir(file), "..", "admin", "src")
root := filepath.Join(filepath.Dir(file), "..", "..", "admin", "src")
keys := map[string]bool{}
err := filepath.WalkDir(root, func(path string, d fs.DirEntry, err error) error {
if err != nil {