mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-07 16:55:15 -04:00
Fix tests and linting (#370)
* Fix license integration test * Fix build tags in lint config * Fix missing error checks * Fix use of MarkNodeAsInitialized * Fix attestation tests * Add license integration test to cmake list
This commit is contained in:
parent
397c9013ea
commit
0969ff4ac3
9 changed files with 28 additions and 21 deletions
|
@ -22,7 +22,7 @@ func TestAttestation(t *testing.T) {
|
|||
require := require.New(t)
|
||||
|
||||
issuer := NewIssuer()
|
||||
validator := NewValidator(map[uint32][]byte{}) // TODO: check for list of expected Azure PCRs
|
||||
validator := NewValidator(map[uint32][]byte{}, nil) // TODO: check for list of expected Azure PCRs
|
||||
|
||||
nonce := []byte{2, 3, 4}
|
||||
challenge := []byte("Constellation")
|
||||
|
@ -41,7 +41,7 @@ func TestAttestation(t *testing.T) {
|
|||
assert.Equal(challenge, out)
|
||||
|
||||
// Mark node as intialized. We should still be abe to validate
|
||||
assert.NoError(vtpm.MarkNodeAsInitialized(vtpm.OpenVTPM, []byte("Test"), []byte("Nonce")))
|
||||
assert.NoError(vtpm.MarkNodeAsBootstrapped(vtpm.OpenVTPM, []byte("Test")))
|
||||
|
||||
attDocRaw, err = issuer.Issue(challenge, nonce)
|
||||
assert.NoError(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue