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
3ebe67d5
Commit
3ebe67d5
authored
Dec 25, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIx StorageShard spec
parent
910bbab6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
spec/ee/spec/serializers/geo_node_status_entity_spec.rb
spec/ee/spec/serializers/geo_node_status_entity_spec.rb
+5
-2
spec/factories/geo_node_statuses.rb
spec/factories/geo_node_statuses.rb
+1
-1
No files found.
spec/ee/spec/serializers/geo_node_status_entity_spec.rb
View file @
3ebe67d5
...
...
@@ -131,8 +131,11 @@ describe GeoNodeStatusEntity, :postgresql do
describe
'#storage_shards'
do
it
'returns the config'
do
expect
(
subject
[
:storage_shards
].
first
[
:name
]).
to
eq
(
'default'
)
expect
(
subject
[
:storage_shards
].
first
[
:path
]).
to
eq
(
'/tmp/test'
)
shards
=
StorageShard
.
all
expect
(
subject
[
:storage_shards
].
count
).
to
eq
(
shards
.
count
)
expect
(
subject
[
:storage_shards
].
first
[
:name
]).
to
eq
(
shards
.
first
.
name
)
expect
(
subject
[
:storage_shards
].
first
[
:path
]).
to
eq
(
shards
.
first
.
path
)
end
end
end
spec/factories/geo_node_statuses.rb
View file @
3ebe67d5
...
...
@@ -2,7 +2,7 @@ FactoryBot.define do
factory
:geo_node_status
do
sequence
(
:id
)
geo_node
storage_shards
{
StorageShard
.
all
.
as_json
}
storage_shards
{
StorageShard
.
all
}
trait
:healthy
do
health
nil
...
...
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