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 - type: word
part: body part: body
words: words:
- "error" - '"username":'
negative: true - '"id":'
condition: and

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -14,6 +14,9 @@ requests:
- "https://circleci.com/api/v1.1/me?circle-token={{token}}" - "https://circleci.com/api/v1.1/me?circle-token={{token}}"
matchers: matchers:
- type: status - type: word
status: part: body
- 200 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}}" - "https://api.collection.cooperhewitt.org/rest/?method=api.spec.formats&access_token={{token}}"
matchers: matchers:
- type: status - type: word
status: part: body
- 200 words:
- '"stat":'
- '"formats":'
- '"default_format":'
condition: and

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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