config-defaults-ttl-zero-http-request.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "name": "verify-config-defaults-ttl-zero-http-request",
  3. "settings": {
  4. "storagePermissions": {
  5. "collections": {
  6. "ttl0_download_probe": "read-write",
  7. "files": "read-write"
  8. }
  9. }
  10. },
  11. "nodes": [
  12. {
  13. "id": "n1",
  14. "name": "Trigger",
  15. "type": "click-trigger",
  16. "position": {
  17. "x": 0,
  18. "y": 0
  19. },
  20. "config": {}
  21. },
  22. {
  23. "id": "dl",
  24. "name": "Download",
  25. "type": "http-request",
  26. "position": {
  27. "x": 0,
  28. "y": 100
  29. },
  30. "config": {
  31. "method": "GET",
  32. "url": "{{API}}/index.html",
  33. "responseMode": "binary",
  34. "storeDownload": true,
  35. "downloadCollection": "ttl0_download_probe",
  36. "downloadTtlHours": 0
  37. }
  38. }
  39. ],
  40. "connections": [
  41. {
  42. "sourceNodeId": "n1",
  43. "sourceOutput": "main",
  44. "targetNodeId": "dl",
  45. "targetInput": "data"
  46. }
  47. ],
  48. "expect": {
  49. "dl": {
  50. "status": "completed",
  51. "output": {
  52. "storage": {
  53. "collection": "ttl0_download_probe"
  54. }
  55. }
  56. }
  57. },
  58. "_comment": "The bytes of a stored download go to the file store now, not into the document - so this needs write access to \"files\" as well as to the collection. A document that carried its own base64 made a listing of twenty-five downloads 54 MB."
  59. }