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
9ec7688d
Commit
9ec7688d
authored
Jun 16, 2021
by
Piotr Skorupa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename UsagePingController to ServicePingController
parent
da3077ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
app/controllers/projects/service_ping_controller.rb
app/controllers/projects/service_ping_controller.rb
+1
-1
spec/controllers/projects/service_ping_controller_spec.rb
spec/controllers/projects/service_ping_controller_spec.rb
+1
-1
spec/routing/project_routing_spec.rb
spec/routing/project_routing_spec.rb
+5
-5
No files found.
app/controllers/projects/
usag
e_ping_controller.rb
→
app/controllers/projects/
servic
e_ping_controller.rb
View file @
9ec7688d
# frozen_string_literal: true
class
Projects::
Usag
ePingController
<
Projects
::
ApplicationController
class
Projects::
Servic
ePingController
<
Projects
::
ApplicationController
before_action
:authenticate_user!
feature_category
:usage_ping
...
...
spec/controllers/projects/
usag
e_ping_controller_spec.rb
→
spec/controllers/projects/
servic
e_ping_controller_spec.rb
View file @
9ec7688d
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
RSpec
.
describe
Projects
::
Usag
ePingController
do
RSpec
.
describe
Projects
::
Servic
ePingController
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
...
...
spec/routing/project_routing_spec.rb
View file @
9ec7688d
...
...
@@ -770,13 +770,13 @@ RSpec.describe 'project routing' do
end
end
describe
Projects
::
Usag
ePingController
,
'routing'
do
it
'routes to
usag
e_ping#web_ide_clientside_preview'
do
expect
(
post
(
'/gitlab/gitlabhq/
usage_ping/web_ide_clientside_preview'
)).
to
route_to
(
'projects/usag
e_ping#web_ide_clientside_preview'
,
namespace_id:
'gitlab'
,
project_id:
'gitlabhq'
)
describe
Projects
::
Servic
ePingController
,
'routing'
do
it
'routes to
servic
e_ping#web_ide_clientside_preview'
do
expect
(
post
(
'/gitlab/gitlabhq/
service_ping/web_ide_clientside_preview'
)).
to
route_to
(
'projects/servic
e_ping#web_ide_clientside_preview'
,
namespace_id:
'gitlab'
,
project_id:
'gitlabhq'
)
end
it
'routes to
usag
e_ping#web_ide_pipelines_count'
do
expect
(
post
(
'/gitlab/gitlabhq/
usage_ping/web_ide_pipelines_count'
)).
to
route_to
(
'projects/usag
e_ping#web_ide_pipelines_count'
,
namespace_id:
'gitlab'
,
project_id:
'gitlabhq'
)
it
'routes to
servic
e_ping#web_ide_pipelines_count'
do
expect
(
post
(
'/gitlab/gitlabhq/
service_ping/web_ide_pipelines_count'
)).
to
route_to
(
'projects/servic
e_ping#web_ide_pipelines_count'
,
namespace_id:
'gitlab'
,
project_id:
'gitlabhq'
)
end
end
...
...
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