Commit f1fbb9b9 authored by Nick Thomas's avatar Nick Thomas

Merge branch 'mk/fix-gitlab-geo-check-task' into 'master'

Fix gitlab:geo:check rake task

See merge request gitlab-org/gitlab-ee!8714
parents e5dbba3d 6995c8d6
---
title: Fix gitlab:geo:check rake task
merge_request: 8714
author:
type: fixed
......@@ -4,7 +4,7 @@ namespace :gitlab do
namespace :geo do
desc 'GitLab | Check Geo configuration and dependencies'
task check: :gitlab_environment do
SystemCheck::Geo.run!
SystemCheck::RakeTask::GeoTask.run!
end
end
end
# frozen_string_literal: true
require 'rake_helper'
describe 'EE check.rake' do
before do
Rake.application.rake_require 'ee/lib/tasks/gitlab/check', [Rails.root.to_s]
stub_warn_user_is_not_gitlab
end
describe 'gitlab:check rake task' do
it 'runs the Geo check' do
expect do
run_rake_task('gitlab:geo:check')
end.to output(/Checking Geo ... Finished/).to_stdout
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment