Commit 0d9c21d0 authored by Mike Kozono's avatar Mike Kozono

Test that new attributes are sent

parent a7b1f88f
......@@ -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 }
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment