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
eaa3415b
Commit
eaa3415b
authored
Oct 29, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
82156057
e4512b6e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
27 deletions
+28
-27
app/views/search/_filter.html.haml
app/views/search/_filter.html.haml
+2
-2
changelogs/unreleased/270412-license-error-in-template.yml
changelogs/unreleased/270412-license-error-in-template.yml
+5
-0
ee/spec/lib/gitlab/ci/templates/api_fuzzing_gitlab_ci_yaml_spec.rb
...ib/gitlab/ci/templates/api_fuzzing_gitlab_ci_yaml_spec.rb
+2
-2
lib/gitlab/ci/templates/Security/API-Fuzzing.gitlab-ci.yml
lib/gitlab/ci/templates/Security/API-Fuzzing.gitlab-ci.yml
+11
-0
spec/features/search/user_searches_for_code_spec.rb
spec/features/search/user_searches_for_code_spec.rb
+1
-4
spec/features/search/user_searches_for_issues_spec.rb
spec/features/search/user_searches_for_issues_spec.rb
+1
-4
spec/features/search/user_searches_for_merge_requests_spec.rb
.../features/search/user_searches_for_merge_requests_spec.rb
+1
-4
spec/features/search/user_searches_for_milestones_spec.rb
spec/features/search/user_searches_for_milestones_spec.rb
+1
-4
spec/features/search/user_searches_for_wiki_pages_spec.rb
spec/features/search/user_searches_for_wiki_pages_spec.rb
+1
-4
spec/features/search/user_uses_search_filters_spec.rb
spec/features/search/user_uses_search_filters_spec.rb
+3
-3
No files found.
app/views/search/_filter.html.haml
View file @
eaa3415b
...
...
@@ -17,10 +17,10 @@
=
dropdown_content
=
dropdown_loading
.dropdown.
project-filter.form-group.mb-lg-0.mx-lg-1
.dropdown.
form-group.mb-lg-0.mx-lg-1
{
data:
{
testid:
"project-filter"
}
}
%label
.d-block
{
for:
"dashboard_search_project"
}
=
_
(
"Project"
)
%button
.dropdown-menu-toggle.gl-display-inline-flex.js-search-project-dropdown.gl-mt-0
{
type:
"button"
,
id:
"dashboard_search_project"
,
data:
{
toggle:
"dropdown"
,
target:
'.project-filter'
}
}
%button
.dropdown-menu-toggle.gl-display-inline-flex.js-search-project-dropdown.gl-mt-0
{
type:
"button"
,
id:
"dashboard_search_project"
,
data:
{
toggle:
"dropdown"
}
}
%span
.dropdown-toggle-text.gl-flex-grow-1.str-truncated-100
=
@project
&
.
full_name
||
_
(
"Any"
)
-
if
@project
.
present?
...
...
changelogs/unreleased/270412-license-error-in-template.yml
0 → 100644
View file @
eaa3415b
---
title
:
Show error in pipeline when API Fuzzing not licensed
merge_request
:
46064
author
:
type
:
changed
ee/spec/lib/gitlab/ci/templates/api_fuzzing_gitlab_ci_yaml_spec.rb
View file @
eaa3415b
...
...
@@ -47,8 +47,8 @@ RSpec.describe 'API-Fuzzing.gitlab-ci.yml' do
create
(
:ci_variable
,
project:
project
,
key:
'FUZZAPI_TARGET_URL'
,
value:
'http://example.com'
)
end
it
'includes
no jobs
'
do
expect
{
pipeline
}.
to
raise_error
(
Ci
::
CreatePipelineService
::
CreateError
)
it
'includes
job to display error
'
do
expect
(
build_names
).
to
match_array
(
%w[apifuzzer_fuzz_unlicensed]
)
end
end
...
...
lib/gitlab/ci/templates/Security/API-Fuzzing.gitlab-ci.yml
View file @
eaa3415b
...
...
@@ -26,6 +26,17 @@ variables:
FUZZAPI_IMAGE
:
registry.gitlab.com/gitlab-org/security-products/analyzers/api-fuzzing:${FUZZAPI_VERSION}-engine
#
apifuzzer_fuzz_unlicensed
:
stage
:
fuzz
allow_failure
:
true
rules
:
-
if
:
'
$GITLAB_FEATURES
!~
/\bapi_fuzzing\b/
&&
$API_FUZZING_DISABLED
==
null'
-
when
:
never
script
:
-
|
echo "Error: Your GitLab project is not licensed for API Fuzzing."
-
exit
1
apifuzzer_fuzz
:
stage
:
fuzz
image
:
...
...
spec/features/search/user_searches_for_code_spec.rb
View file @
eaa3415b
...
...
@@ -28,10 +28,7 @@ RSpec.describe 'User searches for code' do
before
do
visit
(
search_path
)
find
(
'.js-search-project-dropdown'
).
click
page
.
within
(
'.project-filter'
)
do
click_link
(
project
.
full_name
)
end
find
(
'[data-testid="project-filter"]'
).
click_link
(
project
.
full_name
)
end
include_examples
'top right search form'
...
...
spec/features/search/user_searches_for_issues_spec.rb
View file @
eaa3415b
...
...
@@ -86,10 +86,7 @@ RSpec.describe 'User searches for issues', :js do
context
'when on a project page'
do
it
'finds an issue'
do
find
(
'.js-search-project-dropdown'
).
click
page
.
within
(
'.project-filter'
)
do
click_link
(
project
.
full_name
)
end
find
(
'[data-testid="project-filter"]'
).
click_link
(
project
.
full_name
)
search_for_issue
(
issue1
.
title
)
...
...
spec/features/search/user_searches_for_merge_requests_spec.rb
View file @
eaa3415b
...
...
@@ -31,10 +31,7 @@ RSpec.describe 'User searches for merge requests', :js do
context
'when on a project page'
do
it
'finds a merge request'
do
find
(
'.js-search-project-dropdown'
).
click
page
.
within
(
'.project-filter'
)
do
click_link
(
project
.
full_name
)
end
find
(
'[data-testid="project-filter"]'
).
click_link
(
project
.
full_name
)
fill_in
(
'dashboard_search'
,
with:
merge_request1
.
title
)
find
(
'.btn-search'
).
click
...
...
spec/features/search/user_searches_for_milestones_spec.rb
View file @
eaa3415b
...
...
@@ -31,10 +31,7 @@ RSpec.describe 'User searches for milestones', :js do
context
'when on a project page'
do
it
'finds a milestone'
do
find
(
'.js-search-project-dropdown'
).
click
page
.
within
(
'.project-filter'
)
do
click_link
(
project
.
full_name
)
end
find
(
'[data-testid="project-filter"]'
).
click_link
(
project
.
full_name
)
fill_in
(
'dashboard_search'
,
with:
milestone1
.
title
)
find
(
'.btn-search'
).
click
...
...
spec/features/search/user_searches_for_wiki_pages_spec.rb
View file @
eaa3415b
...
...
@@ -19,10 +19,7 @@ RSpec.describe 'User searches for wiki pages', :js do
shared_examples
'search wiki blobs'
do
it
'finds a page'
do
find
(
'.js-search-project-dropdown'
).
click
page
.
within
(
'.project-filter'
)
do
click_link
(
project
.
full_name
)
end
find
(
'[data-testid="project-filter"]'
).
click_link
(
project
.
full_name
)
fill_in
(
'dashboard_search'
,
with:
search_term
)
find
(
'.btn-search'
).
click
...
...
spec/features/search/user_uses_search_filters_spec.rb
View file @
eaa3415b
...
...
@@ -28,7 +28,7 @@ RSpec.describe 'User uses search filters', :js do
expect
(
find
(
'.js-search-group-dropdown'
)).
to
have_content
(
group
.
name
)
page
.
within
(
'
.project-filter
'
)
do
page
.
within
(
'
[data-testid="project-filter"]
'
)
do
find
(
'.js-search-project-dropdown'
).
click
wait_for_requests
...
...
@@ -57,7 +57,7 @@ RSpec.describe 'User uses search filters', :js do
it
'shows a project'
do
visit
search_path
page
.
within
(
'
.project-filter
'
)
do
page
.
within
(
'
[data-testid="project-filter"]
'
)
do
find
(
'.js-search-project-dropdown'
).
click
wait_for_requests
...
...
@@ -77,7 +77,7 @@ RSpec.describe 'User uses search filters', :js do
describe
'clear filter button'
do
it
'removes Project filters'
do
link
=
find
(
'
.project-filter
.js-search-clear'
)
link
=
find
(
'
[data-testid="project-filter"]
.js-search-clear'
)
params
=
CGI
.
parse
(
URI
.
parse
(
link
[
:href
]).
query
)
expect
(
params
).
not_to
include
(
:project_id
)
...
...
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