Documentation
¶
Overview ¶
Package testutil provides utility functions to access store values in unit tests.
Index ¶
- func GetActivations(t *testing.T, txHandle transactionHandle, name string) uint
- func GetCertificate(t *testing.T, txHandle transactionHandle, name string) *x509.Certificate
- func GetInfrastructure(t *testing.T, txHandle transactionHandle, name string) quote.InfrastructureProperties
- func GetManifest(t *testing.T, txHandle transactionHandle) manifest.Manifest
- func GetManifestSignature(t *testing.T, txHandle transactionHandle) []byte
- func GetMarble(t *testing.T, txHandle transactionHandle, name string) manifest.Marble
- func GetPackage(t *testing.T, txHandle transactionHandle, name string) quote.PackageProperties
- func GetPrivateKey(t *testing.T, txHandle transactionHandle, name string) *ecdsa.PrivateKey
- func GetRawManifest(t *testing.T, txHandle transactionHandle) []byte
- func GetSecret(t *testing.T, txHandle transactionHandle, name string) manifest.Secret
- func GetSecretMap(t *testing.T, txHandle transactionHandle) map[string]manifest.Secret
- func GetState(t *testing.T, txHandle transactionHandle) state.State
- func GetTLS(t *testing.T, txHandle transactionHandle, name string) manifest.TLStag
- func GetUpdateLog(t *testing.T, txHandle transactionHandle) string
- func GetUser(t *testing.T, txHandle transactionHandle, name string) *user.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActivations ¶
GetActivations returns the number of activations for a given Marble.
func GetCertificate ¶
func GetCertificate(t *testing.T, txHandle transactionHandle, name string) *x509.Certificate
GetCertificate returns the certificate with the given name.
func GetInfrastructure ¶
func GetInfrastructure(t *testing.T, txHandle transactionHandle, name string) quote.InfrastructureProperties
GetInfrastructure returns infrastructure information.
func GetManifest ¶
GetManifest returns the manifest.
func GetManifestSignature ¶
GetManifestSignature returns the manifest signature.
func GetPackage ¶
func GetPackage(t *testing.T, txHandle transactionHandle, name string) quote.PackageProperties
GetPackage returns the package with the given name.
func GetPrivateKey ¶
func GetPrivateKey(t *testing.T, txHandle transactionHandle, name string) *ecdsa.PrivateKey
GetPrivateKey returns the private key with the given name.
func GetRawManifest ¶
GetRawManifest returns the raw manifest.
func GetSecretMap ¶
GetSecretMap returns a map of all secrets in the store.
func GetUpdateLog ¶
GetUpdateLog returns the update log.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.