updated matchers

patch-1
Ritik Chaddha 2024-03-15 20:42:01 +05:30 committed by GitHub
parent f4d800b51a
commit e731cf6710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 20 deletions

View File

@ -32,30 +32,20 @@ http:
path:
- "{{BaseURL}}/rest/api/2/user/picker?query="
matchers-condition: or
matchers-condition: and
matchers:
- type: word
words:
- '"users":'
- '"total":'
- '"header":'
- '"usuario":'
condition: or
- type: word
part: header
words:
- 'application/json'
- type: dsl
dsl:
- 'contains(header, "application/json")'
- 'contains_any(body, "\"users\":","\"usuario\":")'
- 'contains_all(body, "\"total\":", "\"header\":")'
- 'status_code == 200 || status_code == 404'
condition: and
- type: word
part: body
negative: true
words:
- "Showing 0 of 0 matching users"
- "El usuario con nombre '{0}'no existe"
- 'total":0'
negative: true
- type: status
status:
- 200
- 404
# digest: 490a0046304402200dac4b173635c33be17a18d63dcf3e04950e7031a22183f31a3287b2f333969502200fbfe5713faae01eb5d1c45b85c879c16ee54ccc6aa8fe722551a0d8f343f00d:922c64590222798bb761d5b6d8e72950