Move simulated TPM to own package

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-04-22 11:06:55 +02:00 committed by Daniel Weiße
parent 901c783bc5
commit e5e5161520
12 changed files with 64 additions and 52 deletions

View file

@ -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)