id: api-pivotaltracker

info:
  name: PivotalTracker API Test
  author: zzeitlin
  severity: info
  reference:
    - https://www.pivotaltracker.com/help/api
  metadata:
    max-request: 1
  tags: token-spray,pivotaltracker

self-contained: true

http:
  - method: GET
    path:
      - "https://www.pivotaltracker.com/services/v5/me"

    headers:
      X-TrackerToken: "{{token}}"
    matchers:
      - type: word
        part: body
        negative: true
        words:
          - 'invalid_authentication'
          - 'unauthenticated'
# digest: 4a0a00473045022100888de6242589e9df9e48d4b9c434ccf420e054e470380eeeeb7e9e7d4feb487d02200c99ec2a650cb07019e5aa2a11afbd24ba7e39c884ef6f1d1e61482f28e0818e:922c64590222798bb761d5b6d8e72950