Jamie Hannaford | 302c0b6 | 2015-02-16 14:12:34 +0100 | [diff] [blame] | 1 | package backups |
| 2 | |
Jamie Hannaford | e635b7d | 2015-02-18 14:11:46 +0100 | [diff] [blame^] | 3 | var getResp = ` |
Jamie Hannaford | e052473 | 2015-02-16 14:44:13 +0100 | [diff] [blame] | 4 | { |
| 5 | "backup": { |
| 6 | "created": "2014-02-13T21:47:16", |
| 7 | "description": "My Backup", |
| 8 | "id": "61f12fef-edb1-4561-8122-e7c00ef26a82", |
| 9 | "instance_id": "d4603f69-ec7e-4e9b-803f-600b9205576f", |
| 10 | "locationRef": null, |
| 11 | "name": "snapshot", |
| 12 | "parent_id": null, |
| 13 | "size": 100, |
| 14 | "status": "NEW", |
| 15 | "datastore": { |
| 16 | "version": "5.1", |
| 17 | "type": "MySQL", |
| 18 | "version_id": "20000000-0000-0000-0000-000000000002" |
| 19 | }, |
| 20 | "updated": "2014-02-13T21:47:16" |
| 21 | } |
| 22 | } |
| 23 | ` |
| 24 | |
Jamie Hannaford | e635b7d | 2015-02-18 14:11:46 +0100 | [diff] [blame^] | 25 | var createReq = ` |
Jamie Hannaford | 302c0b6 | 2015-02-16 14:12:34 +0100 | [diff] [blame] | 26 | { |
| 27 | "backup": { |
| 28 | "description": "My Backup", |
| 29 | "instance": "d4603f69-ec7e-4e9b-803f-600b9205576f", |
| 30 | "name": "snapshot" |
| 31 | } |
| 32 | } |
| 33 | ` |
| 34 | |
Jamie Hannaford | e635b7d | 2015-02-18 14:11:46 +0100 | [diff] [blame^] | 35 | var createResp = getResp |
Jamie Hannaford | 302c0b6 | 2015-02-16 14:12:34 +0100 | [diff] [blame] | 36 | |
Jamie Hannaford | e635b7d | 2015-02-18 14:11:46 +0100 | [diff] [blame^] | 37 | var listResp = ` |
Jamie Hannaford | 302c0b6 | 2015-02-16 14:12:34 +0100 | [diff] [blame] | 38 | { |
| 39 | "backups": [ |
| 40 | { |
| 41 | "status": "COMPLETED", |
| 42 | "updated": "2014-06-18T21:24:39", |
| 43 | "description": "Backup from Restored Instance", |
Jamie Hannaford | e052473 | 2015-02-16 14:44:13 +0100 | [diff] [blame] | 44 | "datastore": { |
| 45 | "version": "5.1", |
| 46 | "type": "MySQL", |
| 47 | "version_id": "20000000-0000-0000-0000-000000000002" |
| 48 | }, |
Jamie Hannaford | 302c0b6 | 2015-02-16 14:12:34 +0100 | [diff] [blame] | 49 | "id": "87972694-4be2-40f5-83f8-501656e0032a", |
| 50 | "size": 0.141026, |
| 51 | "name": "restored_backup", |
| 52 | "created": "2014-06-18T21:23:35", |
| 53 | "instance_id": "29af2cd9-0674-48ab-b87a-b160f00208e6", |
| 54 | "parent_id": null, |
| 55 | "locationRef": "http://localhost/path/to/backup" |
| 56 | } |
| 57 | ] |
| 58 | } |
| 59 | ` |