()
| 68 | func (s *stubLedger) MarkSuccess(ctx context.Context, requestID, backend, routeReason string) {} |
| 69 | |
| 70 | func baseReq() *types.AIRequest { |
| 71 | return &types.AIRequest{ |
| 72 | TenantID: "t1", |
| 73 | TaskType: "chat", |
| 74 | Priority: "normal", |
| 75 | Input: map[string]any{"text": "hi"}, |
| 76 | Options: types.RequestOptions{Stream: false, MaxTokens: 128}, |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | func TestOrchestrator_PolicyRejected(t *testing.T) { |
| 81 | req := baseReq() |
no outgoing calls
no test coverage detected