Commit 094de202 authored by Gabriel Mazetto's avatar Gabriel Mazetto Committed by Michael Kozono

Fixed geo node mock and schema

Included missing fields, removed non existinting ones
parent 60a48ef7
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
"verification_max_capacity", "verification_max_capacity",
"container_repositories_max_capacity", "container_repositories_max_capacity",
"clone_protocol", "clone_protocol",
"web_edit_url",
"_links" "_links"
], ],
"properties" : { "properties" : {
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
"repos_max_capacity": { "type": "integer" }, "repos_max_capacity": { "type": "integer" },
"verification_max_capacity": { "type": "integer" }, "verification_max_capacity": { "type": "integer" },
"container_repositories_max_capacity": { "type": "integer" }, "container_repositories_max_capacity": { "type": "integer" },
"sync_object_storage" : { "type": "boolean" },
"clone_protocol": { "type": "string" }, "clone_protocol": { "type": "string" },
"web_edit_url": { "type": "string" }, "web_edit_url": { "type": "string" },
"web_geo_projects_url" : { "type": ["string", "null"] }, "web_geo_projects_url" : { "type": ["string", "null"] },
......
...@@ -15,12 +15,13 @@ export const mockNodes = [ ...@@ -15,12 +15,13 @@ export const mockNodes = [
files_max_capacity: 10, files_max_capacity: 10,
repos_max_capacity: 25, repos_max_capacity: 25,
container_repositories_max_capacity: 10, container_repositories_max_capacity: 10,
verification_max_capacity: 100,
clone_protocol: 'http', clone_protocol: 'http',
web_edit_url: 'http://127.0.0.1:3001/admin/geo/nodes/1/edit',
_links: { _links: {
self: 'http://127.0.0.1:3001/api/v4/geo_nodes/1', 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', 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', 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',
}, },
}, },
{ {
...@@ -32,12 +33,14 @@ export const mockNodes = [ ...@@ -32,12 +33,14 @@ export const mockNodes = [
files_max_capacity: 10, files_max_capacity: 10,
repos_max_capacity: 25, repos_max_capacity: 25,
container_repositories_max_capacity: 10, container_repositories_max_capacity: 10,
verification_max_capacity: 100,
sync_object_storage: true,
clone_protocol: 'http', clone_protocol: 'http',
web_edit_url: 'http://127.0.0.1:3001/admin/geo/nodes/1/edit',
_links: { _links: {
self: 'http://127.0.0.1:3001/api/v4/geo_nodes/2', 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', 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', 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',
}, },
}, },
]; ];
......
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