Skip to content
代码片段 群组 项目
提交 9f3d4c0a 编辑于 作者: 张泽华's avatar 张泽华
浏览文件

Remove unused functions about CI template tests

上级 358f5e1a
No related branches found
No related tags found
无相关合并请求
显示
0 个添加21 个删除
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe Gitlab::Ci::Config do RSpec.describe Gitlab::Ci::Config do
include Ci::TemplateHelpers
let_it_be(:ci_yml) do let_it_be(:ci_yml) do
<<-EOS <<-EOS
sample_job: sample_job:
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe Gitlab::Ci::Config::SecurityOrchestrationPolicies::Processor do RSpec.describe Gitlab::Ci::Config::SecurityOrchestrationPolicies::Processor do
include Ci::TemplateHelpers
subject { described_class.new(config, project, ref, source).perform } subject { described_class.new(config, project, ref, source).perform }
let_it_be(:config) { { image: 'image:1.0.0' } } let_it_be(:config) { { image: 'image:1.0.0' } }
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe 'Secure-Binaries.gitlab-ci.yml' do RSpec.describe 'Secure-Binaries.gitlab-ci.yml' do
include Ci::TemplateHelpers
subject(:template) { Gitlab::Template::GitlabCiYmlTemplate.find('Secure-Binaries') } subject(:template) { Gitlab::Template::GitlabCiYmlTemplate.find('Secure-Binaries') }
specify { expect(template).not_to be_nil } specify { expect(template).not_to be_nil }
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe AppSec::Dast::ScanConfigs::FetchService do RSpec.describe AppSec::Dast::ScanConfigs::FetchService do
include Ci::TemplateHelpers
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:namespace) { create(:namespace, owner: user) } let_it_be(:namespace) { create(:namespace, owner: user) }
let_it_be(:project) { create(:project, :repository, namespace: namespace) } let_it_be(:project) { create(:project, :repository, namespace: namespace) }
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe AppSec::Dast::Scans::RunService do RSpec.describe AppSec::Dast::Scans::RunService do
include Ci::TemplateHelpers
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project, :repository, creator: user) } let_it_be(:project) { create(:project, :repository, creator: user) }
let_it_be(:dast_site_profile) { create(:dast_site_profile, :with_dast_submit_field, project: project) } let_it_be(:dast_site_profile) { create(:dast_site_profile, :with_dast_submit_field, project: project) }
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe Security::SecurityOrchestrationPolicies::CiConfigurationService do RSpec.describe Security::SecurityOrchestrationPolicies::CiConfigurationService do
include Ci::TemplateHelpers
describe '#execute' do describe '#execute' do
let_it_be(:service) { described_class.new } let_it_be(:service) { described_class.new }
let_it_be(:ci_variables) do let_it_be(:ci_variables) do
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe Security::SecurityOrchestrationPolicies::OnDemandScanPipelineConfigurationService do RSpec.describe Security::SecurityOrchestrationPolicies::OnDemandScanPipelineConfigurationService do
include Ci::TemplateHelpers
describe '#execute' do describe '#execute' do
let_it_be_with_reload(:project) { create(:project, :repository) } let_it_be_with_reload(:project) { create(:project, :repository) }
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
RSpec.describe GitlabSchema.types['Project'] do RSpec.describe GitlabSchema.types['Project'] do
include GraphqlHelpers include GraphqlHelpers
include Ci::TemplateHelpers
specify { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Project) } specify { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Project) }
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe Security::CiConfiguration::SastParserService do RSpec.describe Security::CiConfiguration::SastParserService do
include Ci::TemplateHelpers
describe '#configuration' do describe '#configuration' do
include_context 'read ci configuration for sast enabled project' include_context 'read ci configuration for sast enabled project'
......
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
module Ci module Ci
module TemplateHelpers module TemplateHelpers
def secure_analyzers_prefix
'registry.gitlab.com/security-products'
end
def template_registry_host def template_registry_host
'registry.gitlab.com' 'registry.gitlab.com'
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册