23 lines
640 B
Go
23 lines
640 B
Go
package agentconfig
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestRepositoryDefaultCatalog(t *testing.T) {
|
|
catalog, err := Load(filepath.Join("..", "..", "..", "configs", "iop-agent.providers.yaml"))
|
|
if err != nil {
|
|
t.Fatalf("Load repository catalog: %v", err)
|
|
}
|
|
for _, profileID := range []string{"claude-headless", "codex-headless", "codex-smoke"} {
|
|
resolved, ok := catalog.ResolveProfile(profileID)
|
|
if !ok {
|
|
t.Errorf("profile %q is missing", profileID)
|
|
continue
|
|
}
|
|
if resolved.Provider.ID == "" || resolved.Model.ID == "" {
|
|
t.Errorf("profile %q resolved incomplete identity: %#v", profileID, resolved)
|
|
}
|
|
}
|
|
}
|