Spaces:
Running
Running
Download test-cases.json from intsoft/comenta-webhooks-hmac: direct link, hf CLI and curl.
- Browser
- Download file 930 Bytes
-
https://huggingface.co/spaces/intsoft/comenta-webhooks-hmac/resolve/main/test-cases.json
- Command line
-
hf download hf://spaces/intsoft/comenta-webhooks-hmac/test-cases.json
-
curl -L -o test-cases.json https://huggingface.co/spaces/intsoft/comenta-webhooks-hmac/resolve/main/test-cases.json
930 Bytes
| { | |
| "function": "webhook", | |
| "cases": [ | |
| { | |
| "name": "Exemplo padrão da interface", | |
| "args": [ | |
| "{\"event\":\"conversation.resolved\",\"id\":\"exemplo-01\"}", | |
| "chave-ficticia-para-teste", | |
| "", | |
| "4" | |
| ], | |
| "object": true | |
| }, | |
| { | |
| "args": [ | |
| "{\"a\":1}", | |
| "chave-ficticia", | |
| "", | |
| "3" | |
| ], | |
| "path": "plano_retry_segundos.2", | |
| "equals": 20 | |
| }, | |
| { | |
| "args": [ | |
| "{\"a\":1}", | |
| "chave-ficticia", | |
| "0000000000000000000000000000000000000000000000000000000000000000", | |
| "3" | |
| ], | |
| "path": "assinatura_informada_valida", | |
| "equals": false | |
| }, | |
| { | |
| "args": [ | |
| "not json", | |
| "chave-ficticia", | |
| "", | |
| "3" | |
| ], | |
| "error": true | |
| }, | |
| { | |
| "args": [ | |
| "{}", | |
| "short", | |
| "", | |
| "3" | |
| ], | |
| "error": true | |
| } | |
| ] | |
| } |