matchers updated

patch-1
Prince Chaddha 2021-11-01 17:52:18 +05:30
parent a229a2e822
commit 6d2214d670
19 changed files with 86 additions and 52 deletions

View File

@ -19,5 +19,6 @@ requests:
- type: word
part: body
words:
- "error"
negative: true
- '"username":'
- '"id":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-apigee-edge
info:
name: Apigee Edge API Test
author: dwisiswant0
reference: https://apidocs.apigee.com/apis
severity: info
reference: https://apidocs.apigee.com/apis
tags: token-spray,apigee
self-contained: true
@ -24,5 +24,6 @@ requests:
- type: word
part: body
words:
- "fault"
negative: true
- '"uuid":'
- '"name":'
condition: and

View File

@ -20,5 +20,6 @@ requests:
- type: word
part: body
words:
- "Authorization required"
negative: true
- '"roleId":'
- '"created":'
condition: and

View File

@ -16,7 +16,10 @@ requests:
Authorization: Bearer {{token}}
matchers:
- type: status
negative: true
status:
- 401
- type: word
part: body
words:
- 'data:'
- 'email'
- 'name'
condition: and

View File

@ -19,7 +19,7 @@ requests:
- type: word
part: body
words:
- "Invalid API-key"
- "key format invalid"
condition: or
negative: true
- '"id":'
- '"price":'
- '"quoteQty":'
condition: and

View File

@ -16,6 +16,7 @@ requests:
matchers:
- type: word
part: body
negative: true
words:
- 'INVALID_ARG_ACCESS_TOKEN'
- '"long_url":'
- '"created_at":'
condition: and

View File

@ -16,7 +16,10 @@ requests:
Authorization: Bearer {{token}}
matchers:
- type: status
status:
- 401
negative: true
- type: word
part: body
words:
- '"id":'
- '"graphql_id":'
- '"email":'
condition: and

View File

@ -14,7 +14,10 @@ requests:
- "https://api.buttercms.com/v2/posts/?auth_token={{token}}"
matchers:
- type: status
status:
- 401
negative: true
- type: word
part: body
words:
- '"meta":'
- '"data":'
- '"url":'
condition: and

View File

@ -16,6 +16,10 @@ requests:
X-Token: "{{token}}"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"data":'
- '"id":'
- '"email":'
condition: and

View File

@ -14,6 +14,9 @@ requests:
- "https://circleci.com/api/v1.1/me?circle-token={{token}}"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"admin"'
- '"login"'
condition: and

View File

@ -14,6 +14,10 @@ requests:
- "https://api.collection.cooperhewitt.org/rest/?method=api.spec.formats&access_token={{token}}"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- '"stat":'
- '"formats":'
- '"default_format":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-deviantart
info:
name: DeviantArt API Test
author: zzeitlin
reference: https://www.deviantart.com/developers/authentication
severity: info
reference: https://www.deviantart.com/developers/authentication
tags: token-spray,deviantart
self-contained: true
@ -18,5 +18,4 @@ requests:
- type: word
part: body
words:
- '"status":"error"'
negative: true
- '"status" : "success"'

View File

@ -14,6 +14,10 @@ requests:
- "https://api.europeana.eu/record/v2/search.json?wskey={{token}}&query=*&rows=0&profile=facets"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- 'success'
- 'apikey'
- 'action'
condition: and

View File

@ -21,5 +21,6 @@ requests:
- type: word
part: body
words:
- "Credentials are required"
negative: true
- '"input":'
- '"connectorType":'
condition: and

View File

@ -19,5 +19,6 @@ requests:
- type: word
part: body
words:
- "Authorization Error"
negative: true
- '"id"'
- '"username"'
condition: and

View File

@ -19,5 +19,6 @@ requests:
- type: word
part: body
words:
- "token_not_valid"
negative: true
- '"auth_code":'
- '"state":'
condition: and

View File

@ -16,7 +16,9 @@ requests:
x-api-key: "{{token}}"
matchers:
- type: status
negative: true
status:
- 401
- type: word
part: body
words:
- '"country_code":'
- '"created_at":'
condition: and

View File

@ -19,5 +19,7 @@ requests:
- type: word
part: body
words:
- "errors"
negative: true
- 'id'
- 'title'
- 'type'
condition: and