aboutsummaryrefslogtreecommitdiff
path: root/server/signer
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2018-08-08 11:24:22 +0100
committerNiall Sheridan <nsheridan@gmail.com>2018-08-08 12:49:47 +0100
commit12417f0dddf4be86aa5b9a4cb25bf48a4e301086 (patch)
tree280653d0ecefbbb22d9574221b64b079953a8c4b /server/signer
parent60d005f8d174d21162cab2b029f74cfe2925acab (diff)
Misc fixes
- Add `fast_finish` to travis config - Specify that Go 1.9 is supported - Additional error checking which was previously missed - Make the migrations test better -
Diffstat (limited to 'server/signer')
-rw-r--r--server/signer/signer_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/signer/signer_test.go b/server/signer/signer_test.go
index c07d62b..885a1c7 100644
--- a/server/signer/signer_test.go
+++ b/server/signer/signer_test.go
@@ -44,6 +44,9 @@ func TestCert(t *testing.T) {
t.Errorf("Expected %s, got %s", cert.ValidPrincipals, principals)
}
k1, _, _, _, err := ssh.ParseAuthorizedKey([]byte(r.Key))
+ if err != nil {
+ t.Errorf("Unable to parse key: %v", err)
+ }
k2 := cert.Key
if !bytes.Equal(k1.Marshal(), k2.Marshal()) {
t.Error("Cert key doesn't match public key")