25 lines
491 B
YAML
25 lines
491 B
YAML
|
id: api-buildkite
|
||
|
|
||
|
info:
|
||
|
name: Buildkite API Test
|
||
|
author: zzeitlin
|
||
|
reference: https://buildkite.com/docs/apis/rest-api/user
|
||
|
severity: info
|
||
|
tags: token-spray,buildkite
|
||
|
|
||
|
self-contained: true
|
||
|
requests:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "https://api.buildkite.com/v2/user"
|
||
|
headers:
|
||
|
Authorization: Bearer {{token}}
|
||
|
|
||
|
matchers:
|
||
|
- type: word
|
||
|
part: body
|
||
|
words:
|
||
|
- '"id":'
|
||
|
- '"graphql_id":'
|
||
|
- '"email":'
|
||
|
condition: and
|