Skip to content

Commit 6013f08

Browse files
mukeshkphp-coder
authored andcommitted
test(site/csp/report): verify csp request is accepted.
Fix #1094
1 parent 82f7825 commit 6013f08

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/main/java/ru/mystamps/web/feature/site/CspController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
public class CspController {
3434
private static final String UNKNOWN = "<unknown>";
3535

36-
// @todo #1058 /site/csp/reports: add integration tests
3736
@PostMapping(SiteUrl.CSP_REPORTS_HANDLER)
3837
@ResponseStatus(HttpStatus.NO_CONTENT)
3938
public void handleReport(
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*** Settings ***
2+
Documentation Verify CSP report submission scenario
3+
Library HttpRequestLibrary
4+
Force Tags site csp logic
5+
6+
*** Test Cases ***
7+
CSP report should be accepted
8+
Create Session server ${SITE_URL}
9+
Post Request server /site/csp/reports data="{}"
10+
Response Code Should Be server 204

0 commit comments

Comments
 (0)