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
1268a347
Commit
1268a347
authored
Apr 15, 2019
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary ExpirePipelineCacheWorker EE spec
parent
35bb453b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
ee/spec/workers/expire_pipeline_cache_worker_spec.rb
ee/spec/workers/expire_pipeline_cache_worker_spec.rb
+0
-38
No files found.
ee/spec/workers/expire_pipeline_cache_worker_spec.rb
deleted
100644 → 0
View file @
35bb453b
# frozen_string_literal: true
require
'spec_helper'
describe
ExpirePipelineCacheWorker
do
let
(
:pipeline
)
{
create
(
:ci_empty_pipeline
)
}
subject
{
described_class
.
new
}
describe
'#perform'
do
context
'when pipeline is triggered by other pipeline'
do
let
(
:source
)
{
create
(
:ci_sources_pipeline
,
pipeline:
pipeline
)
}
it
'updates the cache of dependent pipeline'
do
dependent_pipeline_path
=
"/
#{
source
.
source_project
.
full_path
}
/pipelines/
#{
source
.
source_pipeline
.
id
}
.json"
allow_any_instance_of
(
Gitlab
::
EtagCaching
::
Store
).
to
receive
(
:touch
)
expect_any_instance_of
(
Gitlab
::
EtagCaching
::
Store
).
to
receive
(
:touch
).
with
(
dependent_pipeline_path
)
subject
.
perform
(
pipeline
.
id
)
end
end
context
'when pipeline triggered other pipeline'
do
let
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
let
(
:source
)
{
create
(
:ci_sources_pipeline
,
source_job:
build
)
}
it
'updates the cache of dependent pipeline'
do
dependent_pipeline_path
=
"/
#{
source
.
project
.
full_path
}
/pipelines/
#{
source
.
pipeline
.
id
}
.json"
allow_any_instance_of
(
Gitlab
::
EtagCaching
::
Store
).
to
receive
(
:touch
)
expect_any_instance_of
(
Gitlab
::
EtagCaching
::
Store
).
to
receive
(
:touch
).
with
(
dependent_pipeline_path
)
subject
.
perform
(
pipeline
.
id
)
end
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