Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
30227d7d
Commit
30227d7d
authored
Mar 06, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mock data to include `_links`
parent
1a95152b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
spec/javascripts/geo_nodes/mock_data.js
spec/javascripts/geo_nodes/mock_data.js
+25
-0
No files found.
spec/javascripts/geo_nodes/mock_data.js
View file @
30227d7d
...
...
@@ -15,6 +15,12 @@ export const mockNodes = [
files_max_capacity
:
10
,
repos_max_capacity
:
25
,
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
,
...
...
@@ -25,9 +31,28 @@ export const mockNodes = [
files_max_capacity
:
10
,
repos_max_capacity
:
25
,
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
=
{
geo_node_id
:
2
,
healthy
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment