mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-24 06:29:19 -04:00
Move simulated TPM to own package
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
901c783bc5
commit
e5e5161520
12 changed files with 64 additions and 52 deletions
|
@ -3,6 +3,7 @@ package azure
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/edgelesssys/constellation/coordinator/attestation/simulator"
|
||||
"github.com/edgelesssys/constellation/coordinator/attestation/vtpm"
|
||||
"github.com/google/go-tpm-tools/client"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
@ -12,7 +13,7 @@ import (
|
|||
func TestTrustedKeyFromSNP(t *testing.T) {
|
||||
require := require.New(t)
|
||||
|
||||
tpm, err := vtpm.OpenSimulatedTPM()
|
||||
tpm, err := simulator.OpenSimulatedTPM()
|
||||
require.NoError(err)
|
||||
defer tpm.Close()
|
||||
key, err := client.AttestationKeyRSA(tpm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue