Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions config_tests/CONF_009_TARGET_ARGS_JSON.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
target: ARGS
rulefile: MRTS_009_ARGS_JSON.conf
testfile: MRTS_009_ARGS_JSON.yaml
templates:
- SecRule for TARGETS
colkey:
- - ''
- - foo
operator:
- '@contains'
oparg:
- attack
phase:
- 2
- 3
- 4
testdata:
phase_methods:
2: post
3: post
4: post
targets:
- target: ''
test:
data: '{"foo": "attack"}'
input:
headers:
- name: Content-Type
value: application/json
- target: foo
test:
data: '{"foo": "attack"}'
input:
headers:
- name: Content-Type
value: application/json