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
5d67fa9c
Commit
5d67fa9c
authored
Mar 07, 2022
by
Sanad Liaquat
Committed by
Mark Lapierre
Mar 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not delete shared resource on live environments
parent
da9f22f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
qa/qa/resource/reusable_group.rb
qa/qa/resource/reusable_group.rb
+1
-1
qa/qa/resource/reusable_project.rb
qa/qa/resource/reusable_project.rb
+1
-1
qa/qa/runtime/env.rb
qa/qa/runtime/env.rb
+8
-0
qa/spec/spec_helper.rb
qa/spec/spec_helper.rb
+2
-1
No files found.
qa/qa/resource/reusable_group.rb
View file @
5d67fa9c
...
...
@@ -8,7 +8,7 @@ module QA
def
initialize
super
@name
=
@path
=
'reusable_group'
@name
=
@path
=
QA
::
Runtime
::
Env
.
reusable_group_path
@description
=
"QA reusable group"
@reuse_as
=
:default_group
end
...
...
qa/qa/resource/reusable_project.rb
View file @
5d67fa9c
...
...
@@ -15,7 +15,7 @@ module QA
super
@add_name_uuid
=
false
@name
=
@path
=
'reusable_project'
@name
=
@path
=
QA
::
Runtime
::
Env
.
reusable_project_path
@reuse_as
=
:default_project
@initialize_with_readme
=
true
end
...
...
qa/qa/runtime/env.rb
View file @
5d67fa9c
...
...
@@ -404,6 +404,14 @@ module QA
ENV
.
fetch
(
'GITLAB_QA_LOOP_RUNNER_MINUTES'
,
1
).
to_i
end
def
reusable_project_path
ENV
.
fetch
(
'QA_REUSABLE_PROJECT_PATH'
,
'reusable_project'
)
end
def
reusable_group_path
ENV
.
fetch
(
'QA_REUSABLE_GROUP_PATH'
,
'reusable_group'
)
end
def
mailhog_hostname
ENV
[
'MAILHOG_HOSTNAME'
]
end
...
...
qa/spec/spec_helper.rb
View file @
5d67fa9c
...
...
@@ -76,7 +76,8 @@ RSpec.configure do |config|
QA
::
Resource
::
ReusableCollection
.
validate_resource_reuse
if
QA
::
Runtime
::
Env
.
validate_resource_reuse?
# If any tests failed, leave the resources behind to help troubleshoot, otherwise remove them.
QA
::
Resource
::
ReusableCollection
.
remove_all_via_api!
unless
suite
.
reporter
.
failed_examples
.
present?
# Do not remove the shared resource on live environments
QA
::
Resource
::
ReusableCollection
.
remove_all_via_api!
if
!
suite
.
reporter
.
failed_examples
.
present?
&&
!
QA
::
Runtime
::
Env
.
running_on_dot_com?
end
config
.
append_after
(
:suite
)
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