Skip to content
Snippets Groups Projects
Commit b3675708 authored by Alok Joshi's avatar Alok Joshi
Browse files

Merge branch 'master' of...

parents f41d6230 85475e78
No related branches found
No related tags found
1 merge request!553Add cache for entitlements authorize mechanism
Pipeline #304738 failed
Pipeline: Notification

#304739

    ...@@ -66,3 +66,8 @@ spec: ...@@ -66,3 +66,8 @@ spec:
    memory: {{ .Values.data.limitsMemory | quote}} memory: {{ .Values.data.limitsMemory | quote}}
    {{- end }} {{- end }}
    serviceAccountName: {{ .Values.data.serviceAccountName | quote}} serviceAccountName: {{ .Values.data.serviceAccountName | quote}}
    strategy:
    type: RollingUpdate
    rollingUpdate:
    maxUnavailable: 1
    maxSurge: 0
    ...@@ -19,6 +19,7 @@ package org.opengroup.osdu.notification.api; ...@@ -19,6 +19,7 @@ package org.opengroup.osdu.notification.api;
    import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
    import static org.junit.Assert.assertTrue; 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 static org.opengroup.osdu.notification.util.Constants.GROUP_ID;
    import com.google.common.base.Strings; import com.google.common.base.Strings;
    ...@@ -30,6 +31,7 @@ import java.util.Objects; ...@@ -30,6 +31,7 @@ import java.util.Objects;
    import org.junit.After; import org.junit.After;
    import org.junit.Before; import org.junit.Before;
    import org.junit.Test; 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.http.DpsHeaders;
    import org.opengroup.osdu.core.common.model.notification.GsaSecret; import org.opengroup.osdu.core.common.model.notification.GsaSecret;
    import org.opengroup.osdu.core.common.model.notification.GsaSecretValue; import org.opengroup.osdu.core.common.model.notification.GsaSecretValue;
    ...@@ -136,8 +138,11 @@ public class TestPushEndpointGsa { ...@@ -136,8 +138,11 @@ public class TestPushEndpointGsa {
    Secret gsaSecret = new GsaSecret(); Secret gsaSecret = new GsaSecret();
    GsaSecretValue gsaSecretValue = new GsaSecretValue(); GsaSecretValue gsaSecretValue = new GsaSecretValue();
    gsaSecretValue.setAudience(integrationAudience); 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.setSecretType("GSA");
    ((GsaSecret) gsaSecret).setValue(gsaSecretValue); ((GsaSecret) gsaSecret).setValue(gsaSecretValue);
    subscription.setSecret(gsaSecret); subscription.setSecret(gsaSecret);
    ......
    ...@@ -22,6 +22,7 @@ import com.sun.jersey.api.client.ClientResponse; ...@@ -22,6 +22,7 @@ import com.sun.jersey.api.client.ClientResponse;
    import org.junit.After; import org.junit.After;
    import org.junit.Before; import org.junit.Before;
    import org.junit.Test; 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.http.DpsHeaders;
    import org.opengroup.osdu.core.common.model.notification.*; import org.opengroup.osdu.core.common.model.notification.*;
    import org.opengroup.osdu.core.common.notification.ISubscriptionService; import org.opengroup.osdu.core.common.notification.ISubscriptionService;
    ...@@ -37,6 +38,7 @@ import java.util.HashMap; ...@@ -37,6 +38,7 @@ import java.util.HashMap;
    import java.util.Map; import java.util.Map;
    import static org.junit.Assert.*; 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; import static org.opengroup.osdu.notification.util.Constants.GROUP_ID;
    public class TestPushEndpointGsa { public class TestPushEndpointGsa {
    ...@@ -125,8 +127,11 @@ public class TestPushEndpointGsa { ...@@ -125,8 +127,11 @@ public class TestPushEndpointGsa {
    Secret gsaSecret = new GsaSecret(); Secret gsaSecret = new GsaSecret();
    GsaSecretValue gsaSecretValue = new GsaSecretValue(); GsaSecretValue gsaSecretValue = new GsaSecretValue();
    gsaSecretValue.setAudience(integrationAudience); 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.setSecretType("GSA");
    ((GsaSecret) gsaSecret).setValue(gsaSecretValue); ((GsaSecret) gsaSecret).setValue(gsaSecretValue);
    subscription.setSecret(gsaSecret); subscription.setSecret(gsaSecret);
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment