id: api-openweather

info:
  name: OpenWeather API Test
  author: zzeitlin
  severity: info
  reference:
    - https://openweathermap.org/current
  metadata:
    max-request: 1
  tags: token-spray,weather,openweather

self-contained: true

http:
  - method: GET
    path:
      - "https://api.openweathermap.org/data/2.5/weather?q=Chicago&appid={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"coord":'
          - '"weather":'
          - '"base":'
        condition: and
# digest: 4a0a0047304502207db01ef5b165cf19219346ceb81f4207f8b2ac4baca32fc726369062395e723b022100ec0bbc2d0a6ce627952aef44f0cfb48f11d236c69b1f5a0562e181dac33d3f91:922c64590222798bb761d5b6d8e72950