Commit 489bc112 authored by Kamil Trzciński's avatar Kamil Trzciński

Acknowledge `applications/runner_spec.rb` cross-DB modification

Ensure that `applications/runner_spec.rb` is properly covered with
cross-DB and removed from the allowlist.
parent b8cbeff9
......@@ -41,7 +41,9 @@ module Clusters
end
def prepare_uninstall
runner&.update!(active: false)
::Gitlab::Database::QueryAnalyzers::PreventCrossDatabaseModification.allow_cross_database_modification_within_transaction(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/350180') do
runner&.update!(active: false)
end
end
def post_uninstall
......
......@@ -118,7 +118,6 @@ FactoryBot.define do
end
factory :clusters_applications_runner, class: 'Clusters::Applications::Runner' do
runner factory: %i(ci_runner)
cluster factory: %i(cluster with_installed_helm provided_by_gcp)
end
......
- "./spec/lib/gitlab/ci/pipeline/chain/create_spec.rb"
- "./spec/models/ci/build_trace_chunk_spec.rb"
- "./spec/models/ci/job_artifact_spec.rb"
- "./spec/models/clusters/applications/runner_spec.rb"
- "./spec/services/ci/retry_build_service_spec.rb"
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