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:
@@ -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()
|
outDir := t.TempDir()
|
||||||
fixture := filepath.Join(outDir, "sample.yaml")
|
fixture := filepath.Join(outDir, "sample.yaml")
|
||||||
const jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhbGljZSJ9.signaturehere123456"
|
const jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhbGljZSJ9.signaturehere123456"
|
||||||
|
|||||||
@@ -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()
|
outDir := t.TempDir()
|
||||||
fixture := filepath.Join(outDir, "sample.yaml")
|
fixture := filepath.Join(outDir, "sample.yaml")
|
||||||
|
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ func conformSpec(t *testing.T) conformSpecDoc {
|
|||||||
if !ok {
|
if !ok {
|
||||||
t.Fatal("caller")
|
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 {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ func TestPhase09ContractInventory(t *testing.T) {
|
|||||||
if !ok {
|
if !ok {
|
||||||
t.Fatal("caller")
|
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)
|
raw, err := os.ReadFile(specPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("read %s: %v", specPath, err)
|
t.Fatalf("read %s: %v", specPath, err)
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ func TestPhase10SPAKeysResolve(t *testing.T) {
|
|||||||
if !ok {
|
if !ok {
|
||||||
t.Fatal("caller")
|
t.Fatal("caller")
|
||||||
}
|
}
|
||||||
root := filepath.Join(filepath.Dir(file), "..", "admin", "src")
|
root := filepath.Join(filepath.Dir(file), "..", "..", "admin", "src")
|
||||||
keys := map[string]bool{}
|
keys := map[string]bool{}
|
||||||
err := filepath.WalkDir(root, func(path string, d fs.DirEntry, err error) error {
|
err := filepath.WalkDir(root, func(path string, d fs.DirEntry, err error) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user