Skip to content
Snippets Groups Projects
Commit d2663dac authored by Stephen Henderson's avatar Stephen Henderson
Browse files

remove LogId usage/needs everywhere

parent da294947
No related branches found
No related tags found
1 merge request!6Trusted ibm
...@@ -23,7 +23,6 @@ import org.mockito.Mock; ...@@ -23,7 +23,6 @@ import org.mockito.Mock;
import org.opengroup.osdu.core.common.model.core.AuditPayload; import org.opengroup.osdu.core.common.model.core.AuditPayload;
import org.opengroup.osdu.core.common.model.core.DpsHeaders; import org.opengroup.osdu.core.common.model.core.DpsHeaders;
import org.opengroup.osdu.core.common.model.core.Request; import org.opengroup.osdu.core.common.model.core.Request;
import org.opengroup.osdu.core.common.model.indexer.ServiceLogId;
import org.opengroup.osdu.core.common.service.logging.ILogger; import org.opengroup.osdu.core.common.service.logging.ILogger;
import org.opengroup.osdu.core.common.service.logging.JaxRsDpsLog; import org.opengroup.osdu.core.common.service.logging.JaxRsDpsLog;
import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.core.classloader.annotations.PrepareForTest;
...@@ -48,9 +47,6 @@ public class JaxRsDpsLogTest { ...@@ -48,9 +47,6 @@ public class JaxRsDpsLogTest {
@InjectMocks @InjectMocks
private JaxRsDpsLog sut; private JaxRsDpsLog sut;
@InjectMocks
private ServiceLogId logId;
@Test @Test
public void should_includeAllHeadersExceptAuth_when_writingALog() { public void should_includeAllHeadersExceptAuth_when_writingALog() {
this.sut.info("msg"); this.sut.info("msg");
...@@ -60,9 +56,6 @@ public class JaxRsDpsLogTest { ...@@ -60,9 +56,6 @@ public class JaxRsDpsLogTest {
assertEquals("cor123", argument.getValue().get(DpsHeaders.CORRELATION_ID)); assertEquals("cor123", argument.getValue().get(DpsHeaders.CORRELATION_ID));
assertFalse(argument.getValue().containsKey("authorization")); assertFalse(argument.getValue().containsKey("authorization"));
when(logId.getAppLog()).thenReturn("search.app");
when(logId.getAuditLog()).thenReturn("search.audit");
when(logId.getRequestLog()).thenReturn("search.request");
} }
@Test @Test
......
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