Lint / golangci-lint (push) Waiting to run
Lint / semgrep (push) Waiting to run
Release / Release (push) Waiting to run
Scan for secrets / test (push) Waiting to run
Test / test (push) Waiting to run
Test / test-community (push) Waiting to run
### Description: Since `Notion.co` allows to enable [capabilities](https://developers.notion.com/reference/capabilities) against integration token, It is a good candidate to build an analyzer for it.  This PR implements notion analyzer along with its integration test. ### Checklist: * [ ] Tests passing (`make test-community`)? * [x] Lint passing (`make lint` this requires [golangci-lint](https://golangci-lint.run/welcome/install/#local-installation))?
47 lines
1.2 KiB
JSON
47 lines
1.2 KiB
JSON
[
|
|
{
|
|
"name": "read_content",
|
|
"test": {
|
|
"endpoint": "https://api.notion.com/v1/pages/`nowaythiscanexist",
|
|
"method": "GET",
|
|
"valid_status_code": [400],
|
|
"invalid_status_code": [403]
|
|
}
|
|
},
|
|
{
|
|
"name": "update_content",
|
|
"test": {
|
|
"endpoint": "https://api.notion.com/v1/pages/`nowaythiscanexist",
|
|
"method": "PATCH",
|
|
"valid_status_code": [400],
|
|
"invalid_status_code": [403]
|
|
}
|
|
},
|
|
{
|
|
"name": "insert_content",
|
|
"test": {
|
|
"endpoint": "https://api.notion.com/v1/pages",
|
|
"method": "POST",
|
|
"valid_status_code": [400],
|
|
"invalid_status_code": [403]
|
|
}
|
|
},
|
|
{
|
|
"name": "read_comments",
|
|
"test": {
|
|
"endpoint": "https://api.notion.com/v1/comments",
|
|
"method": "GET",
|
|
"valid_status_code": [400],
|
|
"invalid_status_code": [403]
|
|
}
|
|
},
|
|
{
|
|
"name": "insert_comments",
|
|
"test": {
|
|
"endpoint": "https://api.notion.com/v1/comments",
|
|
"method": "POST",
|
|
"valid_status_code": [400],
|
|
"invalid_status_code": [403]
|
|
}
|
|
}
|
|
] |