summaryrefslogtreecommitdiffstats
path: root/prh-app-server/src/test
diff options
context:
space:
mode:
authorPiotr Bochenski <piotr.bochenski@nokia.com>2018-08-31 11:49:21 +0200
committerPiotr Bochenski <piotr.bochenski@nokia.com>2018-08-31 12:11:46 +0200
commit3c2766d8a64d21f402b5234e33419a8aed14d7ea (patch)
tree66e26cdf9dad86b8787806a1d7914c1d21b06ae0 /prh-app-server/src/test
parent6fd8c7770fbea30ad2ec6e3f7645b8baab5a49a1 (diff)
Refactor Docker image building process
Align Docker image building process to VES project. Also refactor all Maven configurations. Change-Id: I3856bb75f41247f5ce7f17fb813aa2ab692e4def Issue-ID: DCAEGEN2-737 Signed-off-by: Piotr Bochenski <piotr.bochenski@nokia.com>
Diffstat (limited to 'prh-app-server/src/test')
-rw-r--r--prh-app-server/src/test/resources/logback-test.xml16
-rw-r--r--prh-app-server/src/test/resources/scheduled-context.xml16
2 files changed, 18 insertions, 14 deletions
diff --git a/prh-app-server/src/test/resources/logback-test.xml b/prh-app-server/src/test/resources/logback-test.xml
index 9c161fe3..c1f00665 100644
--- a/prh-app-server/src/test/resources/logback-test.xml
+++ b/prh-app-server/src/test/resources/logback-test.xml
@@ -16,18 +16,6 @@
~ limitations under the License.
~ ============================LICENSE_END===========================================
-->
-<configuration debug="false">
- <include resource="org/springframework/boot/logging/logback/base.xml"/>
- <logger level="DEBUG" name="org.onap.dcaegen2.services.prh"/>
- <appender class="ch.qos.logback.core.ConsoleAppender" name="Console">
- <encoder>
- <pattern>%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n</pattern>
- </encoder>
- </appender>
-
- <root level="ERROR">
- <appender-ref ref="Console"/>
- </root>
-
-
+<configuration>
+ <root level="OFF"/>
</configuration>
diff --git a/prh-app-server/src/test/resources/scheduled-context.xml b/prh-app-server/src/test/resources/scheduled-context.xml
new file mode 100644
index 00000000..91919aa2
--- /dev/null
+++ b/prh-app-server/src/test/resources/scheduled-context.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:task="http://www.springframework.org/schema/task"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xsi:schemaLocation="http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.0.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
+
+ <context:component-scan
+ base-package="org.onap.dcaegen2.services.prh"/>
+ <task:scheduled-tasks>
+ <task:scheduled ref="scheduleController" method="startTasks"
+ fixed-rate="1000"/>
+ </task:scheduled-tasks>
+</beans>