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
81883a09
Commit
81883a09
authored
Mar 31, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added mock data for Deployboard
parent
c3c4dfc0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
0 deletions
+93
-0
app/models/project_services/mock_deployment_service.rb
app/models/project_services/mock_deployment_service.rb
+15
-0
changelogs/unreleased-ee/added-mock-data-for-deployboard.yml
changelogs/unreleased-ee/added-mock-data-for-deployboard.yml
+4
-0
spec/fixtures/rollout_status_instances.json
spec/fixtures/rollout_status_instances.json
+74
-0
No files found.
app/models/project_services/mock_deployment_service.rb
View file @
81883a09
...
...
@@ -15,4 +15,19 @@ class MockDeploymentService < DeploymentService
def
terminals
(
environment
)
[]
end
def
rollout_status
(
environment
)
OpenStruct
.
new
(
instances:
rollout_status_instances
,
completion:
80
,
valid?:
true
,
complete?:
true
)
end
private
def
rollout_status_instances
JSON
.
parse
(
File
.
read
(
Rails
.
root
+
'spec/fixtures/rollout_status_instances.json'
))
end
end
changelogs/unreleased-ee/added-mock-data-for-deployboard.yml
0 → 100644
View file @
81883a09
---
title
:
Added mock data for Deployboard
merge_request
:
author
:
spec/fixtures/rollout_status_instances.json
0 → 100644
View file @
81883a09
[
{
"status"
:
"finished"
,
"tooltip"
:
"production (pod 0) Finished"
,
"track"
:
"stable"
,
"stable"
:
true
},
{
"status"
:
"deploying"
,
"tooltip"
:
"production (pod 1) Deploying"
,
"track"
:
"stable"
,
"stable"
:
true
},
{
"status"
:
"failed"
,
"tooltip"
:
"production (pod 2) Failed"
,
"track"
:
"stable"
,
"stable"
:
true
},
{
"status"
:
"ready"
,
"tooltip"
:
"production (pod 3) Ready"
,
"track"
:
"stable"
,
"stable"
:
true
},
{
"status"
:
"preparing"
,
"tooltip"
:
"production (pod 4) Preparing"
,
"track"
:
"stable"
,
"stable"
:
true
},
{
"status"
:
"waiting"
,
"tooltip"
:
"production (pod 5) Waiting"
,
"track"
:
"stable"
,
"stable"
:
true
},
{
"status"
:
"finished"
,
"tooltip"
:
"production-canary (pod 0) Finished"
,
"track"
:
"canary"
,
"stable"
:
false
},
{
"status"
:
"deploying"
,
"tooltip"
:
"production-canary (pod 1) Deploying"
,
"track"
:
"canary"
,
"stable"
:
false
},
{
"status"
:
"failed"
,
"tooltip"
:
"production-canary (pod 2) Failed"
,
"track"
:
"canary"
,
"stable"
:
false
},
{
"status"
:
"ready"
,
"tooltip"
:
"production-canary (pod 3) Ready"
,
"track"
:
"canary"
,
"stable"
:
false
},
{
"status"
:
"preparing"
,
"tooltip"
:
"production-canary (pod 4) Preparing"
,
"track"
:
"canary"
,
"stable"
:
false
},
{
"status"
:
"waiting"
,
"tooltip"
:
"production-canary (pod 5) Waiting"
,
"track"
:
"canary"
,
"stable"
:
false
}
]
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