client

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package client (in testing) allows tests to get a fake or real sev-guest device.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSevGuest

GetSevGuest is a cross-platform testing helper function that retrieves the appropriate SEV-guest device from the flags passed into "go test".

If using a test guest device, this will also produce a fake AMD-SP that produces the signed versions of given attestation reports based on different nonce input. Its returned roots of trust are based on the fake's signing credentials.

func GetSevQuoteProvider added in v0.10.0

GetSevQuoteProvider is a cross-platform testing helper function that retrieves the appropriate SEV-guest device from the flags passed into "go test".

If using a test guest device, this will also produce a fake AMD-SP that produces the signed versions of given attestation reports based on different nonce input. Its returned roots of trust are based on the fake's signing credentials.

func SkipUnmockableTestCase

func SkipUnmockableTestCase(tc *test.TestCase) bool

SkipUnmockableTestCase returns whether we have to skip a mocked failure test case on real hardware.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL