diff options
Diffstat (limited to 'spec/lib/gitlab/ci/config_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/config_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/config_spec.rb b/spec/lib/gitlab/ci/config_spec.rb index 3ba6a9059c6..5eb04d969eb 100644 --- a/spec/lib/gitlab/ci/config_spec.rb +++ b/spec/lib/gitlab/ci/config_spec.rb @@ -109,16 +109,22 @@ RSpec.describe Gitlab::Ci::Config do expect(config.metadata[:includes]).to contain_exactly( { type: :template, location: 'Jobs/Deploy.gitlab-ci.yml', + blob: nil, + raw: 'https://gitlab.com/gitlab-org/gitlab/-/raw/master/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml', extra: {}, context_project: nil, context_sha: nil }, { type: :template, location: 'Jobs/Build.gitlab-ci.yml', + blob: nil, + raw: 'https://gitlab.com/gitlab-org/gitlab/-/raw/master/lib/gitlab/ci/templates/Jobs/Build.gitlab-ci.yml', extra: {}, context_project: nil, context_sha: nil }, { type: :remote, location: 'https://example.com/gitlab-ci.yml', + blob: nil, + raw: 'https://example.com/gitlab-ci.yml', extra: {}, context_project: nil, context_sha: nil } @@ -428,16 +434,22 @@ RSpec.describe Gitlab::Ci::Config do expect(config.metadata[:includes]).to contain_exactly( { type: :local, location: local_location, + blob: "http://localhost/#{project.full_path}/-/blob/12345/#{local_location}", + raw: "http://localhost/#{project.full_path}/-/raw/12345/#{local_location}", extra: {}, context_project: project.full_path, context_sha: '12345' }, { type: :remote, location: remote_location, + blob: nil, + raw: remote_location, extra: {}, context_project: project.full_path, context_sha: '12345' }, { type: :file, location: '.gitlab-ci.yml', + blob: "http://localhost/#{main_project.full_path}/-/blob/#{main_project.commit.sha}/.gitlab-ci.yml", + raw: "http://localhost/#{main_project.full_path}/-/raw/#{main_project.commit.sha}/.gitlab-ci.yml", extra: { project: main_project.full_path, ref: 'HEAD' }, context_project: project.full_path, context_sha: '12345' } |