26 lines
530 B
YAML
26 lines
530 B
YAML
|
id: api-pagerduty
|
||
|
|
||
|
info:
|
||
|
name: Pagerduty API Test
|
||
|
author: zzeitlin
|
||
|
severity: info
|
||
|
reference: https://developer.pagerduty.com/api-reference
|
||
|
tags: token-spray,pagerduty
|
||
|
|
||
|
self-contained: true
|
||
|
requests:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "https://api.pagerduty.com/schedules"
|
||
|
headers:
|
||
|
Accept: application/vnd.pagerduty+json;version=2
|
||
|
Authorization: Token token={{token}}
|
||
|
|
||
|
matchers:
|
||
|
- type: word
|
||
|
part: body
|
||
|
words:
|
||
|
- '"schedules":'
|
||
|
- '"id":'
|
||
|
condition: and
|