diff options
Diffstat (limited to 'spec/models/ci/processable_spec.rb')
-rw-r--r-- | spec/models/ci/processable_spec.rb | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/spec/models/ci/processable_spec.rb b/spec/models/ci/processable_spec.rb index a199111b1e3..e62e5f84a6d 100644 --- a/spec/models/ci/processable_spec.rb +++ b/spec/models/ci/processable_spec.rb @@ -52,7 +52,11 @@ RSpec.describe Ci::Processable do let_it_be(:internal_job_variable) { create(:ci_job_variable, job: processable) } - let(:clone_accessors) { ::Ci::Build.clone_accessors.without(::Ci::Build.extra_accessors) } + let(:clone_accessors) do + %i[pipeline project ref tag options name allow_failure stage stage_idx trigger_request yaml_variables + when environment coverage_regex description tag_list protected needs_attributes job_variables_attributes + resource_group scheduling_type ci_stage partition_id id_tokens] + end let(:reject_accessors) do %i[id status user token_encrypted coverage runner artifacts_expire_at @@ -77,13 +81,14 @@ RSpec.describe Ci::Processable do commit_id deployment erased_by_id project_id runner_id tag_taggings taggings tags trigger_request_id user_id auto_canceled_by_id retried failure_reason - sourced_pipelines artifacts_file_store artifacts_metadata_store + sourced_pipelines sourced_pipeline artifacts_file_store artifacts_metadata_store metadata runner_session trace_chunks upstream_pipeline_id artifacts_file artifacts_metadata artifacts_size commands resource resource_group_id processed security_scans author pipeline_id report_results pending_state pages_deployments queuing_entry runtime_metadata trace_metadata - dast_site_profile dast_scanner_profile stage_id].freeze + dast_site_profile dast_scanner_profile stage_id dast_site_profiles_build + dast_scanner_profiles_build].freeze end before_all do @@ -177,10 +182,7 @@ RSpec.describe Ci::Processable do Ci::Build.attribute_names.map(&:to_sym) + Ci::Build.attribute_aliases.keys.map(&:to_sym) + Ci::Build.reflect_on_all_associations.map(&:name) + - [:tag_list, :needs_attributes, :job_variables_attributes, :id_tokens] - - # ToDo: Move EE accessors to ee/ - ::Ci::Build.extra_accessors - - [:dast_site_profiles_build, :dast_scanner_profiles_build] + [:tag_list, :needs_attributes, :job_variables_attributes, :id_tokens] current_accessors.uniq! @@ -284,12 +286,6 @@ RSpec.describe Ci::Processable do end end - context 'when the processable is a bridge' do - subject(:processable) { create(:ci_bridge, pipeline: pipeline) } - - it_behaves_like 'retryable processable' - end - context 'when the processable is a build' do subject(:processable) { create(:ci_build, pipeline: pipeline) } |