diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-20 03:11:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-20 03:11:14 +0300 |
commit | 1533e64a2ca36d119ba2f229f591e4b50c436338 (patch) | |
tree | 36ff2c216e0b899189207f760a8d58396a87a54d /spec/workers/gitlab/github_import | |
parent | b6bf52d3e274bd060a7b7e7a2812fda30e0d66d5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/gitlab/github_import')
7 files changed, 1 insertions, 23 deletions
diff --git a/spec/workers/gitlab/github_import/stage/import_base_data_worker_spec.rb b/spec/workers/gitlab/github_import/stage/import_base_data_worker_spec.rb index f3b706361e3..b8f2db8e2d9 100644 --- a/spec/workers/gitlab/github_import/stage/import_base_data_worker_spec.rb +++ b/spec/workers/gitlab/github_import/stage/import_base_data_worker_spec.rb @@ -23,8 +23,6 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportBaseDataWorker, feature_catego expect(importer).to receive(:execute) end - expect(import_state).to receive(:refresh_jid_expiration) - expect(Gitlab::GithubImport::Stage::ImportPullRequestsWorker) .to receive(:perform_async) .with(project.id) diff --git a/spec/workers/gitlab/github_import/stage/import_collaborators_worker_spec.rb b/spec/workers/gitlab/github_import/stage/import_collaborators_worker_spec.rb index fc38adb5447..71170718721 100644 --- a/spec/workers/gitlab/github_import/stage/import_collaborators_worker_spec.rb +++ b/spec/workers/gitlab/github_import/stage/import_collaborators_worker_spec.rb @@ -33,8 +33,6 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportCollaboratorsWorker, feature_c .and_return(importer) expect(importer).to receive(:execute).and_return(waiter) - expect(import_state).to receive(:refresh_jid_expiration) - expect(Gitlab::GithubImport::AdvanceStageWorker) .to receive(:perform_async) .with(project.id, { '123' => 2 }, :pull_requests_merged_by) diff --git a/spec/workers/gitlab/github_import/stage/import_protected_branches_worker_spec.rb b/spec/workers/gitlab/github_import/stage/import_protected_branches_worker_spec.rb index 7ecce82dacb..0bfae640e23 100644 --- a/spec/workers/gitlab/github_import/stage/import_protected_branches_worker_spec.rb +++ b/spec/workers/gitlab/github_import/stage/import_protected_branches_worker_spec.rb @@ -25,9 +25,6 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportProtectedBranchesWorker, featu .to receive(:execute) .and_return(waiter) - expect(import_state) - .to receive(:refresh_jid_expiration) - expect(Gitlab::GithubImport::AdvanceStageWorker) .to receive(:perform_async) .with(project.id, { '123' => 2 }, :lfs_objects) diff --git a/spec/workers/gitlab/github_import/stage/import_pull_requests_merged_by_worker_spec.rb b/spec/workers/gitlab/github_import/stage/import_pull_requests_merged_by_worker_spec.rb index 5917b827d65..158efce2a9e 100644 --- a/spec/workers/gitlab/github_import/stage/import_pull_requests_merged_by_worker_spec.rb +++ b/spec/workers/gitlab/github_import/stage/import_pull_requests_merged_by_worker_spec.rb @@ -24,9 +24,6 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportPullRequestsMergedByWorker, fe .to receive(:execute) .and_return(waiter) - expect(import_state) - .to receive(:refresh_jid_expiration) - expect(Gitlab::GithubImport::AdvanceStageWorker) .to receive(:perform_async) .with(project.id, { '123' => 2 }, :pull_request_review_requests) diff --git a/spec/workers/gitlab/github_import/stage/import_pull_requests_review_requests_worker_spec.rb b/spec/workers/gitlab/github_import/stage/import_pull_requests_review_requests_worker_spec.rb index b473de73086..8f71a18036b 100644 --- a/spec/workers/gitlab/github_import/stage/import_pull_requests_review_requests_worker_spec.rb +++ b/spec/workers/gitlab/github_import/stage/import_pull_requests_review_requests_worker_spec.rb @@ -6,7 +6,7 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportPullRequestsReviewRequestsWork subject(:worker) { described_class.new } let(:project) { instance_double(Project, id: 1, import_state: import_state) } - let(:import_state) { instance_double(ProjectImportState, refresh_jid_expiration: true) } + let(:import_state) { instance_double(ProjectImportState) } let(:client) { instance_double(Gitlab::GithubImport::Client) } let(:importer) { instance_double(Gitlab::GithubImport::Importer::PullRequests::ReviewRequestsImporter) } let(:waiter) { Gitlab::JobWaiter.new(2, '123') } @@ -21,7 +21,6 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportPullRequestsReviewRequestsWork .and_return(importer) expect(importer).to receive(:execute).and_return(waiter) - expect(import_state).to receive(:refresh_jid_expiration) expect(Gitlab::GithubImport::AdvanceStageWorker) .to receive(:perform_async) diff --git a/spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb b/spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb index 34d3ce9fe95..f783baea349 100644 --- a/spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb +++ b/spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb @@ -25,8 +25,6 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportPullRequestsReviewsWorker, fea .to receive(:execute) .and_return(waiter) - expect(import_state).to receive(:refresh_jid_expiration) - expect(Gitlab::GithubImport::AdvanceStageWorker) .to receive(:perform_async) .with(project.id, { '123' => 2 }, :issues_and_diff_notes) diff --git a/spec/workers/gitlab/github_import/stage/import_pull_requests_worker_spec.rb b/spec/workers/gitlab/github_import/stage/import_pull_requests_worker_spec.rb index f9b4a8a99f0..c2b97335229 100644 --- a/spec/workers/gitlab/github_import/stage/import_pull_requests_worker_spec.rb +++ b/spec/workers/gitlab/github_import/stage/import_pull_requests_worker_spec.rb @@ -27,9 +27,6 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportPullRequestsWorker, feature_ca .to receive(:execute) .and_return(waiter) - expect(import_state) - .to receive(:refresh_jid_expiration) - expect(InternalId).to receive(:exists?).and_return(false) expect(client).to receive(:each_object).with( @@ -59,9 +56,6 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportPullRequestsWorker, feature_ca .to receive(:execute) .and_return(waiter) - expect(import_state) - .to receive(:refresh_jid_expiration) - expect(InternalId).to receive(:exists?).and_return(false) expect(client).to receive(:each_object).with( @@ -91,9 +85,6 @@ RSpec.describe Gitlab::GithubImport::Stage::ImportPullRequestsWorker, feature_ca .to receive(:execute) .and_return(waiter) - expect(import_state) - .to receive(:refresh_jid_expiration) - expect(InternalId).to receive(:exists?).and_return(true) expect(client).not_to receive(:each_object) |