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
fd706abf
Commit
fd706abf
authored
Jun 09, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restrict Geo tests to PostgreSQL
parent
6ade8de3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
spec/controllers/admin/geo_nodes_controller_spec.rb
spec/controllers/admin/geo_nodes_controller_spec.rb
+1
-1
spec/lib/gitlab/geo/health_check_spec.rb
spec/lib/gitlab/geo/health_check_spec.rb
+1
-5
spec/serializers/geo_node_status_entity_spec.rb
spec/serializers/geo_node_status_entity_spec.rb
+1
-1
No files found.
spec/controllers/admin/geo_nodes_controller_spec.rb
View file @
fd706abf
require
'spec_helper'
require
'spec_helper'
describe
Admin
::
GeoNodesController
do
describe
Admin
::
GeoNodesController
,
:postgresql
do
shared_examples
'unlicensed geo action'
do
shared_examples
'unlicensed geo action'
do
it
'redirects to the license page'
do
it
'redirects to the license page'
do
expect
(
response
).
to
redirect_to
(
admin_license_path
)
expect
(
response
).
to
redirect_to
(
admin_license_path
)
...
...
spec/lib/gitlab/geo/health_check_spec.rb
View file @
fd706abf
require
'spec_helper'
require
'spec_helper'
describe
Gitlab
::
Geo
::
HealthCheck
do
describe
Gitlab
::
Geo
::
HealthCheck
,
:postgresql
do
let!
(
:secondary
)
{
create
(
:geo_node
,
:current
)
}
let!
(
:secondary
)
{
create
(
:geo_node
,
:current
)
}
subject
{
described_class
}
subject
{
described_class
}
describe
'.perform_checks'
do
describe
'.perform_checks'
do
before
do
skip
(
"Not using PostgreSQL"
)
unless
Gitlab
::
Database
.
postgresql?
end
it
'returns a string if database is not fully migrated'
do
it
'returns a string if database is not fully migrated'
do
allow
(
Gitlab
::
Geo
).
to
receive
(
:secondary?
)
{
true
}
allow
(
Gitlab
::
Geo
).
to
receive
(
:secondary?
)
{
true
}
allow
(
Gitlab
::
Geo
).
to
receive
(
:secondary_role_enabled?
).
and_return
(
true
)
allow
(
Gitlab
::
Geo
).
to
receive
(
:secondary_role_enabled?
).
and_return
(
true
)
...
...
spec/serializers/geo_node_status_entity_spec.rb
View file @
fd706abf
require
'spec_helper'
require
'spec_helper'
describe
GeoNodeStatusEntity
do
describe
GeoNodeStatusEntity
,
:postgresql
do
let
(
:geo_node_status
)
do
let
(
:geo_node_status
)
do
GeoNodeStatus
.
new
(
GeoNodeStatus
.
new
(
id:
1
,
id:
1
,
...
...
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