projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d913210
)
Fix another golint warning.
author
Ward Vandewege <ward@curii.com>
Fri, 18 Dec 2020 02:38:02 +0000
(21:38 -0500)
committer
Ward Vandewege <ward@curii.com>
Fri, 18 Dec 2020 02:38:02 +0000
(21:38 -0500)
No issue #
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
lib/dispatchcloud/test/ssh_service.go
patch
|
blob
|
history
diff --git
a/lib/dispatchcloud/test/ssh_service.go
b/lib/dispatchcloud/test/ssh_service.go
index f1fde4f422ce55198742871883f8a0bbd7c682d3..31919b566df81769f791782b4cb3709b468122e8 100644
(file)
--- a/
lib/dispatchcloud/test/ssh_service.go
+++ b/
lib/dispatchcloud/test/ssh_service.go
@@
-18,6
+18,8
@@
import (
check "gopkg.in/check.v1"
)
+// LoadTestKey returns a public/private ssh keypair, read from the files
+// identified by the path of the private key.
func LoadTestKey(c *check.C, fnm string) (ssh.PublicKey, ssh.Signer) {
rawpubkey, err := ioutil.ReadFile(fnm + ".pub")
c.Assert(err, check.IsNil)