Commit c4a2633b authored by Toon Claes's avatar Toon Claes

Resolve conflicts in git_user_default_ssh_config_check.rb

parent b245f67c
......@@ -11,17 +11,10 @@ module SystemCheck
].freeze
set_name 'Git user has default SSH configuration?'
<<<<<<< HEAD
set_skip_reason 'skipped (Geo secondary, or git user is not present / configured)'
def skip?
Gitlab::Geo.secondary? || !home_dir || !File.directory?(home_dir)
=======
set_skip_reason 'skipped (GitLab read-only, or git user is not present / configured)'
def skip?
Gitlab::Database.read_only? || !home_dir || !File.directory?(home_dir)
>>>>>>> ce-com/master
end
def check?
......
......@@ -40,18 +40,10 @@ describe SystemCheck::App::GitUserDefaultSSHConfigCheck do
it { is_expected.to eq(expected_result) }
end
<<<<<<< HEAD
# EE-only
it 'skips Geo secondaries' do
stub_user
stub_home_dir
allow(Gitlab::Geo).to receive(:secondary?).and_return(true)
=======
it 'skips GitLab read-only instances' do
stub_user
stub_home_dir
allow(Gitlab::Database).to receive(:read_only?).and_return(true)
>>>>>>> ce-com/master
is_expected.to be_truthy
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