diff options
Diffstat (limited to 'spec/models/ci/processable_spec.rb')
-rw-r--r-- | spec/models/ci/processable_spec.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/models/ci/processable_spec.rb b/spec/models/ci/processable_spec.rb index 8c0143d5f18..5d457c4f213 100644 --- a/spec/models/ci/processable_spec.rb +++ b/spec/models/ci/processable_spec.rb @@ -58,7 +58,7 @@ RSpec.describe Ci::Processable, feature_category: :continuous_integration do 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] + resource_group scheduling_type ci_stage partition_id id_tokens interruptible] end let(:reject_accessors) do @@ -76,7 +76,7 @@ RSpec.describe Ci::Processable, feature_category: :continuous_integration do job_artifacts_network_referee job_artifacts_dotenv job_artifacts_cobertura needs job_artifacts_accessibility job_artifacts_requirements job_artifacts_coverage_fuzzing - job_artifacts_requirements_v2 + job_artifacts_requirements_v2 job_artifacts_repository_xray job_artifacts_api_fuzzing terraform_state_versions job_artifacts_cyclonedx job_annotations job_artifacts_annotations].freeze end @@ -114,7 +114,8 @@ RSpec.describe Ci::Processable, feature_category: :continuous_integration do shared_examples_for 'clones the processable' do before_all do - processable.update!(stage: 'test', stage_id: stage.id) + processable.assign_attributes(stage: 'test', stage_id: stage.id, interruptible: true) + processable.save! create(:ci_build_need, build: processable) end @@ -187,7 +188,7 @@ RSpec.describe Ci::Processable, feature_category: :continuous_integration 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] + [:tag_list, :needs_attributes, :job_variables_attributes, :id_tokens, :interruptible] current_accessors.uniq! |