X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/646ea4328be842f4baa194205618c01910ec49db..5ee9b22d0777d7ef42fa6acc05b666fd30e1ab2b:/lib/dispatchcloud/test/ssh_service.go diff --git a/lib/dispatchcloud/test/ssh_service.go b/lib/dispatchcloud/test/ssh_service.go index f1fde4f422..31919b566d 100644 --- 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)