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
0d9c21d0
Commit
0d9c21d0
authored
Jun 15, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test that new attributes are sent
parent
a7b1f88f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
ee/spec/factories/geo_node_statuses.rb
ee/spec/factories/geo_node_statuses.rb
+1
-0
ee/spec/services/geo/node_status_request_service_spec.rb
ee/spec/services/geo/node_status_request_service_spec.rb
+14
-0
No files found.
ee/spec/factories/geo_node_statuses.rb
View file @
0d9c21d0
...
...
@@ -20,6 +20,7 @@ FactoryBot.define do
job_artifacts_synced_count
{
577
}
job_artifacts_synced_missing_on_primary_count
{
91
}
container_repositories_count
{
400
}
container_repositories_registry_count
{
203
}
container_repositories_failed_count
{
3
}
container_repositories_synced_count
{
200
}
design_repositories_count
{
400
}
...
...
ee/spec/services/geo/node_status_request_service_spec.rb
View file @
0d9c21d0
...
...
@@ -53,5 +53,19 @@ RSpec.describe Geo::NodeStatusRequestService, :geo do
projects_count:
10
}))
end
it
'sends all of the data in the status JSONB field in the request'
do
expect
(
Gitlab
::
HTTP
).
to
receive
(
:perform_request
)
.
with
(
Net
::
HTTP
::
Post
,
primary
.
status_url
,
hash_including
(
body:
hash_including
(
'status'
=>
hash_including
(
*
GeoNodeStatus
::
RESOURCE_STATUS_FIELDS
))))
.
and_return
(
double
(
success?:
true
))
subject
.
execute
(
create
(
:geo_node_status
,
:healthy
))
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