Merge pull request #2965 from dwisiswant0/add/api-fortitoken-cloud

Add FortiToken Cloud API test
patch-1
Sandeep Singh 2021-10-24 10:19:12 +05:30 committed by GitHub
commit 968457dba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
id: api-fortitoken-cloud
info:
name: FortiToken Cloud API Test
author: dwisiswant0
reference: https://docs.fortinet.com/document/fortitoken-cloud/latest/rest-api/456035/overview
severity: info
tags: token-spray,fortinet
self-contained: true
requests:
- method: GET
path:
- "https://ftc.fortinet.com:9696/api/v1/user"
headers:
Authorization: Bearer {{token}}
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: regex
part: body
regex:
- "error_(code|message|name)"
negative: true