Merge pull request #2978 from dwisiswant0/add/api-dbt

Add dbt Cloud API test
patch-1
Prince Chaddha 2021-10-25 12:59:47 +05:30 committed by GitHub
commit a3a4949d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions

26
token-spray/api-dbt.yaml Normal file
View File

@ -0,0 +1,26 @@
id: api-dbt
info:
name: dbt Cloud API Test
author: dwisiswant0
severity: info
reference: https://docs.getdbt.com/docs/introduction
tags: token-spray,dbt
self-contained: true
requests:
- 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."
condition: or
negative: true