oscerd commented on code in PR #27714:
URL: https://github.com/apache/camel/pull/27714#discussion_r4246564519


##########
components/camel-ai/camel-ai-tool/src/test/java/org/apache/camel/component/ai/tool/AiToolAuthorizationDeniedEventTest.java:
##########
@@ -140,7 +140,7 @@ void firesAnEventWhenThePolicyThrows() {
         // ...and the denial is now observable as a single event
         assertThat(events).hasSize(1);
         AiToolAuthorizationDeniedEvent event = events.get(0);
-        assertThat(event.getType()).isEqualTo(CamelEvent.Type.Custom);
+        assertThat(event.getType()).isEqualTo(CamelEvent.Type.Ai);
         assertThat(event.getToolName()).isEqualTo("guarded");
         assertThat(event.getExchange()).isSameAs(exchange);

Review Comment:
   Added — `firesAnEventWhenThePolicyThrows` now asserts `event.getProvider()` 
is `ai-tool` and `event instanceof AiEvent.ToolCallDeniedEvent` (044b4b4c29c6).
   
   _Claude Code on behalf of oscerd_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to