Search in sources :

Example 1 with DummyHttpServletRequestUser

use of opengrok.auth.plugin.util.DummyHttpServletRequestUser in project OpenGrok by OpenGrok.

the class MellonDecoderTest method setUp.

@BeforeEach
public void setUp() {
    dummyRequest = new DummyHttpServletRequestUser();
    dummyRequest.setHeader(MELLON_EMAIL_HEADER, "foo@bar.cz");
}
Also used : DummyHttpServletRequestUser(opengrok.auth.plugin.util.DummyHttpServletRequestUser) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with DummyHttpServletRequestUser

use of opengrok.auth.plugin.util.DummyHttpServletRequestUser in project OpenGrok by OpenGrok.

the class OSSODecoderTest method setUp.

@BeforeEach
public void setUp() {
    dummyRequest = new DummyHttpServletRequestUser();
    dummyRequest.setHeader(OSSO_COOKIE_TIMESTAMP_HEADER, "5761172f");
    dummyRequest.setHeader(OSSO_TIMEOUT_EXCEEDED_HEADER, "");
    dummyRequest.setHeader(OSSO_SUBSCRIBER_DN_HEADER, "");
    dummyRequest.setHeader(OSSO_SUBSCRIBER_HEADER, "");
    dummyRequest.setHeader(OSSO_USER_DN_HEADER, "007");
    dummyRequest.setHeader(OSSO_USER_GUID_HEADER, "123456");
}
Also used : DummyHttpServletRequestUser(opengrok.auth.plugin.util.DummyHttpServletRequestUser) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

DummyHttpServletRequestUser (opengrok.auth.plugin.util.DummyHttpServletRequestUser)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2