|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`Backup Integration Backup API Backup Integration Can create a DB backup 1: [body] 1`] = ` |
| 4 | +Object { |
| 5 | + "db": Array [ |
| 6 | + Object { |
| 7 | + "filename": StringMatching /ghost-test\\\\/data\\\\/test\\\\\\.json\\$/, |
| 8 | + }, |
| 9 | + ], |
| 10 | +} |
| 11 | +`; |
| 12 | + |
| 13 | +exports[`Backup Integration Backup API Backup Integration Can create a DB backup 2: [headers] 1`] = ` |
| 14 | +Object { |
| 15 | + "access-control-allow-origin": "http://127.0.0.1:2369", |
| 16 | + "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0", |
| 17 | + "content-length": StringMatching /\\\\d\\+/, |
| 18 | + "content-type": "application/json; charset=utf-8", |
| 19 | + "content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/, |
| 20 | + "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, |
| 21 | + "vary": "Accept-Version, Origin, Accept-Encoding", |
| 22 | + "x-powered-by": "Express", |
| 23 | +} |
| 24 | +`; |
| 25 | +
|
| 26 | +exports[`Backup Integration Backup API Editor: User authentication Cannot create a DB backup 1: [body] 1`] = ` |
| 27 | +Object { |
| 28 | + "errors": Array [ |
| 29 | + Object { |
| 30 | + "code": null, |
| 31 | + "context": null, |
| 32 | + "details": null, |
| 33 | + "ghostErrorCode": null, |
| 34 | + "help": null, |
| 35 | + "id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/, |
| 36 | + "message": "You do not have permission to backupContent db", |
| 37 | + "property": null, |
| 38 | + "type": "NoPermissionError", |
| 39 | + }, |
| 40 | + ], |
| 41 | +} |
| 42 | +`; |
| 43 | +
|
| 44 | +exports[`Backup Integration Backup API Editor: User authentication Cannot create a DB backup 2: [headers] 1`] = ` |
| 45 | +Object { |
| 46 | + "access-control-allow-origin": "http://127.0.0.1:2369", |
| 47 | + "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0", |
| 48 | + "content-length": "236", |
| 49 | + "content-type": "application/json; charset=utf-8", |
| 50 | + "content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/, |
| 51 | + "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, |
| 52 | + "vary": "Accept-Version, Origin, Accept-Encoding", |
| 53 | + "x-powered-by": "Express", |
| 54 | +} |
| 55 | +`; |
| 56 | +
|
| 57 | +exports[`Backup Integration Backup API Owner: User authentication Can create a DB backup 1: [body] 1`] = ` |
| 58 | +Object { |
| 59 | + "db": Array [ |
| 60 | + Object { |
| 61 | + "filename": StringMatching /ghost-test\\\\/data\\\\/test\\\\\\.json\\$/, |
| 62 | + }, |
| 63 | + ], |
| 64 | +} |
| 65 | +`; |
| 66 | +
|
| 67 | +exports[`Backup Integration Backup API Owner: User authentication Can create a DB backup 2: [headers] 1`] = ` |
| 68 | +Object { |
| 69 | + "access-control-allow-origin": "http://127.0.0.1:2369", |
| 70 | + "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0", |
| 71 | + "content-length": StringMatching /\\\\d\\+/, |
| 72 | + "content-type": "application/json; charset=utf-8", |
| 73 | + "content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/, |
| 74 | + "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, |
| 75 | + "vary": "Accept-Version, Origin, Accept-Encoding", |
| 76 | + "x-powered-by": "Express", |
| 77 | +} |
| 78 | +`; |
| 79 | +
|
| 80 | +exports[`Backup Integration Backup API Zapier Integration Cannot create a DB backup 1: [body] 1`] = ` |
| 81 | +Object { |
| 82 | + "errors": Array [ |
| 83 | + Object { |
| 84 | + "code": null, |
| 85 | + "context": null, |
| 86 | + "details": null, |
| 87 | + "ghostErrorCode": null, |
| 88 | + "help": null, |
| 89 | + "id": StringMatching /\\[a-f0-9\\]\\{8\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{4\\}-\\[a-f0-9\\]\\{12\\}/, |
| 90 | + "message": "You do not have permission to backupContent db", |
| 91 | + "property": null, |
| 92 | + "type": "NoPermissionError", |
| 93 | + }, |
| 94 | + ], |
| 95 | +} |
| 96 | +`; |
| 97 | +
|
| 98 | +exports[`Backup Integration Backup API Zapier Integration Cannot create a DB backup 2: [headers] 1`] = ` |
| 99 | +Object { |
| 100 | + "access-control-allow-origin": "http://127.0.0.1:2369", |
| 101 | + "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0", |
| 102 | + "content-length": StringMatching /\\\\d\\+/, |
| 103 | + "content-type": "application/json; charset=utf-8", |
| 104 | + "content-version": StringMatching /v\\\\d\\+\\\\\\.\\\\d\\+/, |
| 105 | + "etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/, |
| 106 | + "vary": "Accept-Version, Origin, Accept-Encoding", |
| 107 | + "x-powered-by": "Express", |
| 108 | +} |
| 109 | +`; |
0 commit comments