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
b77e4e14
Commit
b77e4e14
authored
Jul 10, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use proper path helpers
parent
a590e0d7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
15 deletions
+13
-15
ee/app/views/projects/dast_profiles/index.html.haml
ee/app/views/projects/dast_profiles/index.html.haml
+1
-1
ee/app/views/projects/dast_site_profiles/new.html.haml
ee/app/views/projects/dast_site_profiles/new.html.haml
+2
-2
ee/spec/requests/projects/dast_profiles_controller_spec.rb
ee/spec/requests/projects/dast_profiles_controller_spec.rb
+5
-6
ee/spec/requests/projects/dast_site_profiles_controller_spec.rb
...c/requests/projects/dast_site_profiles_controller_spec.rb
+5
-6
No files found.
ee/app/views/projects/dast_profiles/index.html.haml
View file @
b77e4e14
-
add_to_breadcrumbs
s_
(
'OnDemandScans|On-demand Scans'
),
namespace_project_on_demand_scans_path
(
@project
.
group
,
@project
)
-
add_to_breadcrumbs
s_
(
'OnDemandScans|On-demand Scans'
),
project_on_demand_scans_path
(
@project
)
-
breadcrumb_title
s_
(
'DastProfiles|Manage profiles'
)
-
page_title
s_
(
'DastProfiles|Manage profiles'
)
...
...
ee/app/views/projects/dast_site_profiles/new.html.haml
View file @
b77e4e14
-
add_to_breadcrumbs
s_
(
'OnDemandScans|On-demand Scans'
),
namespace_project_on_demand_scans_path
(
@project
.
group
,
@project
)
-
add_to_breadcrumbs
s_
(
'DastProfiles|Manage profiles'
),
namespace_project_profiles_path
(
@project
.
group
,
@project
)
-
add_to_breadcrumbs
s_
(
'OnDemandScans|On-demand Scans'
),
project_on_demand_scans_path
(
@project
)
-
add_to_breadcrumbs
s_
(
'DastProfiles|Manage profiles'
),
project_profiles_path
(
@project
)
-
breadcrumb_title
s_
(
'DastProfiles|New site profile'
)
-
page_title
s_
(
'DastProfiles|New site profile'
)
...
...
ee/spec/requests/projects/dast_profiles_controller_spec.rb
View file @
b77e4e14
...
...
@@ -3,8 +3,7 @@
require
'spec_helper'
RSpec
.
describe
Projects
::
DastProfilesController
,
type: :request
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
namespace:
group
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
describe
'GET #index'
do
...
...
@@ -22,7 +21,7 @@ RSpec.describe Projects::DastProfilesController, type: :request do
end
it
'can access page'
do
get
namespace_project_profiles_path
(
project
.
group
,
project
)
get
project_profiles_path
(
project
)
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
end
...
...
@@ -36,7 +35,7 @@ RSpec.describe Projects::DastProfilesController, type: :request do
end
it
'sees a 404 error'
do
get
namespace_project_profiles_path
(
project
.
group
,
project
)
get
project_profiles_path
(
project
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
...
...
@@ -54,7 +53,7 @@ RSpec.describe Projects::DastProfilesController, type: :request do
it
'sees a 404 error'
do
stub_feature_flags
(
security_on_demand_scans_feature_flag:
false
)
stub_licensed_features
(
security_on_demand_scans:
true
)
get
namespace_project_profiles_path
(
project
.
group
,
project
)
get
project_profiles_path
(
project
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
...
...
@@ -64,7 +63,7 @@ RSpec.describe Projects::DastProfilesController, type: :request do
it
'sees a 404 error'
do
stub_feature_flags
(
security_on_demand_scans_feature_flag:
true
)
stub_licensed_features
(
security_on_demand_scans:
false
)
get
namespace_project_profiles_path
(
project
.
group
,
project
)
get
project_profiles_path
(
project
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
...
...
ee/spec/requests/projects/dast_site_profiles_controller_spec.rb
View file @
b77e4e14
...
...
@@ -3,8 +3,7 @@
require
'spec_helper'
RSpec
.
describe
Projects
::
DastSiteProfilesController
,
type: :request
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
namespace:
group
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
create
(
:user
)
}
describe
'GET #new'
do
...
...
@@ -22,7 +21,7 @@ RSpec.describe Projects::DastSiteProfilesController, type: :request do
end
it
'can access page'
do
get
namespace_project_profiles_path
(
project
.
group
,
project
)
get
project_profiles_path
(
project
)
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
end
...
...
@@ -36,7 +35,7 @@ RSpec.describe Projects::DastSiteProfilesController, type: :request do
end
it
'sees a 404 error'
do
get
namespace_project_profiles_path
(
project
.
group
,
project
)
get
project_profiles_path
(
project
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
...
...
@@ -54,7 +53,7 @@ RSpec.describe Projects::DastSiteProfilesController, type: :request do
it
'sees a 404 error'
do
stub_feature_flags
(
security_on_demand_scans_feature_flag:
false
)
stub_licensed_features
(
security_on_demand_scans:
true
)
get
namespace_project_profiles_path
(
project
.
group
,
project
)
get
project_profiles_path
(
project
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
end
...
...
@@ -64,7 +63,7 @@ RSpec.describe Projects::DastSiteProfilesController, type: :request do
it
'sees a 404 error'
do
stub_feature_flags
(
security_on_demand_scans_feature_flag:
true
)
stub_licensed_features
(
security_on_demand_scans:
false
)
get
namespace_project_profiles_path
(
project
.
group
,
project
)
get
project_profiles_path
(
project
)
expect
(
response
).
to
have_gitlab_http_status
(
:not_found
)
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