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
{
{
@@ -84,8 +85,6 @@
@@ -84,8 +85,6 @@
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
puts "RESPONSE: #{response.inspect} - HOOK: #{backfill.send(:hook_data)}"
expect(response.status).to eq 201
expect(response.status).to eq 201
end
end
end
end
Loading