test(dotAI): add BedrockModelProviderStrategy unit tests#36023
test(dotAI): add BedrockModelProviderStrategy unit tests#36023sfreudenthaler wants to merge 1 commit into
Conversation
❌ Issue Linking RequiredThis PR could not be linked to an issue. All PRs must be linked to an issue for tracking purposes. How to fix this:Option 1: Add keyword to PR body (Recommended - auto-removes this comment)
Why is this required?Issue linking ensures proper tracking, documentation, and helps maintain project history. It connects your code changes to the problem they solve.--- This comment was automatically generated by the issue linking workflow |
|
Claude finished @sfreudenthaler's task in 1m 13s —— View job Code ReviewTests are clean and well-matched to the implementation. A few items worth noting: 1.
// current
assertTrue("bedrock".equals(strategy.providerName()));
// better
assertEquals("bedrock", strategy.providerName());2. The test config at line 113 omits 3. No validation path tests for
4. Half-key error not tested on the streaming path.
5. The string check at line 287–288 ( Summary: Clean tests overall — no bugs, no unsafe assumptions, good coverage of the main branches. Items 3 and 4 are the only real gaps; the rest are style nits. |
Proposed Changes
BedrockModelProviderStrategyTest(18 tests) mirroring the Azure/Vertex test conventions, locking in current behavior before further changes:IllegalArgumentExceptionregion/modelvalidation messagescohere.*/amazon.titan-*(case-insensitive), unsupported family error,embeddingInputTypepassthroughUnsupportedOperationExceptionChecklist
BedrockModelProviderStrategyTest18/18,LangChain4jModelFactoryTest38/38 (no regression)🤖 Generated with Claude Code