id: api-fastly

info:
  name: Fastly API Test
  author: Adam Crosser
  severity: info
  reference:
    - https://developer.fastly.com/reference/api/
  metadata:
    max-request: 1
  tags: token-spray,fastly

self-contained: true

http:
  - method: GET
    path:
      - "https://api.fastly.com/current_user"

    headers:
      Fastly-Key: "{{token}}"
    matchers:
      - type: word
        part: body
        words:
          - '"created_at":'
          - '"customer_id":'
        condition: and
# digest: 4a0a0047304502206bc0b366ab0eec7a5cfde3fea85c6c6cb691dfe9601b1ab0a774d3271d3150f202210095cf8020ce559b066d41a0edb457573d9b500e026baa80cc0e7dc7602d23a5e5:922c64590222798bb761d5b6d8e72950