Skip to content
Snippets Groups Projects
Commit a43f2bf1 authored by DJ Mountney's avatar DJ Mountney
Browse files

Fix broken tests

parent bca7e6d1
No related branches found
No related tags found
1 merge request!120Omnibus-repo release openshift template
Loading
Loading
@@ -58,8 +58,17 @@ module Release
def before_execute_hook
prepare_security_release if security_release?
 
bump_container_template_versions(stable_branch)
bump_container_template_versions('master')
super
end
def after_release
# Bump container template versiosn for stable ce releases
unless version.ee? || version.rc?
bump_container_template_versions(stable_branch)
bump_container_template_versions('master')
push_ref('branch', stable_branch)
push_ref('branch', 'master')
end
 
super
end
Loading
Loading
@@ -176,7 +185,8 @@ module Release
content = File.read(file_path)
content.gsub!(%r{gitlab/gitlab-ce:\d+\.\d+\.\d+-ce\.\d+}, "gitlab/gitlab-ce:#{version.to_docker}")
content.gsub!(/gitlab-\d+\.\d+\.\d+/, "gitlab-#{version.to_patch}")
File.write(file_path, content)
repository.write_file(file_path, content)
repository.commit(file_path, "Update #{file_path} to #{version.to_docker}")
end
end
end
Loading
Loading
@@ -48,6 +48,7 @@ describe Release::GitlabCeRelease do
def execute(version, branch)
described_class.new(version).execute
repository.checkout(branch)
ob_repository.checkout(branch)
end
 
describe '#execute' do
Loading
Loading
Loading
Loading
@@ -148,6 +148,12 @@ class OmnibusReleaseFixture
'VERSION' => "1.9.24\n"
)
 
commit_blob(
path: 'docker/openshift-template.json',
content: '"name": "gitlab-1.9.24","name": "gitlab/gitlab-ce:1.9.24-ce.0","name": "${APPLICATION_NAME}:gitlab-1.9.24"',
message: 'Add openshift-template.json'
)
repository.branches.create('1-9-stable', 'HEAD')
repository.branches.create('1-9-stable-ee', 'HEAD')
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment