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
718adbe6
Commit
718adbe6
authored
Aug 18, 2020
by
Alex Ives
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 4 suggestion(s) to 1 file(s)
parent
7da6b2df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ee/spec/lib/gitlab/geo/geo_tasks_spec.rb
ee/spec/lib/gitlab/geo/geo_tasks_spec.rb
+4
-4
No files found.
ee/spec/lib/gitlab/geo/geo_tasks_spec.rb
View file @
718adbe6
...
...
@@ -52,17 +52,17 @@ RSpec.describe Gitlab::Geo::GeoTasks do
expect
(
subject
).
not_to
receive
(
:abort
)
expect
{
subject
.
set_secondary_as_primary
}.
to
output
(
/
#{
secondary
.
url
}
is now the primary Geo node/
).
to_stdout
expect
(
secondary
.
reload
.
primary
).
to
be
true
expect
(
secondary
.
reload
).
to
be_primary
end
it
'sets the secondary as the primary node, even if the secondary is disabled'
do
secondary
.
update_column
(
:enabled
,
tru
e
)
secondary
.
update_column
(
:enabled
,
fals
e
)
expect
(
subject
).
not_to
receive
(
:abort
)
expect
{
subject
.
set_secondary_as_primary
}.
to
output
(
/
#{
secondary
.
url
}
is now the primary Geo node/
).
to_stdout
expect
(
secondary
.
reload
.
primary
).
to
be
true
expect
(
secondary
.
reload
.
enabled?
).
to
be
true
expect
(
secondary
.
reload
).
to
be_primary
expect
(
secondary
.
reload
).
to
be_enabled
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