This is an automated email from the ASF dual-hosted git repository.

jpoth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 14f26129804d CAMEL-22545 disable tests CI doesn't have python env
14f26129804d is described below

commit 14f26129804da9e247c3e274b0a3da32b15053a4
Author: John Poth <[email protected]>
AuthorDate: Fri Feb 20 10:37:38 2026 +0100

    CAMEL-22545 disable tests CI doesn't have python env
---
 .../org/apache/camel/component/huggingface/HuggingFaceIT.java    | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/components/camel-ai/camel-huggingface/src/test/java/org/apache/camel/component/huggingface/HuggingFaceIT.java
 
b/components/camel-ai/camel-huggingface/src/test/java/org/apache/camel/component/huggingface/HuggingFaceIT.java
index e5243164db07..c8835ee99e02 100644
--- 
a/components/camel-ai/camel-huggingface/src/test/java/org/apache/camel/component/huggingface/HuggingFaceIT.java
+++ 
b/components/camel-ai/camel-huggingface/src/test/java/org/apache/camel/component/huggingface/HuggingFaceIT.java
@@ -16,9 +16,6 @@
  */
 package org.apache.camel.component.huggingface;
 
-import java.io.IOException;
-import java.nio.file.Paths;
-
 import ai.djl.modality.Classifications;
 import ai.djl.modality.audio.Audio;
 import ai.djl.modality.audio.AudioFactory;
@@ -26,6 +23,7 @@ import ai.djl.modality.nlp.qa.QAInput;
 import org.apache.camel.CamelContext;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.test.junit5.CamelTestSupport;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Tags;
 import org.junit.jupiter.api.Test;
@@ -34,6 +32,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
+@Disabled("CI doesn't have python env")
 @Tags({ @Tag("slow") })
 public class HuggingFaceIT extends CamelTestSupport {
 
@@ -110,8 +109,8 @@ public class HuggingFaceIT extends CamelTestSupport {
     }
 
     @Test
-    public void testAutomaticSpeechRecognition() throws IOException {
-        Audio audio = 
AudioFactory.newInstance().fromFile(Paths.get("generated_audio.wav"));
+    public void testAutomaticSpeechRecognition() throws Exception {
+        Audio audio = 
AudioFactory.newInstance().fromUrl(getClass().getClassLoader().getResource("generated_audio.wav"));
         template.sendBody("direct:start-asr", audio);
         String output = 
getMockEndpoint("mock:result").getReceivedExchanges().get(0).getMessage().getBody(String.class);
         assertTrue(output.contains("Hello world."));

Reply via email to