diff --git a/NOTICE b/NOTICE index a58cd849f13e8d221c6c72b153602204a99ffd58..308cfc73e2c28da781e67f8ee4d99a747ccb04c3 100644 --- a/NOTICE +++ b/NOTICE @@ -31,7 +31,7 @@ The following software have components provided under the terms of this license: - AWS Java SDK for the AWS Simple Systems Management (SSM) Service (from https://aws.amazon.com/sdkforjava) - AWS SDK for Java - Core (from https://aws.amazon.com/sdkforjava) - Adapter: RxJava (from https://github.com/square/retrofit) -- Apache Commons BeanUtils (from http://commons.apache.org/proper/commons-beanutils/, https://commons.apache.org/proper/commons-beanutils/, https://repo1.maven.org/maven2/commons-beanutils/commons-beanutils) +- Apache Commons BeanUtils (from http://commons.apache.org/proper/commons-beanutils/, https://commons.apache.org/proper/commons-beanutils, https://repo1.maven.org/maven2/commons-beanutils/commons-beanutils) - Apache Commons Codec (from http://commons.apache.org/proper/commons-codec/, https://commons.apache.org/proper/commons-codec/) - Apache Commons IO (from http://commons.apache.org/io/, https://commons.apache.org/proper/commons-io/, https://repo1.maven.org/maven2/commons-io/commons-io) - Apache Commons Lang (from https://commons.apache.org/proper/commons-lang/) @@ -102,7 +102,7 @@ The following software have components provided under the terms of this license: - Jackson-dataformat-YAML (from https://github.com/FasterXML/jackson, https://github.com/FasterXML/jackson-dataformats-text) - Jackson-module-parameter-names (from https://repo1.maven.org/maven2/com/fasterxml/jackson/module/jackson-module-parameter-names) - Jakarta Dependency Injection (from https://github.com/eclipse-ee4j/injection-api) -- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) +- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://maven.atlassian.com/3rdparty/jakarta/ws/rs/jakarta.ws.rs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) - Jakarta Servlet (from https://projects.eclipse.org/projects/ee4j.servlet) - Jakarta Validation API (from https://beanvalidation.org) - Java Architecture for XML Binding (from http://jaxb.java.net/, https://repo1.maven.org/maven2/javax/xml/bind/jaxb-api) @@ -294,7 +294,7 @@ The following software have components provided under the terms of this license: - Jakarta Activation API (from https://github.com/eclipse-ee4j/jaf, https://github.com/jakartaee/jaf-api, https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api) - Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca) - Jakarta Messaging API (from https://projects.eclipse.org/projects/ee4j.jms) -- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) +- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://maven.atlassian.com/3rdparty/jakarta/ws/rs/jakarta.ws.rs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) - Jakarta WebSocket - Client API (from https://projects.eclipse.org/projects/ee4j.websocket) - Jakarta WebSocket - Server API (from https://projects.eclipse.org/projects/ee4j.websocket, https://repo1.maven.org/maven2/org/jboss/spec/javax/websocket/jboss-websocket-api_1.1_spec) - Jakarta XML Binding API (from https://repo1.maven.org/maven2/jakarta/xml/bind/jakarta.xml.bind-api, https://repo1.maven.org/maven2/org/jboss/spec/javax/xml/bind/jboss-jaxb-api_2.3_spec) @@ -401,7 +401,7 @@ The following software have components provided under the terms of this license: - Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca) - Jakarta Dependency Injection (from https://github.com/eclipse-ee4j/injection-api) - Jakarta Messaging API (from https://projects.eclipse.org/projects/ee4j.jms) -- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) +- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://maven.atlassian.com/3rdparty/jakarta/ws/rs/jakarta.ws.rs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) - Jakarta Servlet (from https://projects.eclipse.org/projects/ee4j.servlet) - Jakarta Validation API (from https://beanvalidation.org) - Jakarta WebSocket - Client API (from https://projects.eclipse.org/projects/ee4j.websocket) @@ -419,7 +419,7 @@ The following software have components provided under the terms of this license: - Jakarta Annotations API (from https://projects.eclipse.org/projects/ee4j.ca) - Jakarta Dependency Injection (from https://github.com/eclipse-ee4j/injection-api) - Jakarta Messaging API (from https://projects.eclipse.org/projects/ee4j.jms) -- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) +- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://maven.atlassian.com/3rdparty/jakarta/ws/rs/jakarta.ws.rs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) - Jakarta Servlet (from https://projects.eclipse.org/projects/ee4j.servlet) - Jakarta Validation API (from https://beanvalidation.org) - Jakarta WebSocket - Client API (from https://projects.eclipse.org/projects/ee4j.websocket) @@ -551,7 +551,7 @@ efsl-1.0 ======================================================================== The following software have components provided under the terms of this license: -- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) +- Jakarta RESTful WS API (from https://github.com/eclipse-ee4j/jaxrs-api, https://maven.atlassian.com/3rdparty/jakarta/ws/rs/jakarta.ws.rs-api, https://repo1.maven.org/maven2/jakarta/ws/rs/jakarta.ws.rs-api) ======================================================================== gpl-2.0-classpath diff --git a/testing/notification-test-baremetal/src/test/java/org/opengroup/osdu/notification/api/TestPushEndpointGsa.java b/testing/notification-test-baremetal/src/test/java/org/opengroup/osdu/notification/api/TestPushEndpointGsa.java index 90253dcafea4a159bac7b6829c930179ce5bdac6..97eaf864b2f9032983ecac91c715c209431fb8c0 100644 --- a/testing/notification-test-baremetal/src/test/java/org/opengroup/osdu/notification/api/TestPushEndpointGsa.java +++ b/testing/notification-test-baremetal/src/test/java/org/opengroup/osdu/notification/api/TestPushEndpointGsa.java @@ -19,6 +19,7 @@ package org.opengroup.osdu.notification.api; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; +import static org.opengroup.osdu.config.util.DecodedContentExtractorUtil.NAIVE_JSON_CONTENT_ACCEPTANCE_TESTER; import static org.opengroup.osdu.notification.util.Constants.GROUP_ID; import com.google.common.base.Strings; @@ -30,6 +31,7 @@ import java.util.Objects; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.opengroup.osdu.config.util.DecodedContentExtractor; import org.opengroup.osdu.core.common.model.http.DpsHeaders; import org.opengroup.osdu.core.common.model.notification.GsaSecret; import org.opengroup.osdu.core.common.model.notification.GsaSecretValue; @@ -136,8 +138,11 @@ public class TestPushEndpointGsa { Secret gsaSecret = new GsaSecret(); GsaSecretValue gsaSecretValue = new GsaSecretValue(); gsaSecretValue.setAudience(integrationAudience); - String opsTester = System.getProperty(DE_OPS_TESTER, System.getenv(DE_OPS_TESTER)); - gsaSecretValue.setKey(new String(Base64.getDecoder().decode(opsTester))); + + String opsTester = new DecodedContentExtractor(System.getProperty(DE_OPS_TESTER, System.getenv(DE_OPS_TESTER)), + NAIVE_JSON_CONTENT_ACCEPTANCE_TESTER).getContent(); + + gsaSecretValue.setKey(opsTester); gsaSecret.setSecretType("GSA"); ((GsaSecret) gsaSecret).setValue(gsaSecretValue); subscription.setSecret(gsaSecret); diff --git a/testing/notification-test-gc/src/test/java/org/opengroup/osdu/notification/api/TestPushEndpointGsa.java b/testing/notification-test-gc/src/test/java/org/opengroup/osdu/notification/api/TestPushEndpointGsa.java index c68244d9961c6f9b7b25ccf74bcae1466e0c9560..ed3f4c6c81f48e4e6dc3e8f7a9328e6f310d0b38 100644 --- a/testing/notification-test-gc/src/test/java/org/opengroup/osdu/notification/api/TestPushEndpointGsa.java +++ b/testing/notification-test-gc/src/test/java/org/opengroup/osdu/notification/api/TestPushEndpointGsa.java @@ -22,6 +22,7 @@ import com.sun.jersey.api.client.ClientResponse; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.opengroup.osdu.config.util.DecodedContentExtractor; import org.opengroup.osdu.core.common.model.http.DpsHeaders; import org.opengroup.osdu.core.common.model.notification.*; import org.opengroup.osdu.core.common.notification.ISubscriptionService; @@ -37,6 +38,7 @@ import java.util.HashMap; import java.util.Map; import static org.junit.Assert.*; +import static org.opengroup.osdu.config.util.DecodedContentExtractorUtil.NAIVE_JSON_CONTENT_ACCEPTANCE_TESTER; import static org.opengroup.osdu.notification.util.Constants.GROUP_ID; public class TestPushEndpointGsa { @@ -125,8 +127,11 @@ public class TestPushEndpointGsa { Secret gsaSecret = new GsaSecret(); GsaSecretValue gsaSecretValue = new GsaSecretValue(); gsaSecretValue.setAudience(integrationAudience); - String opsTester = System.getProperty(DE_OPS_TESTER, System.getenv(DE_OPS_TESTER)); - gsaSecretValue.setKey(new String(Base64.getDecoder().decode(opsTester))); + + String opsTester = new DecodedContentExtractor(System.getProperty(DE_OPS_TESTER, System.getenv(DE_OPS_TESTER)), + NAIVE_JSON_CONTENT_ACCEPTANCE_TESTER).getContent(); + + gsaSecretValue.setKey(opsTester); gsaSecret.setSecretType("GSA"); ((GsaSecret) gsaSecret).setValue(gsaSecretValue); subscription.setSecret(gsaSecret);