Skip to content
Snippets Groups Projects

Geo: send the new event type with the backfill function

Merged Gabriel Mazetto requested to merge 1645-backfill into master
@@ -63,6 +63,7 @@
@@ -63,6 +63,7 @@
describe 'POST /geo/receive_events push events' do
describe 'POST /geo/receive_events push events' do
before(:each) { allow_any_instance_of(::Geo::ScheduleRepoUpdateService).to receive(:execute) }
before(:each) { allow_any_instance_of(::Geo::ScheduleRepoUpdateService).to receive(:execute) }
 
before(:each) { allow_any_instance_of(::Geo::ScheduleRepoFetchService).to receive(:execute) }
let(:push_payload) do
let(:push_payload) do
{
{
@@ -81,7 +82,6 @@
@@ -81,7 +82,6 @@
it 'can start a refresh process from the backfill service' do
it 'can start a refresh process from the backfill service' do
project = create(:project)
project = create(:project)
geo_node.save!
backfill = Geo::RepositoryBackfillService.new(project, geo_node)
backfill = Geo::RepositoryBackfillService.new(project, geo_node)
post api('/geo/receive_events'), backfill.send(:hook_data), geo_token_header
post api('/geo/receive_events'), backfill.send(:hook_data), geo_token_header
Loading