id: api-buildkite

info:
  name: Buildkite API Test
  author: zzeitlin
  severity: info
  reference:
    - https://buildkite.com/docs/apis/rest-api/user
  metadata:
    max-request: 1
  tags: token-spray,buildkite

self-contained: true

http:
  - 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

# digest: 4a0a00473045022100b1e9462eb31a19937ecf593969002cadf169b17731937fb41f262e095067f02002206a2f5621877513735651c7cd41a13fec9c9d4e140adf8f696d5cda2dde328510:922c64590222798bb761d5b6d8e72950
