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
28200baf
Commit
28200baf
authored
Dec 20, 2021
by
Rémy Coutable
Committed by
Peter Leitzen
Dec 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix QA image by requiring GitlabEdition instead of Gitlab
parent
1c49a215
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
.dockerignore
.dockerignore
+1
-1
config/initializers/0_inject_enterprise_edition_module.rb
config/initializers/0_inject_enterprise_edition_module.rb
+1
-1
qa/Dockerfile
qa/Dockerfile
+1
-1
qa/qa.rb
qa/qa.rb
+1
-1
spec/config/inject_enterprise_edition_module_spec.rb
spec/config/inject_enterprise_edition_module_spec.rb
+1
-1
No files found.
.dockerignore
View file @
28200baf
...
...
@@ -5,7 +5,7 @@
# Following are the files we need:
# - ./config/initializers/0_inject_enterprise_edition_module.rb
# - ./ee/app/models/license.rb
# - ./lib/gitlab.rb
# - ./lib/gitlab
_edition
.rb
# - ./lib/gitlab/utils.rb
# - ./qa/
# - ./INSTALLATION_TYPE
...
...
config/initializers/0_inject_enterprise_edition_module.rb
View file @
28200baf
...
...
@@ -46,7 +46,7 @@ module InjectEnterpriseEditionModule
end
def
each_extension_for
(
constant_name
,
namespace
)
Gitlab
.
extensions
.
each
do
|
extension_name
|
Gitlab
Edition
.
extensions
.
each
do
|
extension_name
|
extension_namespace
=
const_get_maybe_false
(
namespace
,
extension_name
.
upcase
)
...
...
qa/Dockerfile
View file @
28200baf
...
...
@@ -77,7 +77,7 @@ COPY ./config/initializers/0_inject_enterprise_edition_module.rb /home/gitlab/co
# The [b] part makes ./ee/app/models/license.r[b] a pattern that is allowed to return no files (which is the case in FOSS)
COPY
VERSION ./ee/app/models/license.r[b] /home/gitlab/ee/app/models/
COPY
./config/bundler_setup.rb /home/gitlab/config/
COPY
./lib/gitlab.rb /home/gitlab/lib/
COPY
./lib/gitlab
_edition
.rb /home/gitlab/lib/
COPY
./lib/gitlab/utils.rb /home/gitlab/lib/gitlab/
COPY
./INSTALLATION_TYPE ./VERSION /home/gitlab/
...
...
qa/qa.rb
View file @
28200baf
...
...
@@ -2,7 +2,7 @@
Encoding
.
default_external
=
'UTF-8'
require_relative
'../lib/gitlab'
require_relative
'../lib/gitlab
_edition
'
require_relative
'../lib/gitlab/utils'
require_relative
'../config/initializers/0_inject_enterprise_edition_module'
...
...
spec/config/inject_enterprise_edition_module_spec.rb
View file @
28200baf
...
...
@@ -11,7 +11,7 @@ RSpec.describe InjectEnterpriseEditionModule do
before
do
# Make sure we're not relying on which mode we're running under
allow
(
Gitlab
).
to
receive
(
:extensions
).
and_return
([
extension_name
.
downcase
])
allow
(
Gitlab
Edition
).
to
receive
(
:extensions
).
and_return
([
extension_name
.
downcase
])
# Test on an imagined extension and imagined class
stub_const
(
fish_name
,
fish_class
)
# Fish
...
...
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