Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-10-02 12:56:37 +0300
committerNick Thomas <nick@gitlab.com>2017-10-02 13:25:02 +0300
commit43c712f5dd40f69bc198670b6d778b7a61060318 (patch)
tree7941bc14c6cbb4e049c02fd9b58bd933f9c98c0d /spec/lib/system_check
parentaa445119da3898ed96c8226526b3a3329b7c99ad (diff)
Whitelist authorized_keys.lock in the gitlab:check rake task
Diffstat (limited to 'spec/lib/system_check')
-rw-r--r--spec/lib/system_check/app/git_user_default_ssh_config_check_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/lib/system_check/app/git_user_default_ssh_config_check_spec.rb b/spec/lib/system_check/app/git_user_default_ssh_config_check_spec.rb
index 7125bfcab59..a0fb86345f3 100644
--- a/spec/lib/system_check/app/git_user_default_ssh_config_check_spec.rb
+++ b/spec/lib/system_check/app/git_user_default_ssh_config_check_spec.rb
@@ -16,7 +16,12 @@ describe SystemCheck::App::GitUserDefaultSSHConfigCheck do
end
it 'only whitelists safe files' do
- expect(described_class::WHITELIST).to contain_exactly('authorized_keys', 'authorized_keys2', 'known_hosts')
+ expect(described_class::WHITELIST).to contain_exactly(
+ 'authorized_keys',
+ 'authorized_keys2',
+ 'authorized_keys.lock',
+ 'known_hosts'
+ )
end
describe '#skip?' do