CRS WAF test file
Definition of a test for verifying WAF behavior
| Type | FTWTest |
|---|---|
| File match |
*.waft
.waft.yaml
.waft.yml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/crs-waf-test-file/latest.json |
| Source | https://raw.githubusercontent.com/coreruleset/ftw-tests-schema/main/spec/v2.2.0/waf-tests-schema-v2.2.0.json |
Versions
Validate with Lintel
npx @lintel/lintel check
Type:
FTWTest
Definitions
FTWTest
object
FTWTestMeta
object
author
string
enabled
boolean
name
string
description
string
version
string
tags
string[]
Input
object
dest_addr
string
port
integer
protocol
string
uri
string
follow_redirect
boolean
version
string
method
string
headers
Record<string, string>
data
string
encoded_data
string
save_cookie
boolean
stop_magic
boolean
autocomplete_headers
boolean
encoded_request
string
response
object
5 nested properties
headers
Record<string, string>
status
integer
body
string
encoded_body
string
log_message
string
virtual_host_mode
boolean
Log
object
expect_ids
integer[]
no_expect_ids
integer[]
match_regex
string
no_match_regex
string
Output
object
status
integer
response_contains
string
log_contains
string
no_log_contains
string
log
object
4 nested properties
expect_ids
integer[]
no_expect_ids
integer[]
match_regex
string
no_match_regex
string
expect_error
boolean
retry_once
boolean
isolated
boolean
Response
object
headers
Record<string, string>
status
integer
body
string
encoded_body
string
log_message
string
Stage
object
16 nested properties
dest_addr
string
port
integer
protocol
string
uri
string
follow_redirect
boolean
version
string
method
string
headers
Record<string, string>
data
string
encoded_data
string
save_cookie
boolean
stop_magic
boolean
autocomplete_headers
boolean
encoded_request
string
response
object
5 nested properties
headers
Record<string, string>
status
integer
body
string
encoded_body
string
log_message
string
virtual_host_mode
boolean
8 nested properties
status
integer
response_contains
string
log_contains
string
no_log_contains
string
log
object
4 nested properties
expect_ids
integer[]
no_expect_ids
integer[]
match_regex
string
no_match_regex
string
expect_error
boolean
retry_once
boolean
isolated
boolean
description
string
Test
object