more changes

patch-1
Prince Chaddha 2021-11-10 15:05:20 +05:30
parent 0f99f285d3
commit 462c4f7b12
27 changed files with 136 additions and 84 deletions

View File

@ -17,10 +17,9 @@ requests:
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
matchers: matchers:
- type: status - type: word
condition: or part: body
status: words:
- 200 - '"created_at":'
- 201 - '"git_url":'
- 202 condition: and
- 206

View File

@ -3,8 +3,8 @@ id: api-hubspot
info: info:
name: HubSpot API Test name: HubSpot API Test
author: zzeitlin author: zzeitlin
reference: https://legacydocs.hubspot.com/docs/methods/owners/get_owners
severity: info severity: info
reference: https://legacydocs.hubspot.com/docs/methods/owners/get_owners
tags: token-spray,hubspot tags: token-spray,hubspot
self-contained: true self-contained: true
@ -12,11 +12,20 @@ requests:
- method: GET - method: GET
path: path:
- "https://api.hubapi.com/owners/v2/owners?hapikey={{token}}" - "https://api.hubapi.com/owners/v2/owners?hapikey={{token}}"
- "https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey={{token}}" - "https://api.hubapi.com/contacts/v1/lists/static?count=3&hapikey={{token}}"
matchers-condition: or
matchers: matchers:
- type: word - type: word
part: body part: body
words: words:
- 'error' - '"portalId":'
negative: true - '"ownerId":'
condition: and
- type: word
part: body
words:
- '"metaData":'
- '"portalId":'
condition: and

View File

@ -11,9 +11,13 @@ self-contained: true
requests: requests:
- method: GET - method: GET
path: path:
- "https://graph.facebook.com/v8.0/me/accounts?access_token={{token}}" - "https://graph.facebook.com/v12.0/me/accounts?access_token={{token}}"
matchers: matchers:
- type: status - type: word
status: part: body
- 200 words:
- '"data":'
- '"access_token":'
- '"name":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-ipstack
info: info:
name: IPStack API Test name: IPStack API Test
author: zzeitlin author: zzeitlin
reference: https://ipstack.com/documentation
severity: info severity: info
reference: https://ipstack.com/documentation
tags: token-spray,ipstack tags: token-spray,ipstack
self-contained: true self-contained: true
@ -16,6 +16,8 @@ requests:
matchers: matchers:
- type: word - type: word
part: body part: body
negative: true
words: words:
- 'invalid_access_key' - '"ip":'
- '"hostname":'
- '"type":'
condition: and

View File

@ -3,22 +3,22 @@ id: api-iterable
info: info:
name: Iterable API Test name: Iterable API Test
author: zzeitlin author: zzeitlin
reference: https://api.iterable.com/api/docs
severity: info severity: info
reference: https://api.iterable.com/api/docs
tags: token-spray,iterable tags: token-spray,iterable
self-contained: true self-contained: true
requests: requests:
- method: GET - method: GET
path: path:
- "https://api.iterable.com/api/export/data.json?dataTypeName=emailSend&range=Today&onlyFields=List.empty" - "https://api.iterable.com/api/catalogs"
headers: headers:
Api_Key: "{{token}}" Api_Key: "{{token}}"
matchers: matchers:
- type: word - type: word
part: body part: body
negative: true
words: words:
- 'BadApiKey' - '"name":'
- 'RateLimitExceeded' # Matchers needs to be replaced with valid +ve match instead of -ve - '"catalogNames":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-jumpcloud
info: info:
name: JumpCloud API Test name: JumpCloud API Test
author: zzeitlin author: zzeitlin
reference: https://docs.jumpcloud.com/1.0/authentication-and-authorization/api-key
severity: info severity: info
reference: https://docs.jumpcloud.com/1.0/authentication-and-authorization/api-key
tags: token-spray,jumpcloud tags: token-spray,jumpcloud
self-contained: true self-contained: true
@ -18,6 +18,7 @@ requests:
matchers: matchers:
- type: word - type: word
part: body part: body
negative: true
words: words:
- 'Unauthorized' - '"_id":'
- '"agentServer":'
condition: and

View File

@ -21,6 +21,8 @@ requests:
- type: word - type: word
part: body part: body
negative: true
words: words:
- "serviceErrorCode" - '"id":'
- '"firstName":'
- '"localized":'
condition: and

View File

@ -3,19 +3,23 @@ id: api-lokalise
info: info:
name: Lokalise API Test name: Lokalise API Test
author: zzeitlin author: zzeitlin
reference: https://app.lokalise.com/api2docs/curl/#resource-projects
severity: info severity: info
reference: https://app.lokalise.com/api2docs/curl/#resource-projects
tags: token-spray,lokalise tags: token-spray,lokalise
self-contained: true self-contained: true
requests: requests:
- method: GET - method: GET
path: path:
- "https://api.lokalise.com/api2/projects/" - "https://api.lokalise.com/api2/teams"
headers: headers:
X-Api-Token: "{{token}}" x-api-Token: "{{token}}"
matchers: matchers:
- type: status - type: word
status: part: body
- 200 words:
- '"teams":'
- '"team_id":'
- '"name":'
condition: and

View File

@ -3,15 +3,15 @@ id: api-loqate
info: info:
name: Loqate API Test name: Loqate API Test
author: zzeitlin author: zzeitlin
reference: https://www.loqate.com/resources/support/apis/Capture/Interactive/Find/1.1/
severity: info severity: info
reference: https://www.loqate.com/resources/support/apis/Capture/Interactive/Find/1.1/
tags: token-spray,loqate tags: token-spray,loqate
self-contained: true self-contained: true
requests: requests:
- method: GET - method: GET
path: path:
- "api.addressy.com/Capture/Interactive/Find/v1.00/json3.ws?Key={{token}}&Countries=US,CA&Language=en&Limit=5&Text=BHAR" - "https://api.addressy.com/Capture/Interactive/Find/v1.00/json3.ws?Key={{token}}&Countries=US,CA&Language=en&Limit=5&Text=BHAR"
matchers: matchers:
- type: word - type: word

View File

@ -3,8 +3,8 @@ id: api-mailchimp
info: info:
name: Mailchimp API Test name: Mailchimp API Test
author: zzeitlin author: zzeitlin
reference: https://mailchimp.com/developer/transactional/docs/smtp-integration/#credentials-and-configuration
severity: info severity: info
reference: https://mailchimp.com/developer/transactional/docs/smtp-integration/#credentials-and-configuration
tags: token-spray,mailchimp tags: token-spray,mailchimp
self-contained: true self-contained: true

View File

@ -3,8 +3,8 @@ id: api-mailgun
info: info:
name: Mailgun API Test name: Mailgun API Test
author: zzeitlin author: zzeitlin
reference: https://documentation.mailgun.com/en/latest/api-intro.html
severity: info severity: info
reference: https://documentation.mailgun.com/en/latest/api-intro.html
tags: token-spray,mailgun tags: token-spray,mailgun
self-contained: true self-contained: true
@ -16,6 +16,10 @@ requests:
Authorization: Basic {{base64('api:' + token)}} Authorization: Basic {{base64('api:' + token)}}
matchers: matchers:
- type: status - type: word
status: part: body
- 200 words:
- '"total_count":'
- '"items":'
- '"created_at":'
condition: and

View File

@ -14,7 +14,10 @@ requests:
- "https://api.mapbox.com/geocoding/v5/mapbox.places/Los%20Angeles.json?access_token={{token}}" - "https://api.mapbox.com/geocoding/v5/mapbox.places/Los%20Angeles.json?access_token={{token}}"
matchers: matchers:
- type: status - type: word
status: part: body
- 401 words:
negative: true - 'type'
- 'query'
- 'features'
condition: and

View File

@ -3,8 +3,8 @@ id: api-nerdgraph
info: info:
name: New Relic NerdGraph API Test name: New Relic NerdGraph API Test
author: zzeitlin author: zzeitlin
reference: https://docs.newrelic.com/docs/apis/nerdgraph/get-started/introduction-new-relic-nerdgraph/
severity: info severity: info
reference: https://docs.newrelic.com/docs/apis/nerdgraph/get-started/introduction-new-relic-nerdgraph/
tags: token-spray,newrelic,nerdgraph tags: token-spray,newrelic,nerdgraph
self-contained: true self-contained: true

View File

@ -3,8 +3,8 @@ id: api-netlify
info: info:
name: Netlify API Test name: Netlify API Test
author: dwisiswant0 author: dwisiswant0
reference: https://docs.netlify.com/api/get-started/
severity: info severity: info
reference: https://docs.netlify.com/api/get-started/
tags: token-spray,netlify tags: token-spray,netlify
self-contained: true self-contained: true
@ -16,6 +16,10 @@ requests:
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
matchers: matchers:
- type: status - type: word
status: part: body
- 200 words:
- '"id":'
- '"premium":'
- '"claimed":'
condition: and

View File

@ -3,9 +3,9 @@ id: api-npm
info: info:
name: NPM API Test name: NPM API Test
author: zzeitlin author: zzeitlin
reference: https://docs.npmjs.com/creating-and-viewing-access-tokens
severity: info severity: info
tags: token-spray,node,npm,package,manager reference: https://docs.npmjs.com/creating-and-viewing-access-tokens
tags: token-spray,node,npm
self-contained: true self-contained: true
requests: requests:

View File

@ -3,21 +3,25 @@ id: api-onelogin
info: info:
name: OneLogin API Test name: OneLogin API Test
author: dwisiswant0 author: dwisiswant0
reference: https://developers.onelogin.com/api-docs/2/getting-started/dev-overview
severity: info severity: info
reference: https://developers.onelogin.com/api-docs/2/getting-started/dev-overview
tags: token-spray,onelogin tags: token-spray,onelogin
self-contained: true self-contained: true
requests: requests:
- method: GET - method: GET
path: path:
- "https://api.us.onelogin.com/api/2/users?fields=id" - "https://api.us.onelogin.com/api/2/apps"
- "https://api.eu.onelogin.com/api/2/users?fields=id" - "https://api.eu.onelogin.com/api/2/apps"
headers: headers:
Authorization: Bearer {{token}} Authorization: Bearer {{token}}
stop-at-first-match: true stop-at-first-match: true
matchers: matchers:
- type: status - type: word
status: part: body
- 200 words:
- '"id":'
- '"connector_id":'
- '"auth_method":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-openweather
info: info:
name: OpenWeather API Test name: OpenWeather API Test
author: zzeitlin author: zzeitlin
reference: https://openweathermap.org/current
severity: info severity: info
reference: https://openweathermap.org/current
tags: token-spray,weather,openweather tags: token-spray,weather,openweather
self-contained: true self-contained: true
@ -14,6 +14,10 @@ requests:
- "https://api.openweathermap.org/data/2.5/weather?q=Chicago&appid={{token}}" - "https://api.openweathermap.org/data/2.5/weather?q=Chicago&appid={{token}}"
matchers: matchers:
- type: status - type: word
status: part: body
- 200 words:
- '"coord":'
- '"weather":'
- '"base":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-optimizely
info: info:
name: Optimizely API Test name: Optimizely API Test
author: dwisiswant0 author: dwisiswant0
reference: https://library.optimizely.com/docs/api/app/v2/index.html
severity: info severity: info
reference: https://library.optimizely.com/docs/api/app/v2/index.html
tags: token-spray,optimizely tags: token-spray,optimizely
self-contained: true self-contained: true
@ -24,4 +24,6 @@ requests:
- type: word - type: word
part: body part: body
words: words:
- "account_id" - '"account_id":'
- '"confidence_threshold":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-pagerduty
info: info:
name: Pagerduty API Test name: Pagerduty API Test
author: zzeitlin author: zzeitlin
reference: https://developer.pagerduty.com/api-reference
severity: info severity: info
reference: https://developer.pagerduty.com/api-reference
tags: token-spray,pagerduty tags: token-spray,pagerduty
self-contained: true self-contained: true
@ -17,7 +17,9 @@ requests:
Authorization: Token token={{token}} Authorization: Token token={{token}}
matchers: matchers:
- type: status - type: word
status: part: body
- 401 words:
negative: true - '"schedules":'
- '"id":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-pendo
info: info:
name: Pendo API Test name: Pendo API Test
author: zzeitlin author: zzeitlin
reference: https://help.pendo.io/resources/support-library/api/index.html
severity: info severity: info
reference: https://help.pendo.io/resources/support-library/api/index.html
tags: token-spray,pendo tags: token-spray,pendo
self-contained: true self-contained: true
@ -12,13 +12,14 @@ requests:
- method: GET - method: GET
path: path:
- "https://app.pendo.io/api/v1/feature" - "https://app.pendo.io/api/v1/feature"
- "https://app.pendo.io/api/v1/metadata/schema/account"
headers: headers:
Content-Type: application/json Content-Type: application/json
X-Pendo-Integration-Key: "{{token}}" X-Pendo-Integration-Key: "{{token}}"
matchers: matchers:
- type: status - type: word
status: part: body
- 403 words:
negative: true - '"createdByUser":'
- '"id":'
condition: and

View File

@ -21,3 +21,4 @@ requests:
negative: true negative: true
words: words:
- 'invalid_authentication' - 'invalid_authentication'
- 'unauthenticated'

View File

@ -3,20 +3,24 @@ id: api-postmark
info: info:
name: PostMark API Test name: PostMark API Test
author: zzeitlin author: zzeitlin
reference: https://postmarkapp.com/developer/api/overview
severity: info severity: info
reference: https://postmarkapp.com/developer/api/overview
tags: token-spray,postmark tags: token-spray,postmark
self-contained: true self-contained: true
requests: requests:
- method: GET - method: GET
path: path:
- "https://api.postmarkapp.com/stats/outbound" - "https://api.postmarkapp.com/server"
headers: headers:
Accept: application/json Accept: application/json
X-Postmark-Server-Token: "{{token}}" X-Postmark-Server-Token: "{{token}}"
matchers: matchers:
- type: status - type: word
status: part: body
- 200 words:
- '"ID":'
- '"Name":'
- '"ApiTokens":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-sendgrid
info: info:
name: Sendgrid API Test name: Sendgrid API Test
author: zzeitlin author: zzeitlin
reference: https://docs.sendgrid.com/for-developers/sending-email/getting-started-smtp
severity: info severity: info
reference: https://docs.sendgrid.com/for-developers/sending-email/getting-started-smtp
tags: token-spray,sendgrid tags: token-spray,sendgrid
self-contained: true self-contained: true

View File

@ -19,5 +19,7 @@ requests:
- type: word - type: word
part: body part: body
words: words:
- 'error' - '"url":'
negative: true - '"team_id":'
- '"user_id":'
condition: and

View File

@ -3,8 +3,8 @@ id: api-travisci
info: info:
name: Travis CI API Test name: Travis CI API Test
author: zzeitlin author: zzeitlin
reference: https://developer.travis-ci.com/
severity: info severity: info
reference: https://developer.travis-ci.com/
tags: token-spray,travis tags: token-spray,travis
self-contained: true self-contained: true