Skip to content
Snippets Groups Projects
Rucha Deshpande's avatar
Rucha Deshpande authored
commit 7f46cdb0 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Nov 19 2020 14:09:50 GMT-0600 (Central Standard Time) 

    Remove debug stms


commit df633a65 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Nov 19 2020 13:18:00 GMT-0600 (Central Standard Time) 

    Remove debug stmt


commit f110b5e0 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Wed Nov 18 2020 14:42:07 GMT-0600 (Central Standard Time) 

    Merge remote-tracking branch 'remotes/origin/dev' into deshruch


commit d9b0d6bf 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Wed Nov 18 2020 14:41:11 GMT-0600 (Central Standard Time) 

    update os-core-lib-ws release version


commit 179bc904 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Nov 17 2020 17:13:46 GMT-0600 (Central Standard Time) 

    update core-lib version


commit 6d2326de 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Nov 17 2020 16:49:13 GMT-0600 (Central Standard Time) 

    update core-lib version


commit 138ec563 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Nov 17 2020 15:48:18 GMT-0600 (Central Standard Time) 

    add debug stsms


commit d561a222 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Nov 17 2020 15:44:53 GMT-0600 (Central Standard Time) 

    Update os-core-lib-aws version


commit ab4445a8 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Nov 17 2020 12:51:21 GMT-0600 (Central Standard Time) 

    Use ServicePrincipal implementation from os-core-lib-aws


commit 4e382145 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Nov 17 2020 12:44:58 GMT-0600 (Central Standard Time) 

    Use release version of os-core-lib-aws


commit 755d743d 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Nov 17 2020 11:23:41 GMT-0600 (Central Standard Time) 

    Move ServicePrincipal code to os-core-lib-aws


commit ee6cb3a7 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Mon Nov 16 2020 17:08:01 GMT-0600 (Central Standard Time) 

    Remove debug stmts


commit 4ad50766 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Mon Nov 16 2020 12:26:29 GMT-0600 (Central Standard Time) 

    oauth client credentials


commit 87ef11e7 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Mon Nov 16 2020 11:19:55 GMT-0600 (Central Standard Time) 

    update core -lib and add debug stsms


commit d34e4028 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Fri Nov 13 2020 16:53:03 GMT-0600 (Central Standard Time) 

    update core-lib version


commit 8360d0d5 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Fri Nov 13 2020 15:48:08 GMT-0600 (Central Standard Time) 

    using test os-ore-lib


commit 9fbb6227 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Fri Nov 13 2020 10:58:03 GMT-0600 (Central Standard Time) 

    Bug fix: add custom scope as env. var


commit 71e207d5 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Nov 12 2020 16:07:30 GMT-0600 (Central Standard Time) 

    Bug Fix: Update SSM parameter retrieval


commit d9459e9e 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Thu Nov 12 2020 15:55:32 GMT-0600 (Central Standard Time) 

    Use client credetials flow to get access token
5431b207
History

Copyright 2017-2020, Schlumberger

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Notification service

The Notification service, with Register service, allow interested consumers to subscribe to data and metadata changes using a publisher/subscriber pattern

##Dependencies needed to run the code locally

  • JDK11
  • Maven
  • Azure Devops access to slb-des-ext-collaboration organization. You need to generate a PAT that can access dependencies held in the Azure artifacts
  • Working Register service endpoint

Build and run service locally

  • Build the service and run the unit tests. This step also generates the executable jar file. Run this command from the root folder, where parent pom.xml resides

Note: At runtime, you must set a Spring profile so the right runtime configuration gets picked up for your app. Since this is a Spring Boot application, runtime configuration is defined in one of the application properties files under <provider>->src->main->resources. You can set the right Spring Boot runtime profile with -Dspring.profiles.active=test. Please read this for more info.

mvn clean install
  • To run the service locally, navigate to provider/notification-<your_provider>/target directory and execute the spring-boot jar
java -jar notification-gcp-1.0.0-spring-boot.jar
  • To debug service locally, create a remote debug configuration first and then use following command to start service in debug mode
java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar notification-gcp-1.0.0-spring-boot.jar

Note: The port number "8000" in the command should match with the remote debug config settings.

Access the service:

The port and path for the service endpoint can be configured in application.properties as following. If not specified, then the web container (ex. Tomcat) default is used:

server.servlet.contextPath=/
server.port=8080