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
118a7b9a
Commit
118a7b9a
authored
Dec 25, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move stub_packages_object_storage to ee helper
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
505adfc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
ee/spec/support/helpers/ee/stub_object_storage.rb
ee/spec/support/helpers/ee/stub_object_storage.rb
+10
-0
spec/support/helpers/stub_object_storage.rb
spec/support/helpers/stub_object_storage.rb
+2
-7
No files found.
ee/spec/support/helpers/ee/stub_object_storage.rb
0 → 100644
View file @
118a7b9a
module
EE
module
StubObjectStorage
def
stub_packages_object_storage
(
**
params
)
stub_object_storage_uploader
(
config:
::
Gitlab
.
config
.
packages
.
object_store
,
uploader:
::
Packages
::
PackageFileUploader
,
remote_directory:
'packages'
,
**
params
)
end
end
end
spec/support/helpers/stub_object_storage.rb
View file @
118a7b9a
module
StubObjectStorage
module
StubObjectStorage
prepend
EE
::
StubObjectStorage
def
stub_object_storage_uploader
(
def
stub_object_storage_uploader
(
config
:,
config
:,
uploader
:,
uploader
:,
...
@@ -72,11 +74,4 @@ module StubObjectStorage
...
@@ -72,11 +74,4 @@ module StubObjectStorage
stub_object_storage
(
connection_params:
Pseudonymizer
::
Uploader
.
object_store_credentials
,
stub_object_storage
(
connection_params:
Pseudonymizer
::
Uploader
.
object_store_credentials
,
remote_directory:
Pseudonymizer
::
Uploader
.
remote_directory
)
remote_directory:
Pseudonymizer
::
Uploader
.
remote_directory
)
end
end
def
stub_packages_object_storage
(
**
params
)
stub_object_storage_uploader
(
config:
Gitlab
.
config
.
packages
.
object_store
,
uploader:
::
Packages
::
PackageFileUploader
,
remote_directory:
'packages'
,
**
params
)
end
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