Skip to content
Snippets Groups Projects
Karina Cadette's avatar
Karina Cadette authored
commit fac8925e 
Author: David Diederich <d.diederich@opengroup.org> 
Date: Wed Feb 02 2022 11:21:29 GMT-0600 (Central Standard Time) 

    Update version of default branch to 0.14.0-SNAPSHOT


commit 432b83e9 
Author: Alok Joshi <ajoshi19@slb.com> 
Date: Tue Feb 01 2022 15:24:10 GMT-0600 (Central Standard Time) 

    Merge branch 'json_smart_fix' into 'master'

Upgrade json-smart

See merge request !179

commit 528f4079 
Author: David Diederich <d.diederich@opengroup.org> 
Date: Fri Jan 28 2022 09:16:54 GMT-0600 (Central Standard Time) 

    Merge branch 'upgrade-log4j-2.17.1' into 'master'

Upgrade Log4J to 2.17.1

Closes #38

See merge request !174

commit d7d0491b 
Author: Alok Joshi <AJoshi19@slb.com> 
Date: Tue Feb 01 2022 14:17:02 GMT-0600 (Central Standard Time) 

    update NOTICE


commit 9574ec7e 
Author: Yunhua Koglin <kogliny@amazon.com> 
Date: Thu Jan 27 2022 15:15:27 GMT-0600 (Central Standard Time) 

    Merge branch 'aws-integration' into 'master'

Changes for m10

See merge request !176

commit 6e480f17 
Author: David Diederich <d.diederich@opengroup.org> 
Date: Fri Jan 28 2022 07:51:16 GMT-0600 (Central Standard Time) 

    Updating NOTICE


commit b9c04c85 
Author: Alok Joshi <AJoshi19@slb.com> 
Date: Tue Feb 01 2022 13:31:17 GMT-0600 (Central Standard Time) 

    upgrade json-smart


commit 7a05afe9 
Author: David Diederich <d.diederich@opengroup.org> 
Date: Fri Jan 28 2022 06:22:14 GMT-0600 (Central Standard Time) 

    Merge remote-tracking branch 'origin/master' into upgrade-log4j-2.17.1


commit d4ce607b 
Author: David Diederich <d.diederich@opengroup.org> 
Date: Wed Jan 26 2022 03:43:07 GMT-0600 (Central Standard Time) 

    Updating NOTICE


commit 9625c972 
Author: David Diederich <d.diederich@opengroup.org> 
Date: Tue Jan 25 2022 12:04:24 GMT-0600 (Central Standard Time) 

    Upgrading explicit Log4J version


commit 3432a41f 
Author: David Diederich <d.diederich@opengroup.org> 
Date: Tue Jan 25 2022 10:47:00 GMT-0600 (Central Standard Time) 

    Upgrade core library dependencies

This will pick up the latest log4j 2.17.1 change, addressing CVE-2021-44832
b77f4e57
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.