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
be9a1174
Commit
be9a1174
authored
Apr 04, 2020
by
Ash McKenzie
Committed by
Douglas Barbosa Alexandre
Apr 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consolidate must be a secondary expectations
parent
70ae6ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
ee/spec/lib/gitlab/geo/git_ssh_proxy_spec.rb
ee/spec/lib/gitlab/geo/git_ssh_proxy_spec.rb
+2
-10
No files found.
ee/spec/lib/gitlab/geo/git_ssh_proxy_spec.rb
View file @
be9a1174
...
@@ -286,11 +286,7 @@ describe Gitlab::Geo::GitSSHProxy, :geo do
...
@@ -286,11 +286,7 @@ describe Gitlab::Geo::GitSSHProxy, :geo do
context
'against primary node'
do
context
'against primary node'
do
let
(
:current_node
)
{
primary_node
}
let
(
:current_node
)
{
primary_node
}
it
'raises an exception'
do
it_behaves_like
'must be a secondary'
expect
do
subject
.
info_refs_receive_pack
end
.
to
raise_error
(
described_class
::
MustBeASecondaryNode
,
'Node is not a secondary or there is no primary Geo node'
)
end
end
end
context
'against secondary node'
do
context
'against secondary node'
do
...
@@ -401,11 +397,7 @@ describe Gitlab::Geo::GitSSHProxy, :geo do
...
@@ -401,11 +397,7 @@ describe Gitlab::Geo::GitSSHProxy, :geo do
context
'against primary node'
do
context
'against primary node'
do
let
(
:current_node
)
{
primary_node
}
let
(
:current_node
)
{
primary_node
}
it
'raises an exception'
do
it_behaves_like
'must be a secondary'
expect
do
subject
.
receive_pack
(
info_refs_body_short
)
end
.
to
raise_error
(
described_class
::
MustBeASecondaryNode
)
end
end
end
context
'against secondary node'
do
context
'against secondary node'
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