From 0ee2ca49f61f75179f3118cbadd2406f7c72cfb3 Mon Sep 17 00:00:00 2001 From: Rashmi Pujar Date: Tue, 8 Oct 2019 14:46:09 -0400 Subject: Correct the CDS basic auth header in the request Issue-ID: POLICY-2088 Signed-off-by: Rashmi Pujar Change-Id: Ibcdfdbd1de66fcf193e52fcc14a1220c7520f140 --- .../onap/policy/cds/client/BasicAuthClientHeaderInterceptorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models-interactions/model-impl/cds/src/test/java') diff --git a/models-interactions/model-impl/cds/src/test/java/org/onap/policy/cds/client/BasicAuthClientHeaderInterceptorTest.java b/models-interactions/model-impl/cds/src/test/java/org/onap/policy/cds/client/BasicAuthClientHeaderInterceptorTest.java index fedf4703c..3192520ae 100644 --- a/models-interactions/model-impl/cds/src/test/java/org/onap/policy/cds/client/BasicAuthClientHeaderInterceptorTest.java +++ b/models-interactions/model-impl/cds/src/test/java/org/onap/policy/cds/client/BasicAuthClientHeaderInterceptorTest.java @@ -120,7 +120,7 @@ public class BasicAuthClientHeaderInterceptorTest { Key authHeader = Key .of(BasicAuthClientHeaderInterceptor.BASIC_AUTH_HEADER_KEY, Metadata.ASCII_STRING_MARSHALLER); - String expectedBaseAuth = Base64.getEncoder().encodeToString(String.format("%s:%s", CREDS, CREDS) + String expectedBaseAuth = "Basic " + Base64.getEncoder().encodeToString(String.format("%s:%s", CREDS, CREDS) .getBytes(StandardCharsets.UTF_8)); assertEquals(expectedBaseAuth, metadataCaptor.getValue().get(authHeader)); } -- cgit 1.2.3-korg