fixed len condition

patch-1
sandeep 2022-03-24 18:23:32 +05:30
parent 25c270403b
commit 52d58896a1
1 changed files with 7 additions and 6 deletions

View File

@ -19,12 +19,6 @@ requests:
req-condition: true
matchers-condition: and
matchers:
- type: dsl
dsl:
- "len(body) == 0"
- "status_code_2 == 200"
- "contains(content_type_2, 'text/html')"
- type: dsl
dsl:
- (regex("<link[^>]+s\d+\.wp\.com",body_1))
@ -35,3 +29,10 @@ requests:
- contains(body_1, 'name=\"generator\" content=\"wordpress')
- contains(body_1, '<!-- performance optimized by w3 total cache.')
condition: or
- type: dsl
dsl:
- "len(body_2) == 0"
- "status_code_2 == 200"
- "contains(content_type_2, 'text/html')"