summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-25 09:07:43 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-25 09:07:43 +0000
commitf15cf65c53f00e5d3a8bad666a95c076c0e4e262 (patch)
tree8197fd9c4a18adb3f5636f728c4666cf140d65dc /spec/models
parent03085fd4a4047d7e7a11e29e244b7bfccfe52f53 (diff)
downloadgitlab-ce-f15cf65c53f00e5d3a8bad666a95c076c0e4e262.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/bridge_spec.rb4
-rw-r--r--spec/models/ci/build_spec.rb1
-rw-r--r--spec/models/ci/processable_spec.rb2
3 files changed, 3 insertions, 4 deletions
diff --git a/spec/models/ci/bridge_spec.rb b/spec/models/ci/bridge_spec.rb
index df24c92149d..fcbb4b97a75 100644
--- a/spec/models/ci/bridge_spec.rb
+++ b/spec/models/ci/bridge_spec.rb
@@ -21,8 +21,8 @@ RSpec.describe Ci::Bridge do
{ trigger: { project: 'my/project', branch: 'master' } }
end
- it 'has many sourced pipelines' do
- expect(bridge).to have_many(:sourced_pipelines)
+ it 'has one sourced pipeline' do
+ expect(bridge).to have_one(:sourced_pipeline)
end
it_behaves_like 'has ID tokens', :ci_bridge
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 9269b341627..22fa020ad02 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -24,7 +24,6 @@ RSpec.describe Ci::Build do
it { is_expected.to belong_to(:erased_by) }
it { is_expected.to have_many(:needs) }
- it { is_expected.to have_many(:sourced_pipelines) }
it { is_expected.to have_one(:sourced_pipeline) }
it { is_expected.to have_many(:job_variables) }
it { is_expected.to have_many(:report_results) }
diff --git a/spec/models/ci/processable_spec.rb b/spec/models/ci/processable_spec.rb
index e62e5f84a6d..004716fffc4 100644
--- a/spec/models/ci/processable_spec.rb
+++ b/spec/models/ci/processable_spec.rb
@@ -81,7 +81,7 @@ 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 sourced_pipeline artifacts_file_store artifacts_metadata_store
+ 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