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
30d7ea14
Commit
30d7ea14
authored
Jan 08, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mock data for Geo Nodes app tests
parent
53b06311
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
172 additions
and
0 deletions
+172
-0
spec/javascripts/geo_nodes/mock_data.js
spec/javascripts/geo_nodes/mock_data.js
+172
-0
No files found.
spec/javascripts/geo_nodes/mock_data.js
0 → 100644
View file @
30d7ea14
export
const
PRIMARY_VERSION
=
{
version
:
'
10.4.0-pre
'
,
revision
:
'
b93c51849b
'
,
};
export
const
NODE_DETAILS_PATH
=
'
/admin/geo_nodes
'
;
export
const
mockNodes
=
[
{
id
:
1
,
url
:
'
http://127.0.0.1:3001/
'
,
primary
:
true
,
enabled
:
true
,
current
:
true
,
files_max_capacity
:
10
,
repos_max_capacity
:
25
,
clone_protocol
:
'
http
'
,
},
{
id
:
2
,
url
:
'
http://127.0.0.1:3002/
'
,
primary
:
false
,
enabled
:
true
,
current
:
false
,
files_max_capacity
:
10
,
repos_max_capacity
:
25
,
clone_protocol
:
'
http
'
,
},
];
export
const
rawMockNodeDetails
=
{
geo_node_id
:
2
,
healthy
:
true
,
health
:
'
Healthy
'
,
health_status
:
'
Healthy
'
,
missing_oauth_application
:
false
,
attachments_count
:
0
,
attachments_synced_count
:
0
,
attachments_failed_count
:
0
,
attachments_synced_in_percentage
:
'
0.00%
'
,
db_replication_lag_seconds
:
0
,
lfs_objects_count
:
0
,
lfs_objects_synced_count
:
0
,
lfs_objects_failed_count
:
0
,
lfs_objects_synced_in_percentage
:
'
0.00%
'
,
repositories_count
:
12
,
repositories_failed_count
:
0
,
repositories_synced_count
:
12
,
repositories_synced_in_percentage
:
'
100.00%
'
,
wikis_count
:
12
,
wikis_failed_count
:
0
,
wikis_synced_count
:
12
,
wikis_synced_in_percentage
:
'
100.00%
'
,
replication_slots_count
:
null
,
replication_slots_used_count
:
null
,
replication_slots_used_in_percentage
:
'
0.00%
'
,
replication_slots_max_retained_wal_bytes
:
null
,
last_event_id
:
3
,
last_event_timestamp
:
1511255200
,
cursor_last_event_id
:
3
,
cursor_last_event_timestamp
:
1511255200
,
last_successful_status_check_timestamp
:
1515142330
,
version
:
'
10.4.0-pre
'
,
revision
:
'
b93c51849b
'
,
namespaces
:
[
{
id
:
54
,
name
:
'
platform
'
,
path
:
'
platform
'
,
kind
:
'
group
'
,
full_path
:
'
platform
'
,
parent_id
:
null
,
},
{
id
:
4
,
name
:
'
Twitter
'
,
path
:
'
twitter
'
,
kind
:
'
group
'
,
full_path
:
'
twitter
'
,
parent_id
:
null
,
},
{
id
:
3
,
name
:
'
Documentcloud
'
,
path
:
'
documentcloud
'
,
kind
:
'
group
'
,
full_path
:
'
documentcloud
'
,
parent_id
:
null
,
},
],
storage_shards
:
[
{
name
:
'
default
'
,
path
:
'
/home/kushal/GitLab/geo/repositorie
'
,
},
],
storage_shards_match
:
false
,
};
export
const
mockNodeDetails
=
{
id
:
2
,
health
:
'
Healthy
'
,
healthy
:
true
,
healthStatus
:
'
Healthy
'
,
version
:
'
10.4.0-pre
'
,
revision
:
'
b93c51849b
'
,
primaryVersion
:
'
10.4.0-pre
'
,
primaryRevision
:
'
b93c51849b
'
,
replicationSlotWAL
:
null
,
missingOAuthApplication
:
false
,
storageShardsMatch
:
false
,
replicationSlots
:
{
totalCount
:
null
,
successCount
:
null
,
failureCount
:
0
,
},
repositories
:
{
totalCount
:
12
,
successCount
:
12
,
failureCount
:
0
,
},
wikis
:
{
totalCount
:
12
,
successCount
:
12
,
failureCount
:
0
,
},
lfs
:
{
totalCount
:
0
,
successCount
:
0
,
failureCount
:
0
,
},
attachments
:
{
totalCount
:
0
,
successCount
:
0
,
failureCount
:
0
,
},
lastEvent
:
{
id
:
3
,
timeStamp
:
1511255200
,
},
cursorLastEvent
:
{
id
:
3
,
timeStamp
:
1511255200
,
},
namespaces
:
[
{
id
:
54
,
name
:
'
platform
'
,
path
:
'
platform
'
,
kind
:
'
group
'
,
full_path
:
'
platform
'
,
parent_id
:
null
,
},
{
id
:
4
,
name
:
'
Twitter
'
,
path
:
'
twitter
'
,
kind
:
'
group
'
,
full_path
:
'
twitter
'
,
parent_id
:
null
,
},
{
id
:
3
,
name
:
'
Documentcloud
'
,
path
:
'
documentcloud
'
,
kind
:
'
group
'
,
full_path
:
'
documentcloud
'
,
parent_id
:
null
,
},
],
dbReplicationLag
:
0
,
};
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