Add little delay to wait for elasticsearch and fix missing logging
ADD
gateway/test/src/test/resources/log4j2-test.xml
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="INFO">
+ <Appenders>
+ <Console name="Console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%-5p [%t]: %m%n"/>
+ </Console>
+ </Appenders>
+ <Loggers>
+ <Root level="INFO">
+ <AppenderRef ref="Console"/>
+ </Root>
+ </Loggers>
+</Configuration>
\ No newline at end of file

MODIFY
gateway/test/src/test/resources/test-plans/api/api-testPlan.xml
gateway/test/src/test/resources/test-plans/api/api-testPlan.xml
</testGroup>
<testGroup name="List entities">
+ <test name="Wait for elasticsearch" delay="2000" />
<!-- Orgs -->
<test name="List Orgs">test-plan-data/api/list/000-list-orgs.resttest</test>
<!-- APIs -->

ADD
test/common/src/main/resources/log4j2.xml
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="INFO">
+ <Appenders>
+ <Console name="Console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%-5p [%t]: %m%n"/>
+ </Console>
+ </Appenders>
+ <Loggers>
+ <Root level="INFO">
+ <AppenderRef ref="Console"/>
+ </Root>
+ </Loggers>
+</Configuration>
\ No newline at end of file

ADD
test/common/src/test/resources/log4j.properties
+# Direct log messages to stdout
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %m%n
+
+# Root logger option
+log4j.rootLogger=INFO, stdout

ADD
test/common/src/test/resources/log4j2-test.xml
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="INFO">
+ <Appenders>
+ <Console name="Console" target="SYSTEM_OUT">
+ <PatternLayout pattern="%-5p [%t]: %m%n"/>
+ </Console>
+ </Appenders>
+ <Loggers>
+ <Root level="INFO">
+ <AppenderRef ref="Console"/>
+ </Root>
+ </Loggers>
+</Configuration>
\ No newline at end of file

Add little delay to wait for elasticsearch and fix missing logging (#747)