blob: c6244e297bef97179a023ed5fa9ee9a8e2aa0dbc [file] [log] [blame]
Jamie Hannaford302c0b62015-02-16 14:12:34 +01001package backups
2
Jamie Hannaforde635b7d2015-02-18 14:11:46 +01003var getResp = `
Jamie Hannaforde0524732015-02-16 14:44:13 +01004{
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 Hannaforde635b7d2015-02-18 14:11:46 +010025var createReq = `
Jamie Hannaford302c0b62015-02-16 14:12:34 +010026{
27 "backup": {
28 "description": "My Backup",
29 "instance": "d4603f69-ec7e-4e9b-803f-600b9205576f",
30 "name": "snapshot"
31 }
32}
33`
34
Jamie Hannaforde635b7d2015-02-18 14:11:46 +010035var createResp = getResp
Jamie Hannaford302c0b62015-02-16 14:12:34 +010036
Jamie Hannaforde635b7d2015-02-18 14:11:46 +010037var listResp = `
Jamie Hannaford302c0b62015-02-16 14:12:34 +010038{
39 "backups": [
40 {
41 "status": "COMPLETED",
42 "updated": "2014-06-18T21:24:39",
43 "description": "Backup from Restored Instance",
Jamie Hannaforde0524732015-02-16 14:44:13 +010044 "datastore": {
45 "version": "5.1",
46 "type": "MySQL",
47 "version_id": "20000000-0000-0000-0000-000000000002"
48 },
Jamie Hannaford302c0b62015-02-16 14:12:34 +010049 "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`