Skip to content

Commit

Permalink
The UT needs a TRC in the trust DB (scionproto#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
juagargi authored Oct 14, 2019
1 parent 1f29eb7 commit 0192671
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/lib/infra/modules/trust/signhelper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/scionproto/scion/go/lib/ctrl"
"github.com/scionproto/scion/go/lib/scrypto"
"github.com/scionproto/scion/go/lib/scrypto/cert"
"github.com/scionproto/scion/go/lib/scrypto/trc"
"github.com/scionproto/scion/go/lib/xtest"
"github.com/scionproto/scion/go/proto"
)
Expand Down Expand Up @@ -74,6 +75,10 @@ func TestBasicVerifierVerify(t *testing.T) {
Signature: []byte("signature"),
},
})
store.trustdb.InsertTRC(context.Background(), &trc.TRC{
ISD: ia110.I,
Version: 1,
})
require.NoError(t, err)
verifier := NewBasicVerifier(store)
src := ctrl.SignSrcDef{
Expand Down

0 comments on commit 0192671

Please sign in to comment.