diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 99a07409053350c78c3decd1439ef018e9d927c8..9b1aaf80beee5dd7dc91817cf73e8a661f9d42f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ variables: OSDU_GCP_VENDOR: gcp OSDU_GCP_SERVICE: notification OSDU_GCP_REGISTER_BASE_URL: https://os-register-attcrcktoa-uc.a.run.app/api/register/v1 - OSDU_GCP_ENV_VARS: APP_PROJECT=$OSDU_GCP_PROJECT,APP_ENTITLEMENTS=$OSDU_GCP_ENTITLEMENTS_URL,APP_REGISTER=$OSDU_GCP_REGISTER_BASE_URL,APP_GOOGLEAUDIENCE=$GOOGLE_AUDIENCE,PARTITION_API=$OSDU_GCP_PARTITION_API,GOOGLE_AUDIENCES=$GOOGLE_AUDIENCE + OSDU_GCP_ENV_VARS: APP_PROJECT=$OSDU_GCP_PROJECT,APP_ENTITLEMENTS=$OSDU_GCP_ENTITLEMENTS_V2_URL,APP_REGISTER=$OSDU_GCP_REGISTER_BASE_URL,APP_GOOGLEAUDIENCE=$GOOGLE_AUDIENCE,PARTITION_API=$OSDU_GCP_PARTITION_API,GOOGLE_AUDIENCES=$GOOGLE_AUDIENCE OSDU_GCP_ENVIRONMENT: dev_gke OSDU_GCP_LOG_LEVEL: INFO diff --git a/NOTICE b/NOTICE index b7267574981b7754d88b264745e6859f35b88d56..540343197a8e5985bc2132ec3dd3b5b9baa249b6 100644 --- a/NOTICE +++ b/NOTICE @@ -3,18 +3,11 @@ Generated by fossa-cli (https://github.com/fossas/fossa-cli). This software includes the following software and licenses: ======================================================================== -Android-Sdk +AML ======================================================================== The following software have components provided under the terms of this license: -- Android SDK (from https://www.android.com/) - -======================================================================== -Apache-1.1 -======================================================================== -The following software have components provided under the terms of this license: - -- StAX (from http://stax.codehaus.org/) +- SnakeYAML (from http://www.snakeyaml.org) ======================================================================== Apache-2.0 @@ -61,8 +54,12 @@ The following software have components provided under the terms of this license: - Apache Geronimo JMS Spec 2.0 (from http://geronimo.apache.org/maven/${siteId}/${version}) - Apache HttpAsyncClient (from http://hc.apache.org/httpcomponents-asyncclient) - Apache HttpClient (from http://hc.apache.org/httpcomponents-client) +- Apache HttpClient (from http://hc.apache.org/httpcomponents-client) +- Apache HttpClient Cache (from http://hc.apache.org/httpcomponents-client) - Apache HttpClient Cache (from http://hc.apache.org/httpcomponents-client) - Apache HttpCore (from http://hc.apache.org/httpcomponents-core-ga) +- Apache HttpCore (from http://hc.apache.org/httpcomponents-core-ga) +- Apache HttpCore NIO (from http://hc.apache.org/httpcomponents-core-ga) - Apache HttpCore NIO (from http://hc.apache.org/httpcomponents-core-ga) - Apache Log4j API (from ) - Apache Log4j Core (from ) @@ -72,40 +69,30 @@ The following software have components provided under the terms of this license: - AssertJ fluent assertions (from ) - Asynchronous Http Client (from ) - Asynchronous Http Client Netty Utils (from ) -- Azure AD Spring Security Integration Spring Boot Starter (from https://github.com/Microsoft/azure-spring-boot) -- Azure Metrics Spring Boot Starter (from https://github.com/Microsoft/azure-spring-boot) +- Azure Spring Boot Starter for Azure AD Spring Security Integration (from https://github.com/Azure/azure-sdk-for-java) - Bean Validation API (from http://beanvalidation.org) +- Brave Instrumentation: Http Adapters (from ) +- Brave instrumentation for Reactor Netty HTTP (from https://github.com/reactor/reactor-netty) - Byte Buddy (without dependencies) (from ) - Byte Buddy Java agent (from ) - ClassMate (from http://github.com/cowtowncoder/java-classmate) -- Cloud Storage JSON API v1-rev58-1.21.0 (from ) - Commons IO (from http://commons.apache.org/io/) - Converter: Jackson (from ) +- Core functionality for the Reactor Netty library (from https://github.com/reactor/reactor-netty) - Elastic JNA Distribution (from https://github.com/java-native-access/jna) - Elasticsearch: 5.0.0-alpha5 (from https://github.com/elastic/elasticsearch) -- Expression Language 3.0 (from http://uel.java.net) - Expression Language 3.0 (from https://projects.eclipse.org/projects/ee4j.el) - FindBugs-jsr305 (from http://findbugs.sourceforge.net/) - Google APIs Client Library for Java (from ) -- Google App Engine extensions to the Google HTTP Client Library for Java. (from ) -- Google Cloud Core (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-core) -- Google Cloud Core HTTP (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-core-http) -- Google Cloud Core gRPC (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-core-grpc) -- Google Cloud Datastore (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-datastore) -- Google Cloud Key Management Service (KMS) API v1-rev22-1.23.0 (from ) -- Google Cloud Logging (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-logging) -- Google Cloud Pub/Sub (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub) -- Google Cloud Storage (from https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-storage) -- Google HTTP Client Library for Java (from https://github.com/google/google-http-java-client.git) - Google HTTP Client Library for Java (from https://github.com/google/google-http-java-client.git) - Google OAuth Client Library for Java (from ) - Gson (from https://github.com/google/gson) +- Gson (from https://github.com/google/gson) - Guava InternalFutureFailureAccess and InternalFutures (from ) -- Guava InternalFutureFailureAccess and InternalFutures (from ) -- Guava ListenableFuture only (from ) -- Guava: Google Core Libraries for Java (from https://github.com/google/guava.git) - Guava: Google Core Libraries for Java (from https://github.com/google/guava.git) - HPPC Collections (from http://labs.carrotsearch.com) +- HTTP functionality for the Reactor Netty library (from https://github.com/reactor/reactor-netty) +- Hibernate Validator Engine (from ) - Hibernate Validator Engine (from ) - Hibernate Validator Engine (from ) - IBM COS Java SDK for Amazon S3 (from https://github.com/ibm/ibm-cos-sdk-java) @@ -113,23 +100,21 @@ The following software have components provided under the terms of this license: - IBM COS SDK For Java (from https://github.com/ibm/ibm-cos-sdk-java) - IBM COS SDK for Java - Core (from https://github.com/ibm/ibm-cos-sdk-java) - Identity and Access Management (IAM) API v1-rev247-1.23.0 (from ) -- Identity and Access Management (IAM) API v1-rev247-1.23.0 (from ) - IntelliJ IDEA Annotations (from http://www.jetbrains.org) - J2ObjC Annotations (from https://github.com/google/j2objc/) - JBoss Logging 3 (from http://www.jboss.org) +- JBoss Logging 3 (from http://www.jboss.org) - JCIP Annotations under Apache License (from http://stephenc.github.com/jcip-annotations) - JMES Path Query library (from https://aws.amazon.com/sdkforjava) - JSON Small and Fast Parser (from http://www.minidev.net/) - JSON Web Token support for the JVM (from https://github.com/jwtk/jjwt.git) - JSON library from Android SDK (from http://developer.android.com/sdk) - JSONassert (from https://github.com/skyscreamer/JSONassert) -- Jackson (from http://jackson.codehaus.org) - Jackson 2 extensions to the Google HTTP Client Library for Java. (from https://github.com/google/google-http-java-client.git/google-http-client-jackson2) - Jackson dataformat: CBOR (from http://github.com/FasterXML/jackson-dataformats-binary) - Jackson dataformat: CBOR (from http://github.com/FasterXML/jackson-dataformats-binary) - Jackson datatype: JSR310 (from http://wiki.fasterxml.com/JacksonModuleJSR310) - Jackson datatype: JSR310 (from http://wiki.fasterxml.com/JacksonModuleJSR310) -- Jackson extensions to the Google HTTP Client Library for Java. (from ) - Jackson-annotations (from http://github.com/FasterXML/jackson) - Jackson-annotations (from http://github.com/FasterXML/jackson) - Jackson-core (from https://github.com/FasterXML/jackson-core) @@ -149,12 +134,13 @@ The following software have components provided under the terms of this license: - Jakarta Bean Validation API (from https://beanvalidation.org) - Java Native Access (from https://github.com/java-native-access/jna) - Java Native Access Platform (from https://github.com/java-native-access/jna) -- Java Servlet API (from https://projects.eclipse.org/projects/ee4j.servlet) - Java Servlet API (from http://servlet-spec.java.net) +- Java Servlet API (from https://projects.eclipse.org/projects/ee4j.servlet) - Java UUID Generator (from http://wiki.fasterxml.com/JugHome) - Javassist (from http://www.javassist.org/) - Javassist (from http://www.javassist.org/) - Joda-Time (from http://www.joda.org/joda-time/) +- Joda-Time (from http://www.joda.org/joda-time/) - Json Path (from https://github.com/jayway/JsonPath) - KeePassJava2 :: All (from https://repo1.maven.org/maven2/org/linguafranca/pwdb/KeePassJava2) - KeePassJava2 :: DOM (from https://repo1.maven.org/maven2/org/linguafranca/pwdb/KeePassJava2-dom) @@ -163,8 +149,6 @@ The following software have components provided under the terms of this license: - KeePassJava2 :: KDBX (from https://repo1.maven.org/maven2/org/linguafranca/pwdb/KeePassJava2-kdbx) - KeePassJava2 :: Simple (from https://repo1.maven.org/maven2/org/linguafranca/pwdb/KeePassJava2-simple) - Logback Contrib :: JSON :: Classic (from ) -- Logback Contrib :: JSON :: Core (from ) -- Logback Contrib :: Jackson (from ) - Lucene Common Analyzers (from ) - Lucene Core (from ) - Lucene Grouping (from ) @@ -182,21 +166,21 @@ The following software have components provided under the terms of this license: - Lucene Suggest (from ) - MapStruct Core (from ) - Metrics Core (from https://github.com/dropwizard/metrics) -- Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Spring Boot starter (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Web Module (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Log4j 2 Appender (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Azure Java Core Library (from https://github.com/Azure/azure-sdk-for-java) - Microsoft Azure Netty HTTP Client Library (from https://github.com/Azure/azure-sdk-for-java) - Microsoft Azure SDK for SQL API of Azure Cosmos DB Service (from https://github.com/Azure/azure-sdk-for-java) -- Mockito (from http://mockito.org) - Mockito (from http://www.mockito.org) +- Mockito (from http://mockito.org) - Netty Reactive Streams HTTP support (from ) - Netty Reactive Streams Implementation (from ) - Netty/Buffer (from http://netty.io/) - Netty/Buffer (from http://netty.io/) - Netty/Codec (from ) - Netty/Codec (from ) +- Netty/Codec/DNS (from ) - Netty/Codec/HTTP (from ) - Netty/Codec/HTTP (from ) - Netty/Codec/HTTP2 (from ) @@ -209,20 +193,17 @@ The following software have components provided under the terms of this license: - Netty/Handler/Proxy (from ) - Netty/Resolver (from ) - Netty/Resolver (from ) +- Netty/Resolver/DNS (from ) - Netty/TomcatNative [BoringSSL - Static] (from ) - Netty/Transport (from http://netty.io/) - Netty/Transport (from http://netty.io/) - Netty/Transport/Native/Unix/Common (from ) - Netty/Transport/Native/Unix/Common (from ) -- Nimbus Content Type (from https://bitbucket.org/connect2id/nimbus-content-type) -- Nimbus Content Type (from https://bitbucket.org/connect2id/nimbus-content-type) -- Nimbus JOSE+JWT (from https://bitbucket.org/connect2id/nimbus-jose-jwt) - Nimbus JOSE+JWT (from https://bitbucket.org/connect2id/nimbus-jose-jwt) - Nimbus JOSE+JWT (from https://bitbucket.org/connect2id/nimbus-jose-jwt) - Nimbus LangTag (from https://bitbucket.org/connect2id/nimbus-language-tags) - Non-Blocking Reactive Foundation for the JVM (from https://github.com/reactor/reactor) - OAuth 2.0 SDK with OpenID Connect extensions (from https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions) -- OAuth 2.0 SDK with OpenID Connect extensions (from https://bitbucket.org/connect2id/oauth-2.0-sdk-with-openid-connect-extensions) - Objenesis (from http://objenesis.org) - OkHttp (from ) - OkHttp (from ) @@ -230,82 +211,99 @@ The following software have components provided under the terms of this license: - OkHttp URLConnection (from ) - OkHttp URLConnection (from ) - Okio (from ) +- Okio (from ) - OpenCensus (from https://github.com/census-instrumentation/opencensus-java) - OpenCensus (from https://github.com/census-instrumentation/opencensus-java) - OpenCensus (from https://github.com/census-instrumentation/opencensus-java) - PWDB :: Database (from https://repo1.maven.org/maven2/org/linguafranca/pwdb/database) - PowerMock (from http://www.powermock.org) -- Protocol Buffer extensions to the Google HTTP Client Library for Java. (from ) - QpidJMS Client (from ) - Reactive Streams Netty driver (from https://github.com/reactor/reactor-netty) - Retrofit (from ) -- Simple XML (from http://simple.sourceforge.net) - SnakeYAML (from http://www.snakeyaml.org) - Spring AOP (from https://github.com/spring-projects/spring-framework) +- Spring AOP (from https://github.com/spring-projects/spring-framework) - Spring Beans (from https://github.com/spring-projects/spring-framework) +- Spring Beans (from https://github.com/spring-projects/spring-framework) +- Spring Boot (from http://projects.spring.io/spring-boot/) - Spring Boot (from http://projects.spring.io/spring-boot/) - Spring Boot Actuator (from http://projects.spring.io/spring-boot/) - Spring Boot Actuator AutoConfigure (from https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-actuator-autoconfigure) - Spring Boot Actuator Starter (from http://projects.spring.io/spring-boot/) - Spring Boot AutoConfigure (from http://projects.spring.io/spring-boot/) +- Spring Boot AutoConfigure (from http://projects.spring.io/spring-boot/) - Spring Boot Dependencies (from http://projects.spring.io/spring-boot/) - Spring Boot Json Starter (from https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-json) +- Spring Boot Json Starter (from https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-json) - Spring Boot Log4J2 Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Logging Starter (from http://projects.spring.io/spring-boot/) +- Spring Boot Logging Starter (from http://projects.spring.io/spring-boot/) +- Spring Boot Reactor Netty Starter (from https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-reactor-netty) - Spring Boot Security Starter (from http://projects.spring.io/spring-boot/) +- Spring Boot Security Starter (from http://projects.spring.io/spring-boot/) +- Spring Boot Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Test (from http://projects.spring.io/spring-boot/) - Spring Boot Test Auto-Configure (from http://projects.spring.io/spring-boot/) - Spring Boot Test Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Tomcat Starter (from http://projects.spring.io/spring-boot/) +- Spring Boot Tomcat Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Undertow Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Undertow Starter (from http://projects.spring.io/spring-boot/) +- Spring Boot Undertow Starter (from http://projects.spring.io/spring-boot/) +- Spring Boot Validation Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Validation Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Validation Starter (from http://projects.spring.io/spring-boot/) - Spring Boot Web Starter (from http://projects.spring.io/spring-boot/) +- Spring Boot Web Starter (from http://projects.spring.io/spring-boot/) +- Spring Boot WebFlux Starter (from https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-webflux) +- Spring Commons Logging Bridge (from https://github.com/spring-projects/spring-framework) - Spring Commons Logging Bridge (from https://github.com/spring-projects/spring-framework) - Spring Context (from https://github.com/spring-projects/spring-framework) +- Spring Context (from https://github.com/spring-projects/spring-framework) +- Spring Core (from https://github.com/spring-projects/spring-framework) - Spring Core (from https://github.com/spring-projects/spring-framework) - Spring Data Core (from ) - Spring Expression Language (SpEL) (from https://github.com/spring-projects/spring-framework) +- Spring Expression Language (SpEL) (from https://github.com/spring-projects/spring-framework) - Spring JMS (from https://github.com/spring-projects/spring-framework) - Spring Messaging (from https://github.com/spring-projects/spring-framework) - Spring Plugin - Core (from ) - Spring Plugin - Metadata Extension (from ) - Spring TestContext Framework (from https://github.com/spring-projects/spring-framework) +- Spring TestContext Framework (from https://github.com/spring-projects/spring-framework) +- Spring Transaction (from https://github.com/spring-projects/spring-framework) - Spring Transaction (from https://github.com/spring-projects/spring-framework) - Spring Web (from https://github.com/spring-projects/spring-framework) +- Spring Web (from https://github.com/spring-projects/spring-framework) - Spring Web MVC (from https://github.com/spring-projects/spring-framework) -- StAX (from http://stax.codehaus.org/) -- StAX API (from http://stax.codehaus.org/) +- Spring Web MVC (from https://github.com/spring-projects/spring-framework) +- Spring WebFlux (from https://github.com/spring-projects/spring-framework) - T-Digest (from https://github.com/tdunning/t-digest) - Undertow Core (from ) - Undertow Core (from ) +- Undertow Core (from ) +- Undertow Servlet (from ) - Undertow Servlet (from ) - Undertow WebSockets JSR356 implementations (from ) +- Undertow WebSockets JSR356 implementations (from ) - Woodstox (from https://github.com/FasterXML/woodstox) - XNIO API (from http://www.jboss.org/xnio) - XNIO NIO Implementation (from ) +- Zipkin Reporter Brave (from https://repo1.maven.org/maven2/io/zipkin/reporter2/zipkin-reporter-brave) +- Zipkin Reporter: Core (from ) +- Zipkin v2 (from ) - aalto-xml (from ) - aggs-matrix-stats (from https://github.com/elastic/elasticsearch) - aws-ssm-java-caching-client (from https://github.com/awslabs/aws-ssm-java-caching-client) +- brave (from ) - cli (from https://github.com/elastic/elasticsearch) -- com.google.api.grpc:grpc-google-cloud-pubsub-v1 (from https://github.com/googleapis/googleapis) -- com.google.api.grpc:proto-google-cloud-logging-v2 (from https://github.com/googleapis/googleapis) -- com.google.api.grpc:proto-google-cloud-pubsub-v1 (from https://github.com/googleapis/googleapis) - com.google.api.grpc:proto-google-common-protos (from https://github.com/googleapis/googleapis) -- com.google.api.grpc:proto-google-iam-v1 (from https://github.com/googleapis/googleapis) - compiler (from http://github.com/spullara/mustache.java) -- datastore-v1-proto-client (from ) - elasticsearch-core (from https://github.com/elastic/elasticsearch) - error-prone annotations (from ) -- error-prone annotations (from ) -- io.grpc:grpc-alts (from https://github.com/grpc/grpc-java) -- io.grpc:grpc-api (from https://github.com/grpc/grpc-java) -- io.grpc:grpc-auth (from https://github.com/grpc/grpc-java) - io.grpc:grpc-context (from https://github.com/grpc/grpc-java) - io.grpc:grpc-core (from https://github.com/grpc/grpc-java) -- io.grpc:grpc-grpclb (from https://github.com/grpc/grpc-java) - io.grpc:grpc-netty-shaded (from https://github.com/grpc/grpc-java) - io.grpc:grpc-protobuf (from https://github.com/grpc/grpc-java) - io.grpc:grpc-protobuf-lite (from https://github.com/grpc/grpc-java) @@ -322,7 +320,10 @@ The following software have components provided under the terms of this license: - lang-mustache (from https://github.com/elastic/elasticsearch) - lettuce (from http://github.com/mp911de/lettuce/wiki) - micrometer-core (from https://github.com/micrometer-metrics/micrometer) +- micrometer-core (from https://github.com/micrometer-metrics/micrometer) - micrometer-registry-azure-monitor (from https://github.com/micrometer-metrics/micrometer) +- nio-multipart-parser (from ) +- nio-stream-storage (from https://github.com/synchronoss/nio-stream-storage) - org.apiguardian:apiguardian-api (from https://github.com/apiguardian-team/apiguardian) - org.opentest4j:opentest4j (from https://github.com/ota4j-team/opentest4j) - org.xmlunit:xmlunit-core (from http://www.xmlunit.org/) @@ -332,7 +333,6 @@ The following software have components provided under the terms of this license: - powermock-module-junit4 (from http://www.powermock.org) - powermock-module-junit4-common (from ) - powermock-reflect (from ) -- proto-google-cloud-datastore-v1 (from https://github.com/googleapis/api-client-staging) - proton-j (from ) - rank-eval (from https://github.com/elastic/elasticsearch) - rest (from https://github.com/elastic/elasticsearch) @@ -340,11 +340,14 @@ The following software have components provided under the terms of this license: - rxjava (from https://github.com/ReactiveX/RxJava) - secure-sm (from https://github.com/elastic/elasticsearch) - spring-security-config (from http://spring.io/spring-security) +- spring-security-config (from http://spring.io/spring-security) +- spring-security-core (from http://spring.io/spring-security) - spring-security-core (from http://spring.io/spring-security) - spring-security-oauth2-core (from http://spring.io/spring-security) - spring-security-oauth2-jose (from http://spring.io/spring-security) - spring-security-oauth2-resource-server (from http://spring.io/spring-security) - spring-security-web (from http://spring.io/spring-security) +- spring-security-web (from http://spring.io/spring-security) - springfox-core (from https://github.com/springfox/springfox) - springfox-schema (from https://github.com/springfox/springfox) - springfox-spi (from https://github.com/springfox/springfox) @@ -355,9 +358,8 @@ The following software have components provided under the terms of this license: - swagger-annotations (from ) - swagger-jaxrs (from ) - swagger-models (from ) -- tomcat-embed-core (from http://tomcat.apache.org/) - tomcat-embed-el (from http://tomcat.apache.org/) -- tomcat-embed-websocket (from http://tomcat.apache.org/) +- tomcat-embed-el (from http://tomcat.apache.org/) - x-content (from https://github.com/elastic/elasticsearch) ======================================================================== @@ -365,13 +367,8 @@ BSD-2-Clause ======================================================================== The following software have components provided under the terms of this license: -- API Common (from https://github.com/googleapis) -- GAX (Google Api eXtensions) (from https://github.com/googleapis) -- GAX (Google Api eXtensions) (from https://github.com/googleapis) -- GAX (Google Api eXtensions) (from https://github.com/googleapis) -- Hamcrest Core (from http://hamcrest.org/) - Lucene Common Analyzers (from ) -- StAX (from http://stax.codehaus.org/) +- Reflections (from http://github.com/ronmamo/reflections) - Stax2 API (from http://github.com/FasterXML/stax2-api) ======================================================================== @@ -379,36 +376,21 @@ BSD-3-Clause ======================================================================== The following software have components provided under the terms of this license: -- API Common (from https://github.com/googleapis) - ASM Core (from ) -- Apache Commons Codec (from http://commons.apache.org/proper/commons-codec/) -- GAX (Google Api eXtensions) (from https://github.com/googleapis) -- GAX (Google Api eXtensions) (from https://github.com/googleapis) -- GAX (Google Api eXtensions) (from https://github.com/googleapis) +- Expression Language 3.0 (from https://projects.eclipse.org/projects/ee4j.el) - Google APIs Client Library for Java (from ) -- Google Auth Library for Java - Credentials (from ) -- Google Auth Library for Java - OAuth2 HTTP (from ) -- Hamcrest library (from ) -- JavaBeans Activation Framework API jar (from ) - Lucene Common Analyzers (from ) - Lucene Core (from ) - Lucene Suggest (from ) -- Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Spring Boot starter (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Web Module (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Log4j 2 Appender (from https://github.com/Microsoft/ApplicationInsights-Java) - Mockito (from http://www.mockito.org) -- NanoHttpd-Core (from ) - Netty/Codec/HTTP (from ) - Netty/Codec/HTTP (from ) - Protocol Buffer Java API (from https://developers.google.com/protocol-buffers/) -- Protocol Buffers [Util] (from ) -- Reflections (from http://github.com/ronmamo/reflections) -- SnakeYAML (from http://www.snakeyaml.org) - Spring Core (from https://github.com/spring-projects/spring-framework) -- Stax2 API (from http://github.com/FasterXML/stax2-api) -- ThreeTen backport (from https://www.threeten.org/threetenbp) -- jakarta.xml.bind-api (from ) +- Spring Core (from https://github.com/spring-projects/spring-framework) ======================================================================== CC-BY-2.5 @@ -423,7 +405,6 @@ CC-BY-4.0 ======================================================================== The following software have components provided under the terms of this license: -- Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Spring Boot starter (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Web Module (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Log4j 2 Appender (from https://github.com/Microsoft/ApplicationInsights-Java) @@ -433,8 +414,9 @@ CC0-1.0 ======================================================================== The following software have components provided under the terms of this license: -- XNIO API (from http://www.jboss.org/xnio) -- XNIO NIO Implementation (from ) +- HdrHistogram (from http://hdrhistogram.github.io/HdrHistogram/) +- LatencyUtils (from http://latencyutils.github.io/LatencyUtils/) +- Netty/Common (from ) - reactive-streams (from http://www.reactive-streams.org/) - reactive-streams (from http://www.reactive-streams.org/) @@ -443,26 +425,22 @@ CDDL-1.0 ======================================================================== The following software have components provided under the terms of this license: +- Apache Log4j Core (from ) - Common Annotations 1.2 API (from ) -- JavaBeans Activation Framework API jar (from ) +- JavaBeans(TM) Activation Framework (from http://java.sun.com/javase/technologies/desktop/javabeans/jaf/index.jsp) - Old JAXB Core (from ) - Old JAXB Runtime (from ) -- javax.annotation-api (from http://jcp.org/en/jsr/detail?id=250) ======================================================================== CDDL-1.1 ======================================================================== The following software have components provided under the terms of this license: -- Expression Language 3.0 (from http://uel.java.net) +- Common Annotations 1.2 API (from ) - Java Architecture For XML Binding (from ) - Java Architecture For XML Binding (from ) -- Java Servlet API (from http://servlet-spec.java.net) - Java(TM) API for WebSocket (from ) -- JavaBeans Activation Framework (from ) - JavaBeans(TM) Activation Framework (from http://java.sun.com/javase/technologies/desktop/javabeans/jaf/index.jsp) -- JavaMail API (from ) -- tomcat-embed-core (from http://tomcat.apache.org/) ======================================================================== CPL-1.0 @@ -471,6 +449,14 @@ The following software have components provided under the terms of this license: - JUnit (from http://junit.org) +======================================================================== +DOC +======================================================================== +The following software have components provided under the terms of this license: + +- Woodstox (from https://github.com/FasterXML/woodstox) +- aalto-xml (from ) + ======================================================================== EPL-1.0 ======================================================================== @@ -479,16 +465,10 @@ The following software have components provided under the terms of this license: - Expression Language 3.0 (from https://projects.eclipse.org/projects/ee4j.el) - JUnit Jupiter (Aggregator) (from https://junit.org/junit5/) - Java Servlet API (from https://projects.eclipse.org/projects/ee4j.servlet) -- Logback Classic Module (from ) - Logback Contrib :: JSON :: Classic (from ) -- Logback Contrib :: JSON :: Core (from ) -- Logback Contrib :: Jackson (from ) -- Logback Core Module (from ) -- Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Spring Boot starter (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Web Module (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Log4j 2 Appender (from https://github.com/Microsoft/ApplicationInsights-Java) -- SnakeYAML (from http://www.snakeyaml.org) - org.junit.jupiter:junit-jupiter-api (from http://junit.org/junit5/) - org.junit.jupiter:junit-jupiter-engine (from http://junit.org/junit5/) - org.junit.jupiter:junit-jupiter-params (from http://junit.org/junit5/) @@ -502,7 +482,6 @@ The following software have components provided under the terms of this license: - Expression Language 3.0 (from https://projects.eclipse.org/projects/ee4j.el) - JUnit Jupiter (Aggregator) (from https://junit.org/junit5/) -- Java Servlet API (from https://projects.eclipse.org/projects/ee4j.servlet) - org.junit.jupiter:junit-jupiter-api (from http://junit.org/junit5/) - org.junit.jupiter:junit-jupiter-engine (from http://junit.org/junit5/) - org.junit.jupiter:junit-jupiter-params (from http://junit.org/junit5/) @@ -515,46 +494,25 @@ GPL-2.0-only The following software have components provided under the terms of this license: - Common Annotations 1.2 API (from ) +- Expression Language 3.0 (from https://projects.eclipse.org/projects/ee4j.el) - Expression Language 3.0 (from http://uel.java.net) -- Java Architecture For XML Binding (from ) -- Java Architecture For XML Binding (from ) - Java Servlet API (from http://servlet-spec.java.net) - Java(TM) API for WebSocket (from ) -- JavaBeans Activation Framework (from ) -- JavaBeans Activation Framework API jar (from ) -- JavaMail API (from ) - Old JAXB Core (from ) - Old JAXB Runtime (from ) - javax.annotation-api (from http://jcp.org/en/jsr/detail?id=250) -- tomcat-embed-core (from http://tomcat.apache.org/) - -======================================================================== -GPL-2.0-or-later -======================================================================== -The following software have components provided under the terms of this license: - -- SnakeYAML (from http://www.snakeyaml.org) ======================================================================== GPL-2.0-with-classpath-exception ======================================================================== The following software have components provided under the terms of this license: -- Checker Qual (from https://checkerframework.org) -- Expression Language 3.0 (from http://uel.java.net) - Expression Language 3.0 (from https://projects.eclipse.org/projects/ee4j.el) - Java Architecture For XML Binding (from ) - Java Architecture For XML Binding (from ) -- Java Servlet API (from https://projects.eclipse.org/projects/ee4j.servlet) -- Java Servlet API (from http://servlet-spec.java.net) - Java(TM) API for WebSocket (from ) -- JavaBeans Activation Framework (from ) -- JavaBeans Activation Framework API jar (from ) -- JavaMail API (from ) - Old JAXB Core (from ) - Old JAXB Runtime (from ) -- javax.annotation-api (from http://jcp.org/en/jsr/detail?id=250) -- tomcat-embed-core (from http://tomcat.apache.org/) ======================================================================== GPL-3.0-only @@ -567,7 +525,22 @@ The following software have components provided under the terms of this license: - Old JAXB Core (from ) - Old JAXB Runtime (from ) - Project Lombok (from https://projectlombok.org) -- SnakeYAML (from http://www.snakeyaml.org) + +======================================================================== +ISC +======================================================================== +The following software have components provided under the terms of this license: + +- Java Native Access Platform (from https://github.com/java-native-access/jna) + +======================================================================== +ImageMagick +======================================================================== +The following software have components provided under the terms of this license: + +- Stax2 API (from http://github.com/FasterXML/stax2-api) +- Woodstox (from https://github.com/FasterXML/woodstox) +- aalto-xml (from ) ======================================================================== JSON @@ -586,33 +559,10 @@ The following software have components provided under the terms of this license: - Java Native Access Platform (from https://github.com/java-native-access/jna) - Javassist (from http://www.javassist.org/) - Javassist (from http://www.javassist.org/) -- Logback Classic Module (from ) - Logback Contrib :: JSON :: Classic (from ) -- Logback Contrib :: JSON :: Core (from ) -- Logback Contrib :: Jackson (from ) -- Logback Core Module (from ) -- Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Spring Boot starter (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Web Module (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Log4j 2 Appender (from https://github.com/Microsoft/ApplicationInsights-Java) -- XNIO API (from http://www.jboss.org/xnio) - -======================================================================== -LGPL-2.1-or-later -======================================================================== -The following software have components provided under the terms of this license: - -- Java Native Access Platform (from https://github.com/java-native-access/jna) -- Javassist (from http://www.javassist.org/) -- SnakeYAML (from http://www.snakeyaml.org) - -======================================================================== -LGPL-3.0-only -======================================================================== -The following software have components provided under the terms of this license: - -- Apache Log4j API (from ) -- Apache Log4j Core (from ) ======================================================================== MIT @@ -621,20 +571,18 @@ The following software have components provided under the terms of this license: - AWS Java SDK for AWS Lambda (from https://aws.amazon.com/sdkforjava) - Animal Sniffer Annotations (from ) -- Azure AD Spring Security Integration Spring Boot Starter (from https://github.com/Microsoft/azure-spring-boot) +- Apache Log4j SLF4J Binding (from ) - Azure Java Client Authentication Library for AutoRest (from https://github.com/Azure/autorest-clientruntime-for-java) - Azure Java Client Runtime for ARM (from https://github.com/Azure/autorest-clientruntime-for-java) - Azure Java Client Runtime for AutoRest (from https://github.com/Azure/autorest-clientruntime-for-java) -- Azure Metrics Spring Boot Starter (from https://github.com/Microsoft/azure-spring-boot) -- Azure Spring Boot AutoConfigure (from https://github.com/Microsoft/azure-spring-boot) -- Checker Qual (from https://checkerframework.org) +- Azure Spring Boot AutoConfigure (from https://github.com/Azure/azure-sdk-for-java) - Checker Qual (from https://checkerframework.org) - Extensions on Apache Proton-J library (from https://github.com/Azure/qpid-proton-j-extensions) - JOpt Simple (from http://pholser.github.io/jopt-simple) - JUL to SLF4J bridge (from http://www.slf4j.org) +- JUL to SLF4J bridge (from http://www.slf4j.org) - Java Client Runtime for AutoRest (from https://github.com/Azure/autorest-clientruntime-for-java) - Java JWT (from http://www.jwt.io) -- Java JWT (from http://www.jwt.io) - Lucene Core (from ) - Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Application Insights Java SDK Spring Boot starter (from https://github.com/Microsoft/ApplicationInsights-Java) @@ -661,23 +609,18 @@ The following software have components provided under the terms of this license: - Netty/Common (from ) - Project Lombok (from https://projectlombok.org) - SLF4J API Module (from http://www.slf4j.org) +- SLF4J API Module (from http://www.slf4j.org) - Spongy Castle (from http://rtyley.github.io/spongycastle/) - Spring Data for Azure Cosmos DB SQL API (from https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/cosmos/azure-spring-data-cosmos) - adal4j (from https://github.com/AzureAD/azure-activedirectory-library-for-java) - azure-documentdb (from https://azure.microsoft.com/en-us/services/cosmos-db/) - documentdb-bulkexecutor (from http://azure.microsoft.com/en-us/services/documentdb/) +- micrometer-core (from https://github.com/micrometer-metrics/micrometer) - mockito-junit-jupiter (from https://github.com/mockito/mockito) - msal4j (from https://github.com/AzureAD/microsoft-authentication-library-for-java) - msal4j-persistence-extension (from https://github.com/AzureAD/microsoft-authentication-extensions-for-java) - spring-security-core (from http://spring.io/spring-security) - -======================================================================== -MPL-1.1 -======================================================================== -The following software have components provided under the terms of this license: - -- Javassist (from http://www.javassist.org/) -- Javassist (from http://www.javassist.org/) +- spring-security-core (from http://spring.io/spring-security) ======================================================================== MPL-2.0 @@ -688,34 +631,20 @@ The following software have components provided under the terms of this license: - Javassist (from http://www.javassist.org/) ======================================================================== -PHP-3.01 +MS-RL ======================================================================== The following software have components provided under the terms of this license: -- JavaBeans Activation Framework API jar (from ) -- jakarta.xml.bind-api (from ) +- Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java) ======================================================================== Public-Domain ======================================================================== The following software have components provided under the terms of this license: -- HdrHistogram (from http://hdrhistogram.github.io/HdrHistogram/) -- LatencyUtils (from http://latencyutils.github.io/LatencyUtils/) - Old JAXB Core (from ) - Old JAXB Runtime (from ) - Spongy Castle (from http://rtyley.github.io/spongycastle/) -- XNIO API (from http://www.jboss.org/xnio) -- XNIO NIO Implementation (from ) -- reactive-streams (from http://www.reactive-streams.org/) - -======================================================================== -SPL-1.0 -======================================================================== -The following software have components provided under the terms of this license: - -- Checker Qual (from https://checkerframework.org) -- Checker Qual (from https://checkerframework.org) ======================================================================== WTFPL @@ -732,9 +661,9 @@ The following software have components provided under the terms of this license: - AWS Java SDK :: SDK Core (from https://aws.amazon.com/sdkforjava) - Asynchronous Http Client (from ) - Guava: Google Core Libraries for Java (from https://github.com/google/guava.git) -- Guava: Google Core Libraries for Java (from https://github.com/google/guava.git) - HdrHistogram (from http://hdrhistogram.github.io/HdrHistogram/) - Joda-Time (from http://www.joda.org/joda-time/) +- Joda-Time (from http://www.joda.org/joda-time/) - LatencyUtils (from http://latencyutils.github.io/LatencyUtils/) - Microsoft Application Insights Java SDK Core (from https://github.com/Microsoft/ApplicationInsights-Java) - Microsoft Azure SDK for EventGrid Management (from https://github.com/Azure/azure-sdk-for-java) @@ -742,10 +671,9 @@ The following software have components provided under the terms of this license: - Microsoft Azure client library for Blob Storage (from https://github.com/Azure/azure-sdk-for-java) - Project Lombok (from https://projectlombok.org) - Spring Web (from https://github.com/spring-projects/spring-framework) -- StAX API (from http://stax.codehaus.org/) +- Spring Web (from https://github.com/spring-projects/spring-framework) - azure-documentdb (from https://azure.microsoft.com/en-us/services/cosmos-db/) - msal4j (from https://github.com/AzureAD/microsoft-authentication-library-for-java) -- reactive-streams (from http://www.reactive-streams.org/) ======================================================================== unknown @@ -753,16 +681,8 @@ unknown The following software have components provided under the terms of this license: - Byte Buddy (without dependencies) (from ) -- Common Annotations 1.2 API (from ) +- JSON in Java (from https://github.com/douglascrockford/JSON-java) - JUnit (from http://junit.org) -- JUnit Jupiter (Aggregator) (from https://junit.org/junit5/) -- JavaBeans Activation Framework API jar (from ) - Spongy Castle (from http://rtyley.github.io/spongycastle/) -- jakarta.xml.bind-api (from ) -- org.junit.jupiter:junit-jupiter-api (from http://junit.org/junit5/) -- org.junit.jupiter:junit-jupiter-engine (from http://junit.org/junit5/) -- org.junit.jupiter:junit-jupiter-params (from http://junit.org/junit5/) -- org.junit.platform:junit-platform-commons (from http://junit.org/junit5/) -- org.junit.platform:junit-platform-engine (from http://junit.org/junit5/) diff --git a/devops/azure/chart/templates/deployment.yaml b/devops/azure/chart/templates/deployment.yaml index db62503cb4bccd653de9f3302b5d4ca676aeebff..15743798b4124847d52737f40c9e89b9fac23e8d 100644 --- a/devops/azure/chart/templates/deployment.yaml +++ b/devops/azure/chart/templates/deployment.yaml @@ -79,6 +79,8 @@ spec: value: osdu-db - name: entitlements_service_endpoint value: http://entitlements/api/entitlements/v2 + - name: entitlements_service_api_key + value: "OBSOLETE" - name: registeration_service_endpoint value: http://register/api/register/v1 - name: partition_service_endpoint diff --git a/notification-core/pom.xml b/notification-core/pom.xml index 8ddbd8de557b76bf687e7f0d7dfe4bf67d779d83..4fadc3d8619a364904fc97fca963b1972f4dd284 100644 --- a/notification-core/pom.xml +++ b/notification-core/pom.xml @@ -19,7 +19,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-core</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-core</name> <description>Core module for the notification service</description> <packaging>jar</packaging> @@ -27,7 +27,7 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> diff --git a/notification-core/src/main/java/org/opengroup/osdu/notification/api/PubsubEndpoint.java b/notification-core/src/main/java/org/opengroup/osdu/notification/api/PubsubEndpoint.java index 558bc04803803178ebd15cd7afa30334c3f62c1d..22b02bef1581f4d9242b05e988b0a5f75fa0303e 100644 --- a/notification-core/src/main/java/org/opengroup/osdu/notification/api/PubsubEndpoint.java +++ b/notification-core/src/main/java/org/opengroup/osdu/notification/api/PubsubEndpoint.java @@ -57,7 +57,7 @@ public class PubsubEndpoint { this.log.error(NOT_ACKNOWLEDGE); return new ResponseEntity<String>(NOT_ACKNOWLEDGE, HttpStatus.valueOf(response.getResponseCode())); } - this.log.info(ACKNOWLEDGE); + this.log.debug(ACKNOWLEDGE); return new ResponseEntity<String>(ACKNOWLEDGE, HttpStatus.OK); } } diff --git a/pom.xml b/pom.xml index 4bd703019b2e183525b7a103262be38a46fa796a..66dac6053767ca9c32d9b671520c8289db2ca89e 100644 --- a/pom.xml +++ b/pom.xml @@ -18,14 +18,14 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <description>Root Notification Service project</description> <properties> <java.version>8</java.version> <maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.source>${java.version}</maven.compiler.source> - <os-core-common.version>0.6.9</os-core-common.version> + <os-core-common.version>0.9.0</os-core-common.version> </properties> <licenses> diff --git a/provider/notification-aws/pom.xml b/provider/notification-aws/pom.xml index c8da23c93d56c9efde099aa2f8cca3565c40d39d..677d2b4c46862ce406706553a27b0d2a0330912a 100644 --- a/provider/notification-aws/pom.xml +++ b/provider/notification-aws/pom.xml @@ -19,7 +19,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-aws</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-aws</name> <description>AWS implementation for Notification service</description> <packaging>jar</packaging> @@ -27,7 +27,7 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> @@ -48,7 +48,7 @@ <dependency> <groupId>org.opengroup.osdu.core.aws</groupId> <artifactId>os-core-lib-aws</artifactId> - <version>0.9.1-SNAPSHOT</version> + <version>0.9.0</version> </dependency> <!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-secretsmanager --> @@ -61,7 +61,7 @@ <dependency> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-core</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> </dependency> <dependency> diff --git a/provider/notification-azure/pom.xml b/provider/notification-azure/pom.xml index 40f6b48feed203ace47de72652ace01ad81f12a0..d7fdc248474b6586287104bb17975e039b2bab3b 100644 --- a/provider/notification-azure/pom.xml +++ b/provider/notification-azure/pom.xml @@ -18,7 +18,7 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <artifactId>notification-azure</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-azure</name> <description>Azure implementation for Notification service</description> <packaging>jar</packaging> @@ -26,7 +26,7 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> @@ -35,18 +35,30 @@ <maven.compiler.target>${java.version}</maven.compiler.target> <maven.compiler.source>${java.version}</maven.compiler.source> <jacoco-maven-plugin.version>0.8.2</jacoco-maven-plugin.version> - <osdu.notification-core.version>0.9.0-SNAPSHOT</osdu.notification-core.version> + <osdu.notification-core.version>0.10.0-SNAPSHOT</osdu.notification-core.version> <springframework.version>4.3.0.RELEASE</springframework.version> <reactor.netty.version>0.9.0.RELEASE</reactor.netty.version> <reactor.core.version>3.3.0.RELEASE</reactor.core.version> - <osdu.corelibazure.version>0.0.66</osdu.corelibazure.version> + <osdu.corelibazure.version>0.10.0-rc8</osdu.corelibazure.version> <junit.version>5.6.0</junit.version> <jjwt.version>3.8.1</jjwt.version> <mockito.version>2.23.0</mockito.version> + <spring-boot.version>2.1.18.RELEASE</spring-boot.version> + <jackson.version>2.11.4</jackson.version> + <reactor-core.version>3.4.6</reactor-core.version> + <reactor-netty.version>1.0.7</reactor-netty.version> + <oauth2-oidc-sdk.version>6.0</oauth2-oidc-sdk.version> </properties> <dependencyManagement> <dependencies> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-dependencies</artifactId> + <version>${spring-boot.version}</version> + <type>pom</type> + <scope>import</scope> + </dependency> <!-- Inherit managed dependencies from core-lib-azure --> <dependency> <groupId>org.opengroup.osdu</groupId> @@ -91,11 +103,45 @@ </exclusions> </dependency> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-core</artifactId> + <version>${jackson.version}</version> + </dependency> + + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-databind</artifactId> + <version>${jackson.version}</version> + </dependency> + + <dependency> + <groupId>com.fasterxml.jackson.dataformat</groupId> + <artifactId>jackson-dataformat-xml</artifactId> + <version>${jackson.version}</version> + </dependency> + + <dependency> + <groupId>io.projectreactor.netty</groupId> + <artifactId>reactor-netty</artifactId> + <version>${reactor-netty.version}</version> + </dependency> + <dependency> + <groupId>io.projectreactor</groupId> + <artifactId>reactor-core</artifactId> + <version>${reactor-core.version}</version> + </dependency> + <dependency> + <groupId>com.nimbusds</groupId> + <artifactId>oauth2-oidc-sdk</artifactId> + <version>${oauth2-oidc-sdk.version}</version> + </dependency> + <!-- Azure Dependencies --> <dependency> - <groupId>com.microsoft.azure</groupId> - <artifactId>azure-active-directory-spring-boot-starter</artifactId> + <groupId>com.azure.spring</groupId> + <artifactId>azure-spring-boot-starter-active-directory</artifactId> </dependency> <!-- Test Dependencies --> @@ -116,6 +162,11 @@ <version>${junit.version}</version> <scope>test</scope> </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>test</scope> + </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-junit-jupiter</artifactId> diff --git a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/util/AzureServiceAccountValidatorImpl.java b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/util/AzureServiceAccountValidatorImpl.java index 7aaccda189813531f38703cca25ee74252cc3570..7fd42f301fd5022a2c058a068b3cf5dee73fceb6 100644 --- a/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/util/AzureServiceAccountValidatorImpl.java +++ b/provider/notification-azure/src/main/java/org/opengroup/osdu/notification/provider/azure/util/AzureServiceAccountValidatorImpl.java @@ -44,7 +44,7 @@ public class AzureServiceAccountValidatorImpl implements IServiceAccountValidato String appIdClaim = jwt.getClaim(APP_ID_CLAIM).asString(); if(appIdClaim!= null && appIdClaim.equals(userIdentity)) { - logger.info("PubSub authorized"); + logger.debug("PubSub authorized"); return true; } return false; diff --git a/provider/notification-azure/src/main/resources/application.properties b/provider/notification-azure/src/main/resources/application.properties index e1166e645b50fed52f20146a8c02e9f660b06a9a..a5e8bdbbddf801f90fbfef055acc712a647ae505 100644 --- a/provider/notification-azure/src/main/resources/application.properties +++ b/provider/notification-azure/src/main/resources/application.properties @@ -24,6 +24,11 @@ logging.level.org.springframework.web=${notification_spring_logging_level:INFO} logging.transaction.enabled=true logging.slf4jlogger.enabled=true logging.mdccontext.enabled=false +logging.ignore.servlet.paths=/swagger-ui.html + +# Need below two properties for Entitlements config bean initialization due to a primary bean added in core-lib-azure which takes precedence over EntitlementsClientFactory class in notification service +AUTHORIZE_API=${entitlements_service_endpoint} +AUTHORIZE_API_KEY=${entitlements_service_api_key} # Service settings PARTITION_API=${partition_service_endpoint} diff --git a/provider/notification-gcp/README.md b/provider/notification-gcp/README.md index 28510ea1aa16804a313b26f988a32a49caa897b8..fa8c00970b91e0f2771c7431766d1ffccdbb4d89 100644 --- a/provider/notification-gcp/README.md +++ b/provider/notification-gcp/README.md @@ -31,6 +31,7 @@ In order to run the service locally or remotely, you will need to have the follo | `APP_REGISTER` | ex `https://register.com/api/register/v1` | Storage API endpoint | no | output of infrastructure deployment | | `APP_PROJECT` | ex `opendes` | Google Cloud Project Id | no | output of infrastructure deployment | | `APP_AUDIENCES` | ex `*****.apps.googleusercontent.com` | Client ID for getting access to cloud resources | yes | https://console.cloud.google.com/apis/credentials | +| `PARTITION_API` | ex `http://localhost:8081/api/partition/v1` | Partition service endpoint | no | - | **System Environment required to run service** diff --git a/provider/notification-gcp/pom.xml b/provider/notification-gcp/pom.xml index 399ab228ac2a2b3acaf702cb8b2316d6ce7db9da..02ef95b6d78987d86c2872679c8584b5867a1feb 100644 --- a/provider/notification-gcp/pom.xml +++ b/provider/notification-gcp/pom.xml @@ -18,7 +18,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-gcp</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-gcp</name> <description>GCP implementation for Notification service</description> <packaging>jar</packaging> @@ -26,7 +26,7 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> @@ -40,17 +40,18 @@ <dependency> <groupId>org.opengroup.osdu</groupId> <artifactId>os-core-common</artifactId> + <version>0.9.0-rc17</version> </dependency> <dependency> <groupId>org.opengroup.osdu</groupId> <artifactId>core-lib-gcp</artifactId> - <version>0.7.0</version> + <version>0.9.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-core</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> </dependency> <dependency> diff --git a/provider/notification-gcp/src/main/java/org/opengroup/osdu/notification/provider/gcp/di/ServiceAccountJwtClientFactory.java b/provider/notification-gcp/src/main/java/org/opengroup/osdu/notification/provider/gcp/di/ServiceAccountJwtClientFactory.java index 403523702216a70169fdc77a96fef3d4490e3580..ad4a541f081362e8a46fdb84e5af5dcb6a13e381 100644 --- a/provider/notification-gcp/src/main/java/org/opengroup/osdu/notification/provider/gcp/di/ServiceAccountJwtClientFactory.java +++ b/provider/notification-gcp/src/main/java/org/opengroup/osdu/notification/provider/gcp/di/ServiceAccountJwtClientFactory.java @@ -20,9 +20,11 @@ import org.opengroup.osdu.notification.provider.gcp.util.AppProperties; import org.opengroup.osdu.notification.provider.gcp.util.ServiceAccountJwtGcpClientImpl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.config.AbstractFactoryBean; +import org.springframework.context.annotation.Primary; import org.springframework.stereotype.Component; @Component +@Primary public class ServiceAccountJwtClientFactory extends AbstractFactoryBean<IServiceAccountJwtClient> { @Autowired diff --git a/provider/notification-gcp/src/main/resources/application.properties b/provider/notification-gcp/src/main/resources/application.properties index fa6abe7faedd3e9971e6f725712c99e80a1788c8..d0b075ff8b42da1bfc4f25b2de3206abe1935f11 100644 --- a/provider/notification-gcp/src/main/resources/application.properties +++ b/provider/notification-gcp/src/main/resources/application.properties @@ -19,4 +19,7 @@ logging.level.org.springframework.web=${LOG_LEVEL:DEBUG} server.servlet.contextPath=/ app.expireTime=300 app.maxCacheSize=10 -server.error.whitelabel.enabled=false \ No newline at end of file +server.error.whitelabel.enabled=false + +google.audiences=${APP_AUDIENCES} +partition.api=http://localhost:8081/api/partition/v1 \ No newline at end of file diff --git a/provider/notification-ibm/pom.xml b/provider/notification-ibm/pom.xml index ceb68a4d42a4752eade4204f1e41f856f514557e..5d97c46433036bc6ca84f168b4834b4dfdcb826b 100644 --- a/provider/notification-ibm/pom.xml +++ b/provider/notification-ibm/pom.xml @@ -16,7 +16,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-ibm</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-ibm</name> <description>IBM implementation for Notification service</description> <packaging>jar</packaging> @@ -24,7 +24,7 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> @@ -50,7 +50,7 @@ <dependency> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-core</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> </dependency> <!-- unit test dependencies --> diff --git a/testing/notification-test-aws/pom.xml b/testing/notification-test-aws/pom.xml index c508099548475c07c59c0623051d8ae9fe44246e..00822c0f45c5f4473597844b293a9b2a6afdd44c 100644 --- a/testing/notification-test-aws/pom.xml +++ b/testing/notification-test-aws/pom.xml @@ -21,13 +21,13 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification-testing</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-test-aws</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-test-aws</name> <description>AWS Integration tests for Notification Service</description> <packaging>jar</packaging> @@ -52,7 +52,7 @@ <dependency> <groupId>org.opengroup.osdu.notification</groupId> <artifactId>notification-test-core</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.opengroup.osdu</groupId> diff --git a/testing/notification-test-azure/pom.xml b/testing/notification-test-azure/pom.xml index 28532c66c3047b77f5cc8dd7d2b63a63df830f6c..7444278ce50a5f58769565c22072fef6b48ba4a3 100644 --- a/testing/notification-test-azure/pom.xml +++ b/testing/notification-test-azure/pom.xml @@ -21,13 +21,13 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification-testing</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-test-azure</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-test-azure</name> <description>Integration tests Azure for notification</description> <packaging>jar</packaging> @@ -42,7 +42,7 @@ <dependency> <groupId>org.opengroup.osdu.notification</groupId> <artifactId>notification-test-core</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> </dependency> <dependency> diff --git a/testing/notification-test-azure/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java b/testing/notification-test-azure/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java index 3f429752e1bbd58ecb5b69bfb2c6e6fbab9bc9cf..501e113e44f7d097dd9661f4e5a7f01ba4641603 100644 --- a/testing/notification-test-azure/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java +++ b/testing/notification-test-azure/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java @@ -98,7 +98,7 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { ClientResponse response = descriptor.run(this.getArg(), this.testUtils.getOpsToken()); Assert.assertEquals(this.error(response.getStatus() == 204 ? "" : (String)response.getEntity(String.class)), (long)this.expectedOkResponseCode(), (long)response.getStatus()); Assert.assertEquals("GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH", response.getHeaders().getFirst("Access-Control-Allow-Methods")); - Assert.assertEquals("origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey", response.getHeaders().getFirst("Access-Control-Allow-Headers")); + Assert.assertEquals("access-control-allow-origin, origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey", response.getHeaders().getFirst("Access-Control-Allow-Headers")); Assert.assertEquals("*", response.getHeaders().getFirst("Access-Control-Allow-Origin")); Assert.assertEquals("true", response.getHeaders().getFirst("Access-Control-Allow-Credentials")); Assert.assertEquals("DENY", response.getHeaders().getFirst("X-Frame-Options")); diff --git a/testing/notification-test-core/pom.xml b/testing/notification-test-core/pom.xml index 9a12fe414bdacee481914f218b8a6cc5f821f682..1b91dd43d8fdc609888a96beadc249f41f050163 100644 --- a/testing/notification-test-core/pom.xml +++ b/testing/notification-test-core/pom.xml @@ -21,13 +21,13 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification-testing</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.opengroup.osdu.notification</groupId> <artifactId>notification-test-core</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-test-core</name> <description>Integration tests core for notification</description> <packaging>jar</packaging> diff --git a/testing/notification-test-core/src/main/java/org/opengroup/osdu/notification/util/BaseTestTemplate.java b/testing/notification-test-core/src/main/java/org/opengroup/osdu/notification/util/BaseTestTemplate.java index 8792991c580a08210a61326e527cbfca5c61459a..01a0be5de9ef90263eb40f6efd729e3919b72ddb 100644 --- a/testing/notification-test-core/src/main/java/org/opengroup/osdu/notification/util/BaseTestTemplate.java +++ b/testing/notification-test-core/src/main/java/org/opengroup/osdu/notification/util/BaseTestTemplate.java @@ -89,7 +89,7 @@ public abstract class BaseTestTemplate extends TestBase { assertEquals(error(response.getStatus() == 204 ? "" : response.getEntity(String.class)), expectedOkResponseCode(), response.getStatus()); assertEquals("GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH", response.getHeaders().getFirst("Access-Control-Allow-Methods")); - assertEquals("origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey", response.getHeaders().getFirst("Access-Control-Allow-Headers")); + assertEquals("access-control-allow-origin, origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey", response.getHeaders().getFirst("Access-Control-Allow-Headers")); assertEquals("*", response.getHeaders().getFirst("Access-Control-Allow-Origin")); assertEquals("true", response.getHeaders().getFirst("Access-Control-Allow-Credentials")); assertEquals("DENY", response.getHeaders().getFirst("X-Frame-Options")); diff --git a/testing/notification-test-gcp/pom.xml b/testing/notification-test-gcp/pom.xml index 9ae43b5892daff41afe2f7b3e42809f2945e78ac..466935d330cec4e446270287c20dd6337c89cfc5 100644 --- a/testing/notification-test-gcp/pom.xml +++ b/testing/notification-test-gcp/pom.xml @@ -21,12 +21,12 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification-testing</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>notification-test-gcp</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-test-gcp</name> <description>Integration tests GCP for notification</description> <packaging>jar</packaging> @@ -41,7 +41,7 @@ <dependency> <groupId>org.opengroup.osdu.notification</groupId> <artifactId>notification-test-core</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.opengroup.osdu</groupId> diff --git a/testing/notification-test-gcp/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointGSA.java b/testing/notification-test-gcp/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointGSA.java index 0aa5c1c3cfa70e87ecc0ea8d0bf4d306192b673e..a743915e56c34ee0919d4213dbf74727a9b5b0b1 100644 --- a/testing/notification-test-gcp/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointGSA.java +++ b/testing/notification-test-gcp/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointGSA.java @@ -1,36 +1,72 @@ package org.opengroup.osdu.notification.api; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +import com.sun.jersey.api.client.ClientResponse; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; -import org.opengroup.osdu.notification.util.Config; +import org.junit.Test; import org.opengroup.osdu.notification.util.GCPTestUtils; -import org.opengroup.osdu.notification.util.RestDescriptor; public class TestPubsubEndpointGSA extends PubsubEndpointGSATests { - private static final GCPTestUtils gcpTestUtils = new GCPTestUtils(); + private static final GCPTestUtils gcpTestUtils = new GCPTestUtils(); - @BeforeClass - public static void classSetup() throws Exception { - PubsubEndpointGSATests.classSetup(gcpTestUtils.getOpsToken()); - } + @BeforeClass + public static void classSetup() throws Exception { + PubsubEndpointGSATests.classSetup(gcpTestUtils.getOpsToken()); + } - @AfterClass - public static void classTearDown() throws Exception { - } + @AfterClass + public static void classTearDown() throws Exception { + } - @Before - @Override - public void setup() throws Exception { - this.testUtils = new GCPTestUtils(); - } + @Before + @Override + public void setup() throws Exception { + this.testUtils = new GCPTestUtils(); + } + + @After + @Override + public void tearDown() throws Exception { + this.testUtils = null; + } + + @Override + @Test + public void should_return20X_when_usingCredentialsWithOpsPermission() throws Exception { + createResource(); + + try { + ClientResponse response = descriptor.run(getArg(), testUtils.getOpsToken()); - @After - @Override - public void tearDown() throws Exception { - this.testUtils = null; + assertEquals(error(response.getStatus() == 204 ? "" : response.getEntity(String.class)), + expectedOkResponseCode(), response.getStatus()); + assertEquals("GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH", + response.getHeaders().getFirst("Access-Control-Allow-Methods")); + assertEquals( + "access-control-allow-origin, origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey", + response.getHeaders().getFirst("Access-Control-Allow-Headers")); + assertEquals("*", response.getHeaders().getFirst("Access-Control-Allow-Origin")); + assertEquals("true", response.getHeaders().getFirst("Access-Control-Allow-Credentials")); + assertEquals("DENY", response.getHeaders().getFirst("X-Frame-Options")); + assertEquals("1; mode=block", response.getHeaders().getFirst("X-XSS-Protection")); + assertEquals("nosniff", response.getHeaders().getFirst("X-Content-Type-Options")); + assertEquals("no-cache, no-store, must-revalidate", + response.getHeaders().getFirst("Cache-Control")); + assertEquals("default-src 'self'", response.getHeaders().getFirst("Content-Security-Policy")); + assertTrue(response.getHeaders().get("Strict-Transport-Security").get(0) + .contains("max-age=31536000")); + assertTrue(response.getHeaders().get("Strict-Transport-Security").get(0) + .contains("includeSubDomains")); + assertEquals("0", response.getHeaders().getFirst("Expires")); + } finally { + deleteResource(); } + } } \ No newline at end of file diff --git a/testing/notification-test-gcp/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java b/testing/notification-test-gcp/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java index af7b1fba71692e4e40bb78ba9ef5679eaea2af6e..5ba744d1eb3c15eebab7d0c71bdcb0a1a02d0b00 100644 --- a/testing/notification-test-gcp/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java +++ b/testing/notification-test-gcp/src/test/java/org/opengroup/osdu/notification/api/TestPubsubEndpointHMAC.java @@ -1,34 +1,69 @@ package org.opengroup.osdu.notification.api; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +import com.sun.jersey.api.client.ClientResponse; import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; -import org.opengroup.osdu.notification.util.Config; +import org.junit.Test; import org.opengroup.osdu.notification.util.GCPTestUtils; -import org.opengroup.osdu.notification.util.RestDescriptor; -import org.opengroup.osdu.notification.util.TestUtils; public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests { - @BeforeClass - public static void classSetup() throws Exception { - PubsubEndpointHMACTests.classSetup(); - } + @BeforeClass + public static void classSetup() throws Exception { + PubsubEndpointHMACTests.classSetup(); + } - @AfterClass - public static void classTearDown() throws Exception { - } + @AfterClass + public static void classTearDown() throws Exception { + } - @Before - @Override - public void setup() throws Exception { - this.testUtils = new GCPTestUtils(); - } + @Before + @Override + public void setup() throws Exception { + this.testUtils = new GCPTestUtils(); + } + + @After + @Override + public void tearDown() throws Exception { + this.testUtils = null; + } + + @Override + @Test + public void should_return20X_when_usingCredentialsWithOpsPermission() throws Exception { + createResource(); + + try { + ClientResponse response = descriptor.run(getArg(), testUtils.getOpsToken()); - @After - @Override - public void tearDown() throws Exception { - this.testUtils = null; + assertEquals(error(response.getStatus() == 204 ? "" : response.getEntity(String.class)), + expectedOkResponseCode(), response.getStatus()); + assertEquals("GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH", + response.getHeaders().getFirst("Access-Control-Allow-Methods")); + assertEquals( + "access-control-allow-origin, origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey", + response.getHeaders().getFirst("Access-Control-Allow-Headers")); + assertEquals("*", response.getHeaders().getFirst("Access-Control-Allow-Origin")); + assertEquals("true", response.getHeaders().getFirst("Access-Control-Allow-Credentials")); + assertEquals("DENY", response.getHeaders().getFirst("X-Frame-Options")); + assertEquals("1; mode=block", response.getHeaders().getFirst("X-XSS-Protection")); + assertEquals("nosniff", response.getHeaders().getFirst("X-Content-Type-Options")); + assertEquals("no-cache, no-store, must-revalidate", + response.getHeaders().getFirst("Cache-Control")); + assertEquals("default-src 'self'", response.getHeaders().getFirst("Content-Security-Policy")); + assertTrue(response.getHeaders().get("Strict-Transport-Security").get(0) + .contains("max-age=31536000")); + assertTrue(response.getHeaders().get("Strict-Transport-Security").get(0) + .contains("includeSubDomains")); + assertEquals("0", response.getHeaders().getFirst("Expires")); + } finally { + deleteResource(); } + } } \ No newline at end of file diff --git a/testing/notification-test-ibm/pom.xml b/testing/notification-test-ibm/pom.xml index b374c02678e26207220d304ee42d872dc1710bd9..2b3e4e5a4210906be3fd36824b096f32d544a846 100644 --- a/testing/notification-test-ibm/pom.xml +++ b/testing/notification-test-ibm/pom.xml @@ -18,13 +18,13 @@ <parent> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification-testing</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> </parent> <groupId>org.opengroup.osdu</groupId> <artifactId>notification-test-ibm</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <name>notification-test-ibm</name> <description>Integration tests IBM for notification</description> <packaging>jar</packaging> @@ -45,7 +45,7 @@ <dependency> <groupId>org.opengroup.osdu.notification</groupId> <artifactId>notification-test-core</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.opengroup.osdu</groupId> diff --git a/testing/pom.xml b/testing/pom.xml index e19233259c1057a20955126716a59fa71dd85f04..79973d75bbd04e049048f130fd2e68419276de5e 100644 --- a/testing/pom.xml +++ b/testing/pom.xml @@ -18,7 +18,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.opengroup.osdu</groupId> <artifactId>os-notification-testing</artifactId> - <version>0.9.0-SNAPSHOT</version> + <version>0.10.0-SNAPSHOT</version> <description>Root Notification Service project</description> <packaging>pom</packaging>