Skip to content

Commit

Permalink
fixed yubikey tests that were failing
Browse files Browse the repository at this point in the history
Signed-off-by: avaid96 <avaid1996@gmail.com>
  • Loading branch information
avaid96 committed Jul 25, 2016
1 parent 67e4c21 commit a9668ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/notary/keys_pkcs11_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ func TestImportWithYubikey(t *testing.T) {
pubK, err := cs.Create(data.CanonicalRootRole, "ankh", data.ECDSAKey)
require.NoError(t, err)
bID := pubK.ID() // need to check presence in yubikey later
require.NoError(t, err)
bytes, err := memStore.Get(notary.RootKeysSubdir + "/" + pubK.ID())
bytes, err := memStore.Get(pubK.ID())
require.NoError(t, err)
b, _ := pem.Decode(bytes)
b.Headers["path"] = "ankh"
Expand All @@ -58,7 +57,7 @@ func TestImportWithYubikey(t *testing.T) {
pubK, err = cs.Create(data.CanonicalTargetsRole, "morpork", data.ECDSAKey)
require.NoError(t, err)
cID := pubK.ID()
bytes, err = memStore.Get(notary.NonRootKeysSubdir + "/morpork/" + pubK.ID())
bytes, err = memStore.Get(pubK.ID())
require.NoError(t, err)
c, _ := pem.Decode(bytes)
c.Headers["path"] = "morpork"
Expand Down

0 comments on commit a9668ac

Please sign in to comment.