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
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

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 integration tests

Notification integration tests are refactored so that the business logic for integration tests resides in the notification-test-core module and provider specific logic and execution steps reside in provider module (e.g. notification-test-gcp). To run the integration tests, the core module is built first and then the provider module is executed. Please read further to know more details.

###Dependencies needed to run the integration tests

  • 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

  • Values for the following environment variables in Config.java

     DE_OPS_TESTER (service account key which has full api access)
     DE_ADMIN_TESTER (service account key which has admins api access)
     DE_EDITOR_TESTER (service account key which has editor api access)
     DE_NO_ACCESS_TESTER (service account key which has not api access)
     ENVIRONMENT ('local' for local testing or 'dev' for dev testing)
     HMAC_SECRET (sensitive secret to run HMAC tests)
     REGISTER_BASE_URL (register service endpoint)
     NOTIFICATION_BASE_URL (notification service endpoint)
     *Only for gcp INTEGRATION_TEST_AUDIENCE (oauth client ID)
     

    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

  • 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

GCP

Instructions for running the GCP integration tests can be found here.