Commit 30227d7d authored by Kushal Pandya's avatar Kushal Pandya

Update mock data to include `_links`

parent 1a95152b
...@@ -15,6 +15,12 @@ export const mockNodes = [ ...@@ -15,6 +15,12 @@ export const mockNodes = [
files_max_capacity: 10, files_max_capacity: 10,
repos_max_capacity: 25, repos_max_capacity: 25,
clone_protocol: 'http', clone_protocol: 'http',
_links: {
self: 'http://127.0.0.1:3001/api/v4/geo_nodes/1',
repair: 'http://127.0.0.1:3001/api/v4/geo_nodes/1/repair',
status: 'http://127.0.0.1:3001/api/v4/geo_nodes/1/status',
web_edit: 'http://127.0.0.1:3001/admin/geo_nodes/1/edit',
},
}, },
{ {
id: 2, id: 2,
...@@ -25,9 +31,28 @@ export const mockNodes = [ ...@@ -25,9 +31,28 @@ export const mockNodes = [
files_max_capacity: 10, files_max_capacity: 10,
repos_max_capacity: 25, repos_max_capacity: 25,
clone_protocol: 'http', clone_protocol: 'http',
_links: {
self: 'http://127.0.0.1:3001/api/v4/geo_nodes/2',
repair: 'http://127.0.0.1:3001/api/v4/geo_nodes/2/repair',
status: 'http://127.0.0.1:3001/api/v4/geo_nodes/2/status',
web_edit: 'http://127.0.0.1:3001/admin/geo_nodes/2/edit',
},
}, },
]; ];
export const mockNode = {
id: 1,
url: 'http://127.0.0.1:3001/',
primary: true,
current: true,
enabled: true,
nodeActionActive: false,
basePath: 'http://127.0.0.1:3001/api/v4/geo_nodes/1',
repairPath: 'http://127.0.0.1:3001/api/v4/geo_nodes/1/repair',
statusPath: 'http://127.0.0.1:3001/api/v4/geo_nodes/1/status?refresh=true',
editPath: 'http://127.0.0.1:3001/admin/geo_nodes/1/edit',
};
export const rawMockNodeDetails = { export const rawMockNodeDetails = {
geo_node_id: 2, geo_node_id: 2,
healthy: true, healthy: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment