Commit ccd85fdd authored by Artem Dobrynin (EPAM)'s avatar Artem Dobrynin (EPAM) Committed by Rostislav Dublin (EPAM)
Browse files


*Logs for Subscription exception response
*Docs improvement
parent a22668fb
This diff is collapsed.
#Notification Service
# Notification Service
notification-gcp is a [Spring Boot]( service that allow for interested consumers to subscribe to data and metadata changes using a publish/subscriber pattern.
## Getting Started
......@@ -121,7 +121,7 @@ $ (cd notification-core/ && mvn clean install)
After the service has started it should be accessible via a web browser by visiting [http://localhost:8080/api/notification/v1/swagger-ui.html](http://localhost:8080/swagger-ui.html). If the request does not fail, you can then run the integration tests.
###Dependencies needed to run the integration tests
### Dependencies needed to run the integration tests
* Java 8
* Maven
* Values for the following environment variables in
......@@ -150,7 +150,7 @@ After the service has started it should be accessible via a web browser by visit
Above variables should be configured in the release pipeline to run integration tests. You should also replace them with proper values if you wish to run tests locally.
###Commands to run tests
### Commands to run tests
* Integration tests are refactored into two pieces: Core and Provider. Core contains business logic for tests and is a dependency for executing the tests from provider module. To build the core module, simply navigate to `notification-test-core` directory and run `mvn clean install`. This will build the core module
* Next, to execute the integration tests, navigate to the provider module and execute `mvn test`
......@@ -44,7 +44,7 @@
......@@ -53,6 +53,12 @@
<!-- unit test dependencies -->
......@@ -19,10 +19,17 @@ package org.opengroup.osdu.notification.provider.gcp;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableAsync;
@ComponentScan(value = {"org.opengroup.osdu"}, excludeFilters = {
type = FilterType.REGEX,
pattern = {"org.opengroup.osdu.core.gcp.multitenancy.StorageFactory"}
public class Application {
<?xml version="1.0" encoding="UTF-8"?>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
<springProfile name="local">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<pattern>%yellow([%thread]) %highlight(| %-5level |) %green(%d) %cyan(| %logger{15} |) %highlight(%msg) %n</pattern>
<root level="DEBUG">
<appender-ref ref="CONSOLE"/>
<springProfile name="!local">
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="ch.qos.logback.contrib.json.classic.JsonLayout">
<timestampFormat>yyyy-MM-dd HH:mm:ss.SSS</timestampFormat>
<jsonFormatter class="org.opengroup.osdu.core.gcp.logging.formatter.GoogleJsonFormatter">
<root level="debug">
<appender-ref ref="stdout"/>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment