ggbdpq's change before this one adds xai, writer, moonshot and nvidia
to vendorDot, with six pairs read off the catalog. This test reads all
200 amazon-bedrock ids from models.dev's list of today (kept in
testdata) and checks that each one answered by its own name, or by
maker.name, is no swap. A maker the list gains later and vendorDot
lacks fails here once the testdata is refreshed. The four makers are
the only ones missing today: the list's makers are amazon, anthropic,
deepseek, google, meta, minimax, mistral, moonshot, moonshotai,
nvidia, openai, qwen, writer, xai and zai.
Reported by gua2100 (ggbdpq) on GitHub.
Run (on mote):
- go test -tags nogui -count=1 ./internal/usage ok.
- go test -tags nogui -count=1 -run 'Bedrock|Swapped|Served|RelayRenamed|Rename'
./internal/gateway ok.
- go vet -tags nogui of both packages on darwin, GOOS=linux and
GOOS=windows clean; gofmt -l clean.
Broken by hand: with origin/main's served.go put back, this test fails
on 21 pairs (xai 10, writer 6, nvidia 4, moonshot 1), and
TestBedrockProfileAnsweredByItsModelIsNoSwap fails on ggbdpq's rows.
Not tried: a real Bedrock account; a full go test ./....