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

davsclaus 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 45a7aeb  CAMEL-16400: adjust manual integration tests for 
camel-chatscript (#5449)
45a7aeb is described below

commit 45a7aeb371490763e658854b77e6c7ab74444e00
Author: Otavio Rodolfo Piske <orpi...@users.noreply.github.com>
AuthorDate: Thu Apr 22 06:29:33 2021 +0200

    CAMEL-16400: adjust manual integration tests for camel-chatscript (#5449)
---
 components/camel-chatscript/pom.xml                | 35 ----------------------
 ...tTest.java => ChatScriptComponentManualIT.java} | 13 ++++----
 2 files changed, 8 insertions(+), 40 deletions(-)

diff --git a/components/camel-chatscript/pom.xml 
b/components/camel-chatscript/pom.xml
index cea26e3..73c5821 100644
--- a/components/camel-chatscript/pom.xml
+++ b/components/camel-chatscript/pom.xml
@@ -57,40 +57,5 @@
             <artifactId>jackson-databind</artifactId>
         </dependency>
     </dependencies>
-    <profiles>
-        <profile>
-            <id>chatscript-skip-tests</id>
-            <activation>
-                <activeByDefault>true</activeByDefault>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <artifactId>maven-surefire-plugin</artifactId>
-                        <configuration>
-                            <skipTests>true</skipTests>
-                        </configuration>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-        <profile>
-            <id>chatscript-test</id>
-            <activation>
-                <activeByDefault>false</activeByDefault>
-            </activation>
-            <build>
-                <plugins>
-                    <plugin>
-                        <artifactId>maven-surefire-plugin</artifactId>
-                        <configuration>
-                            <skipTests>false</skipTests>
-                        </configuration>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
-
 </project>
 
diff --git 
a/components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentTest.java
 
b/components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentManualIT.java
similarity index 84%
rename from 
components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentTest.java
rename to 
components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentManualIT.java
index 9346c8e..7bc2820 100644
--- 
a/components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentTest.java
+++ 
b/components/camel-chatscript/src/test/java/org/apache/camel/component/ChatScriptComponentManualIT.java
@@ -24,11 +24,14 @@ import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.model.language.SimpleExpression;
 import org.apache.camel.test.junit5.CamelTestSupport;
 import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class ChatScriptComponentTest extends CamelTestSupport {
-    private static final Logger LOG = 
LoggerFactory.getLogger(ChatScriptComponentTest.class);
+@EnabledIfSystemProperty(named = "chatscript.address", matches = ".*",
+                         disabledReason = "The ChatScript address (host:port) 
was not provided")
+public class ChatScriptComponentManualIT extends CamelTestSupport {
+    private static final Logger LOG = 
LoggerFactory.getLogger(ChatScriptComponentManualIT.class);
 
     @Test
     public void testChatScript() throws Exception {
@@ -58,13 +61,13 @@ public class ChatScriptComponentTest extends 
CamelTestSupport {
                 }
                 from("timer://foo?repeatCount=1")
                         .setBody(new SimpleExpression(rq))
-                        .to("chatscript://localhost:1024/Harry?resetchat=true")
+                        
.to("chatscript://{{chatscript.address}}/Harry?resetchat=true")
                         .log("Response 2 = ${body}")
                         .setBody(new SimpleExpression(rq2))
-                        .to("chatscript://localhost:1024/Harry")
+                        .to("chatscript://{{chatscript.address}}/Harry")
                         .log("Response 3 = ${body}")
                         .setBody(new SimpleExpression(rq3))
-                        .to("chatscript://localhost:1024/Harry")
+                        .to("chatscript://{{chatscript.address}}/Harry")
                         .log("Response 4 = ${body}")
                         .to("mock:result");
             }

Reply via email to