id: api-googledistancematrix

info:
  name: Google Distance Matrix API Test
  author: zzeitlin
  severity: info
  metadata:
    max-request: 1
  tags: token-spray,google,distance,matrix

self-contained: true

http:
  - method: GET
    path:
      - "https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=40.6655101,-73.89188969999998&destinations=40.6905615%2C-73.9976592%7C40.6905615%2C-73.9976592%7C40.6905615%2C-73.9976592%7C40.6905615%2C-73.9976592%7C40.6905615%2C-73.9976592%7C40.6905615%2C-73.9976592%7C40.659569%2C-73.933783%7C40.729029%2C-73.851524%7C40.6860072%2C-73.6334271%7C40.598566%2C-73.7527626%7C40.659569%2C-73.933783%7C40.729029%2C-73.851524%7C40.6860072%2C-73.6334271%7C40.598566%2C-73.7527626&key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - 'error_message'
        negative: true
# digest: 490a004630440220775296a78b1d7def8da54d4de2f35ab58f41938f6fa1c88064b5066e63be3e750220254d75706178129f950e7d223dc8ddfd0d7353af43f63a9be0cfdc39541f7f4d:922c64590222798bb761d5b6d8e72950