Skip to content
代码片段 群组 项目
未验证 提交 b02e29bd 编辑于 作者: Siddharth Dungarwal's avatar Siddharth Dungarwal 提交者: GitLab
浏览文件

Reflect updates in mirror to elasticsearch

上级 d9c12ea5
No related branches found
No related tags found
无相关合并请求
......@@ -162,9 +162,12 @@
context 'when licensed' do
before do
stub_licensed_features(repository_mirrors: true)
stub_ee_application_setting(elasticsearch_indexing?: true)
end
it 'sets the correct attributes' do
expect(::Elastic::ProcessBookkeepingService).to receive(:track!).with(an_instance_of(User))
expect(::Elastic::ProcessBookkeepingService).to receive(:track!).with(an_instance_of(Project))
expect(created_project).to be_persisted
expect(created_project.mirror).to be true
expect(created_project.mirror_user_id).to eq(user.id)
......
......@@ -83,9 +83,11 @@
before do
stub_licensed_features(repository_mirrors: true)
stub_ee_application_setting(elasticsearch_indexing?: true)
end
it 'sets mirror attributes' do
expect(::Elastic::ProcessBookkeepingService).to receive(:track!).with(project).once
result = update_project(project, user, opts)
expect(result).to eq(status: :success)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册