fix: harden model catalog projections

This commit is contained in:
Codex
2026-09-02 19:25:01 +02:00
parent ce4c31a6fb
commit a6a5bf2036
38 changed files with 573 additions and 83 deletions
@@ -69,6 +69,19 @@ func TestRunReportsProviderAuthenticationConflictAndPublishesNothing(t *testing.
}
}
func TestRunAcceptsVersionedYAMLCandidateFilename(t *testing.T) {
fixture := migrationFixture(t, false)
request := fixture.request()
request.OutputPath = filepath.Join(filepath.Dir(request.OutputPath), "thothii-installation.v2.yaml")
if err := Run(request); err != nil {
t.Fatalf("Run() error = %v", err)
}
if info, err := os.Stat(request.OutputPath); err != nil || !info.Mode().IsRegular() {
t.Fatalf("versioned candidate: info=%v err=%v", info, err)
}
}
type migrationTestFixture struct {
legacy string
output string