Package org.finos.fluxnova.bpm
Class HttpHeaderSecurityIT
java.lang.Object
org.finos.fluxnova.bpm.AbstractWebIntegrationTest
org.finos.fluxnova.bpm.HttpHeaderSecurityIT
-
Field Summary
FieldsFields inherited from class org.finos.fluxnova.bpm.AbstractWebIntegrationTest
appBasePath, appUrl, COOKIE_HEADER, csrfToken, HOST_NAME, httpPort, JSESSIONID_IDENTIFIER, service, sessionId, TASKLIST_PATH, testProperties, X_XSRF_TOKEN_HEADER, XSRF_TOKEN_IDENTIFIER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertHeaderPresent(String expectedName, String expectedValue, kong.unirest.HttpResponse<String> response) voidvoidvoidvoidvoidMethods inherited from class org.finos.fluxnova.bpm.AbstractWebIntegrationTest
before, createClient, createCookieHeader, createCookieHeader, getCookie, getCookieHeaders, getCookieValue, getCookieValue, getRestCtxPath, getTokens, getWebappCtxPath, getXsrfCookieValue, getXsrfTokenHeader, preventRaceConditions, setUpClass
-
Field Details
-
CSP_VALUE
- See Also:
-
-
Constructor Details
-
HttpHeaderSecurityIT
public HttpHeaderSecurityIT()
-
-
Method Details
-
createClient
- Throws:
Exception
-
shouldCheckPresenceOfXssProtectionHeader
@Test @Timeout(value=10000L, unit=MILLISECONDS) public void shouldCheckPresenceOfXssProtectionHeader() -
shouldCheckPresenceOfContentSecurityPolicyHeader
@Test @Timeout(value=10000L, unit=MILLISECONDS) public void shouldCheckPresenceOfContentSecurityPolicyHeader() -
shouldCheckPresenceOfContentTypeOptions
@Test @Timeout(value=10000L, unit=MILLISECONDS) public void shouldCheckPresenceOfContentTypeOptions() -
shouldCheckAbsenceOfHsts
-
assertHeaderPresent
-