Skip to content

Commit 05c7c9d

Browse files
committed
test(site/csp/report): verify csp request is accepted.
Fix #1094
1 parent 82f7825 commit 05c7c9d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*** Settings ***
2+
Documentation Verify site csp report scenario
3+
Library String
4+
Library SeleniumLibrary
5+
Library HttpRequestLibrary
6+
Resource ../../auth.steps.robot
7+
Suite Setup Before Test Suite
8+
Suite Teardown Close Browser
9+
Force Tags site csp logic testme
10+
11+
*** Test Cases ***
12+
Validate site csp report request is accepted
13+
Create Session httpbin ${SITE_URL}
14+
Set Test Variable ${data} ""
15+
${resp}= Post Request httpbin /site/csp/reports data=${data}
16+
Should Be Equal As Strings ${resp.status_code} 201
17+
18+
*** Keywords ***
19+
Before Test Suite
20+
Register Keyword To Run On Failure Log Source

0 commit comments

Comments
 (0)