You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/05/08 10:26:10 UTC

[camel] 01/05: Camel-Soroush: Cleaned up a bit and ignored integration test

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

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

commit 7b84816d746a94311b909939776b6b9ea822095d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed May 8 12:18:14 2019 +0200

    Camel-Soroush: Cleaned up a bit and ignored integration test
---
 .../component/soroushbot/service/SoroushServiceTest.java  |  2 ++
 .../camel-soroush/src/test/resources/log4j2.properties    | 15 +++++++--------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/service/SoroushServiceTest.java b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/service/SoroushServiceTest.java
index 73f6378..275f4b9 100644
--- a/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/service/SoroushServiceTest.java
+++ b/components/camel-soroush/src/test/java/org/apache/camel/component/soroushbot/service/SoroushServiceTest.java
@@ -42,11 +42,13 @@ import org.glassfish.jersey.media.sse.InboundEvent;
 import org.glassfish.jersey.media.sse.SseFeature;
 import org.junit.Assert;
 import org.junit.BeforeClass;
+import org.junit.Ignore;
 import org.junit.Test;
 
 /**
  * check if soroush BOT Api work as expected
  */
+@Ignore("Need the token to work")
 public class SoroushServiceTest {
     static String authorizationToken;
     static String receiverId;
diff --git a/components/camel-soroush/src/test/resources/log4j2.properties b/components/camel-soroush/src/test/resources/log4j2.properties
index 30fa690..14a3cf6 100644
--- a/components/camel-soroush/src/test/resources/log4j2.properties
+++ b/components/camel-soroush/src/test/resources/log4j2.properties
@@ -16,13 +16,12 @@
 ## ---------------------------------------------------------------------------
 appender.file.type = File
 appender.file.name = file
-appender.file.fileName = target/camel-soroush.log
+appender.file.fileName = target/camel-soroush-test.log
 appender.file.layout.type = PatternLayout
-appender.file.layout.pattern = %d %-5p %c{1} - %m %n
-appender.console.type = Console
-appender.console.name = console
-appender.console.layout.type = PatternLayout
-appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
-logger.soroush.name = org.apache.camel.component.soroushbot
-logger.soroush.level = DEBUG
+appender.file.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
+appender.out.type = Console
+appender.out.name = out
+appender.out.layout.type = PatternLayout
+appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
+rootLogger.level = INFO
 rootLogger.appenderRef.file.ref = file
\ No newline at end of file