diff options
author | Nick Thomas <nick@gitlab.com> | 2019-02-04 12:44:19 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-02-04 12:44:19 +0000 |
commit | 2b0f4df0217b4a4aee53f964610d66ceedb68dca (patch) | |
tree | 4a34ab1ca006d13d3d66d688091459ad2e39faf8 /spec | |
parent | c48f29c15989d260ccb72d3e4bf5973a5e0f2d25 (diff) | |
parent | 4c1231accab556da202a6a7b3e54b3ca0734cefb (diff) | |
download | gitlab-ce-2b0f4df0217b4a4aee53f964610d66ceedb68dca.tar.gz |
Merge branch 'sh-fix-detect-host-keys' into 'master'
Fix Detect Host Keys not working
Closes #56855
See merge request gitlab-org/gitlab-ce!24884
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/ssh_host_key_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/ssh_host_key_spec.rb b/spec/models/ssh_host_key_spec.rb index 75db43b3d56..23a94334172 100644 --- a/spec/models/ssh_host_key_spec.rb +++ b/spec/models/ssh_host_key_spec.rb @@ -50,6 +50,12 @@ describe SshHostKey do subject(:ssh_host_key) { described_class.new(project: project, url: 'ssh://example.com:2222', compare_host_keys: compare_host_keys) } + describe '.primary_key' do + it 'returns a symbol' do + expect(described_class.primary_key).to eq(:id) + end + end + describe '#fingerprints', :use_clean_rails_memory_store_caching do it 'returns an array of indexed fingerprints when the cache is filled' do stub_reactive_cache(ssh_host_key, known_hosts: known_hosts) |