|
| 1 | +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing |
| 2 | + |
| 3 | +exports[`Automations API poll does not poll when request lacks a token 1: [body] 1`] = ` |
| 4 | +Object { |
| 5 | + "errors": Array [ |
| 6 | + Object { |
| 7 | + "code": "INVALID_JWT", |
| 8 | + "context": null, |
| 9 | + "details": null, |
| 10 | + "ghostErrorCode": null, |
| 11 | + "help": null, |
| 12 | + "id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/, |
| 13 | + "message": "Invalid token: No token found in URL", |
| 14 | + "property": null, |
| 15 | + "type": "UnauthorizedError", |
| 16 | + }, |
| 17 | + ], |
| 18 | +} |
| 19 | +`; |
| 20 | + |
| 21 | +exports[`Automations API poll does not poll when request lacks a token 2: [headers] 1`] = ` |
| 22 | +Object { |
| 23 | + "access-control-allow-origin": "http://127.0.0.1:2369", |
| 24 | + "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0", |
| 25 | + "content-length": "235", |
| 26 | + "content-type": "application/json; charset=utf-8", |
| 27 | + "content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/, |
| 28 | + "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, |
| 29 | + "vary": "Accept-Version, Origin, Accept-Encoding", |
| 30 | + "x-powered-by": "Express", |
| 31 | +} |
| 32 | +`; |
| 33 | +
|
| 34 | +exports[`Automations API poll does not poll when request token is invalid 1: [body] 1`] = ` |
| 35 | +Object { |
| 36 | + "errors": Array [ |
| 37 | + Object { |
| 38 | + "code": "INVALID_JWT", |
| 39 | + "context": null, |
| 40 | + "details": null, |
| 41 | + "ghostErrorCode": null, |
| 42 | + "help": null, |
| 43 | + "id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/, |
| 44 | + "message": "Invalid token: jwt audience invalid. expected: /\\\\/?admin\\\\/?$/", |
| 45 | + "property": null, |
| 46 | + "type": "UnauthorizedError", |
| 47 | + }, |
| 48 | + ], |
| 49 | +} |
| 50 | +`; |
| 51 | +
|
| 52 | +exports[`Automations API poll does not poll when request token is invalid 2: [headers] 1`] = ` |
| 53 | +Object { |
| 54 | + "access-control-allow-origin": "http://127.0.0.1:2369", |
| 55 | + "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0", |
| 56 | + "content-length": "262", |
| 57 | + "content-type": "application/json; charset=utf-8", |
| 58 | + "content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/, |
| 59 | + "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, |
| 60 | + "vary": "Accept-Version, Origin, Accept-Encoding", |
| 61 | + "x-powered-by": "Express", |
| 62 | +} |
| 63 | +`; |
| 64 | +
|
| 65 | +exports[`Automations API poll triggers a poll with a valid scheduler integration token 1: [headers] 1`] = ` |
| 66 | +Object { |
| 67 | + "access-control-allow-origin": "http://127.0.0.1:2369", |
| 68 | + "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0", |
| 69 | + "content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/, |
| 70 | + "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, |
| 71 | + "vary": "Accept-Version, Origin", |
| 72 | + "x-powered-by": "Express", |
| 73 | +} |
| 74 | +`; |
0 commit comments