Commit 088a401f authored by Stan Hu's avatar Stan Hu

Add spec to ensure that deletion of a namespace also generates an event log

parent 83969dae
require 'spec_helper'
describe Groups::DestroyService, services: true do
let!(:user) { create(:user) }
let!(:group) { create(:group) }
let!(:project) { create(:empty_project, namespace: group) }
let!(:geo_node) { create(:geo_node, :current, :primary) }
before do
group.add_user(user, Gitlab::Access::OWNER)
end
it 'creates a Geo event log for each project deleted' do
Groups::DestroyService.new(group, user).execute
expect(Geo::EventLog.count).to eq(1)
expect(Geo::RepositoryDeletedEvent.count).to eq(1)
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