id: api-googledirections

info:
  name: Google Directions API Test
  author: zzeitlin
  severity: info
  metadata:
    max-request: 1
  tags: token-spray,google,directions

self-contained: true

http:
  - method: GET
    path:
      - "https://maps.googleapis.com/maps/api/directions/json?origin=Disneyland&destination=Universal+Studios+Hollywood4&key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - 'error_message'
        negative: true

# digest: 490a00463044022052706b23ef9135619b372c88a628ac89f7d9ddca84e647dd9f0b6a23a3096af902203fb735af04c33bebc695e20f5c9b43ab34ce8a80fd12cb7986f895d380e438b1:922c64590222798bb761d5b6d8e72950
