fix: harden model catalog projections
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user