Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6706a00c
Commit
6706a00c
authored
Feb 04, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
6c1f09e5
2b0f4df0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
app/models/ssh_host_key.rb
app/models/ssh_host_key.rb
+1
-1
changelogs/unreleased/sh-fix-detect-host-keys.yml
changelogs/unreleased/sh-fix-detect-host-keys.yml
+5
-0
spec/models/ssh_host_key_spec.rb
spec/models/ssh_host_key_spec.rb
+6
-0
No files found.
app/models/ssh_host_key.rb
View file @
6706a00c
...
...
@@ -54,7 +54,7 @@ class SshHostKey
# Needed for reactive caching
def
self
.
primary_key
'id'
:id
end
def
id
...
...
changelogs/unreleased/sh-fix-detect-host-keys.yml
0 → 100644
View file @
6706a00c
---
title
:
Fix Detect Host Keys not working
merge_request
:
24884
author
:
type
:
fixed
spec/models/ssh_host_key_spec.rb
View file @
6706a00c
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment