template syntax fixes (#4711)

patch-1
Sandeep Singh 2022-06-30 16:49:17 +05:30 committed by GitHub
parent 4d6990ae82
commit 6f6909cb38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 6 additions and 13 deletions

View File

@ -31,7 +31,6 @@ requests:
- "IIS/6.0" - "IIS/6.0"
- type: dsl - type: dsl
part: header
dsl: dsl:
- regex("<DAV:sql>", dasl) # lowercase header name: DASL - regex("<DAV:sql>", dasl) # lowercase header name: DASL
- regex("[\d]+(,\s+[\d]+)?", dav) # lowercase header name: DAV - regex("[\d]+(,\s+[\d]+)?", dav) # lowercase header name: DAV
@ -42,4 +41,5 @@ requests:
- type: status - type: status
status: status:
- 200 - 200
# Enhanced by mp on 2022/05/11 # Enhanced by mp on 2022/05/11

View File

@ -27,13 +27,12 @@ requests:
matchers: matchers:
- type: dsl - type: dsl
dsl: dsl:
- "contains((body_1), 'Probe #1') && contains((body_2), '<span>Configuration Requests Sent</span>')" - "contains(body_1, 'Probe #1') && contains(body_2, '<span>Configuration Requests Sent</span>')"
part: body
- type: word - type: word
part: body
words: words:
- "prtg_network_monitor" - "prtg_network_monitor"
part: body
- type: status - type: status
status: status:

View File

@ -36,7 +36,6 @@ requests:
matchers-condition: and matchers-condition: and
matchers: matchers:
- type: dsl - type: dsl
part: body
dsl: dsl:
- compare_versions(buildnumber, '< 6121') - compare_versions(buildnumber, '< 6121')

View File

@ -25,7 +25,6 @@ requests:
- 200 - 200
- type: dsl - type: dsl
part: header
dsl: dsl:
- "contains(tolower(all_headers), 'content-type: application/javascript')" - "contains(tolower(all_headers), 'content-type: application/javascript')"
@ -49,5 +48,5 @@ requests:
- "Bootstrap" - "Bootstrap"
- "jQuery" - "jQuery"
- "CSS TRANSITION SUPPORT" - "CSS TRANSITION SUPPORT"
negative: true
condition: or condition: or
negative: true

View File

@ -19,11 +19,9 @@ requests:
- contains(tolower(all_headers), 'x-amz-request') - contains(tolower(all_headers), 'x-amz-request')
- contains(tolower(all_headers), 'x-amz-id') - contains(tolower(all_headers), 'x-amz-id')
- contains(tolower(all_headers), 'amazons3') - contains(tolower(all_headers), 'amazons3')
part: header
condition: or condition: or
- type: dsl - type: dsl
dsl: dsl:
- contains(tolower(all_headers), 'x-guploader-uploadid') - contains(tolower(all_headers), 'x-guploader-uploadid')
part: header
negative: true negative: true

View File

@ -21,5 +21,4 @@ requests:
- contains(tolower(all_headers), 'x-goog-stored-content-encoding') - contains(tolower(all_headers), 'x-goog-stored-content-encoding')
- contains(tolower(all_headers), 'x-goog-stored-content-length') - contains(tolower(all_headers), 'x-goog-stored-content-length')
- contains(tolower(all_headers), 'x-guploader-uploadid') - contains(tolower(all_headers), 'x-guploader-uploadid')
part: header
condition: or condition: or

View File

@ -28,7 +28,6 @@ requests:
condition: and condition: and
- type: dsl - type: dsl
part: header
dsl: dsl:
- contains(tolower(content_type), 'application/xml') - contains(tolower(content_type), 'application/xml')
- contains(tolower(content_type), 'text/xml') - contains(tolower(content_type), 'text/xml')

View File

@ -24,14 +24,14 @@ requests:
matchers-condition: and matchers-condition: and
matchers: matchers:
- type: word - type: word
part: header
words: words:
- "filename=QH.aspx" - "filename=QH.aspx"
- "application/zip" - "application/zip"
part: header
condition: and condition: and
- type: word - type: word
regex: words:
- "QH.aspx.cs" - "QH.aspx.cs"
- "QiHang.Media.Web.QH" - "QiHang.Media.Web.QH"
condition: and condition: and