mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-23 10:15:25 +00:00
adding integration test
This commit is contained in:
parent
18e2d2cb24
commit
200faa107e
18
integration_tests/file/matcher-with-nested-and.yaml
Normal file
18
integration_tests/file/matcher-with-nested-and.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
id: file-matcher-with-nested-and
|
||||||
|
|
||||||
|
info:
|
||||||
|
name: File Matcher With nested AND
|
||||||
|
author: pdteam
|
||||||
|
severity: info
|
||||||
|
tags: file
|
||||||
|
|
||||||
|
file:
|
||||||
|
- extensions:
|
||||||
|
- all
|
||||||
|
|
||||||
|
matchers:
|
||||||
|
- type: word
|
||||||
|
words:
|
||||||
|
- "CCC"
|
||||||
|
- "DDD"
|
||||||
|
condition: and
|
||||||
@ -5,9 +5,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var fileTestcases = map[string]testutils.TestCase{
|
var fileTestcases = map[string]testutils.TestCase{
|
||||||
"file/matcher-with-or.yaml": &fileWithOrMatcher{},
|
"file/matcher-with-or.yaml": &fileWithOrMatcher{},
|
||||||
"file/matcher-with-and.yaml": &fileWithAndMatcher{},
|
"file/matcher-with-and.yaml": &fileWithAndMatcher{},
|
||||||
"file/extract.yaml": &fileWithExtractor{},
|
"file/matcher-with-nested-and.yaml": &fileWithAndMatcher{},
|
||||||
|
"file/extract.yaml": &fileWithExtractor{},
|
||||||
}
|
}
|
||||||
|
|
||||||
type fileWithOrMatcher struct{}
|
type fileWithOrMatcher struct{}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user