id: api-dbt

info:
  name: dbt Cloud API - Test
  author: dwisiswant0
  severity: info
  description: dbt Cloud API test was conducted.
  reference:
    - https://docs.getdbt.com/docs/introduction
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: token-spray,dbt

self-contained: true

http:
  - method: GET
    path:
      - "https://cloud.getdbt.com/api/v2/accounts/"

    headers:
      Content-Type: application/json
      Authorization: Token {{token}}
    matchers:
      - type: word
        part: body
        words:
          - "Invalid token"
          - "Authentication credentials were not provided."
          - "User API Keys are deprecated"
        condition: or
        negative: true
# digest: 4b0a00483046022100db62b23293757aa17c918a014759fcfa297f688e4ffa61ea667dc46eec1ce39d022100cd961e8d1a0036ebc11769f20839a514d9211723cff8b518f6d1d34fc397661e:922c64590222798bb761d5b6d8e72950