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
24e727ca
Commit
24e727ca
authored
Feb 05, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add integration test for --queue-query-syntax
parent
d6889783
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
ee/spec/bin/sidekiq_cluster_spec.rb
ee/spec/bin/sidekiq_cluster_spec.rb
+16
-7
No files found.
ee/spec/bin/sidekiq_cluster_spec.rb
View file @
24e727ca
...
...
@@ -3,14 +3,23 @@
require
'spec_helper'
describe
'ee/bin/sidekiq-cluster'
do
it
'runs successfully'
,
:aggregate_failures
do
cmd
=
%w[ee/bin/sidekiq-cluster --dryrun --negate cronjob]
using
RSpec
::
Parameterized
::
TableSyntax
output
,
status
=
Gitlab
::
Popen
.
popen
(
cmd
,
Rails
.
root
.
to_s
)
where
(
:args
,
:included
,
:excluded
)
do
%w[--negate cronjob]
|
'-qdefault,1'
|
'-qcronjob,1'
%w[--queue-query-syntax resource_boundary=cpu]
|
'-qupdate_merge_requests,1'
|
'-qdefault,1'
end
with_them
do
it
'runs successfully'
,
:aggregate_failures
do
cmd
=
%w[ee/bin/sidekiq-cluster --dryrun]
+
args
output
,
status
=
Gitlab
::
Popen
.
popen
(
cmd
,
Rails
.
root
.
to_s
)
expect
(
status
).
to
be
(
0
)
expect
(
output
).
to
include
(
'"bundle", "exec", "sidekiq"'
)
expect
(
output
).
not_to
include
(
'-qcronjob,1'
)
expect
(
output
).
to
include
(
'-qdefault,1'
)
expect
(
status
).
to
be
(
0
)
expect
(
output
).
to
include
(
'"bundle", "exec", "sidekiq"'
)
expect
(
output
).
to
include
(
included
)
expect
(
output
).
not_to
include
(
excluded
)
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