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
70facf5f
Commit
70facf5f
authored
Apr 09, 2020
by
Emily Ring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated error exception for cluster_type_label
parent
98f64710
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/helpers/clusters_helper.rb
app/helpers/clusters_helper.rb
+1
-1
spec/helpers/clusters_helper_spec.rb
spec/helpers/clusters_helper_spec.rb
+1
-1
No files found.
app/helpers/clusters_helper.rb
View file @
70facf5f
...
...
@@ -50,7 +50,7 @@ module ClustersHelper
when
'instance_type'
s_
(
'ClusterIntegration|Instance cluster'
)
else
Gitlab
::
ErrorTracking
.
track_exception
(
Gitlab
::
ErrorTracking
.
track_
and_raise_for_dev_
exception
(
ArgumentError
.
new
(
'Cluster Type Missing'
),
cluster_error:
{
error:
'Cluster Type Missing'
,
cluster_type:
cluster_type
}
)
...
...
spec/helpers/clusters_helper_spec.rb
View file @
70facf5f
...
...
@@ -84,7 +84,7 @@ describe ClustersHelper do
let
(
:cluster_type
)
{
'not_supported'
}
it
'Diplays generic cluster and reports error'
do
expect
(
Gitlab
::
ErrorTracking
).
to
receive
(
:track_exception
).
with
(
expect
(
Gitlab
::
ErrorTracking
).
to
receive
(
:track_
and_raise_for_dev_
exception
).
with
(
an_instance_of
(
ArgumentError
),
cluster_error:
{
error:
'Cluster Type Missing'
,
cluster_type:
'not_supported'
}
)
...
...
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