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
ea48ad9b
Commit
ea48ad9b
authored
Feb 21, 2020
by
David Fernandez
Committed by
Peter Leitzen
Feb 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the `nuget_package_registry` feature flag
parent
f0734412
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
265 additions
and
340 deletions
+265
-340
ee/lib/api/nuget_packages.rb
ee/lib/api/nuget_packages.rb
+0
-1
ee/spec/requests/api/nuget_packages_spec.rb
ee/spec/requests/api/nuget_packages_spec.rb
+265
-329
ee/spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb
...d_examples/requests/api/nuget_packages_shared_examples.rb
+0
-10
No files found.
ee/lib/api/nuget_packages.rb
View file @
ea48ad9b
...
...
@@ -91,7 +91,6 @@ module API
end
resource
:projects
,
requirements:
API
::
NAMESPACE_OR_PROJECT_REQUIREMENTS
do
before
do
not_found!
if
Feature
.
disabled?
(
:nuget_package_registry
,
authorized_user_project
,
default_enabled:
true
)
authorize_packages_feature!
(
authorized_user_project
)
end
...
...
ee/spec/requests/api/nuget_packages_spec.rb
View file @
ea48ad9b
This diff is collapsed.
Click to expand it.
ee/spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb
View file @
ea48ad9b
...
...
@@ -28,16 +28,6 @@ RSpec.shared_examples 'rejects nuget packages access with packages features disa
end
end
RSpec
.
shared_examples
'rejects nuget packages access with feature flag disabled'
do
context
'with feature flag disabled'
do
before
do
stub_feature_flags
(
nuget_package_registry:
{
enabled:
false
,
thing:
project
})
end
it_behaves_like
'rejects nuget packages access'
,
:anonymous
,
:not_found
end
end
RSpec
.
shared_examples
'process nuget service index request'
do
|
user_type
,
status
,
add_member
=
true
|
context
"for user type
#{
user_type
}
"
do
before
do
...
...
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