Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + var DefaultKey = EC256Key + var EC256Key = pemutil.ParseSigner([]byte(...)) + func AssertErrorContains(tb testing.TB, err error, contains string) bool + func AssertErrorPrefix(tb testing.TB, err error, prefix string) bool + func AssertGRPCStatus(tb testing.TB, err error, code codes.Code, message string) bool + func AssertGRPCStatusContains(tb testing.TB, err error, code codes.Code, contains string, ...) bool + func AssertGRPCStatusHasPrefix(tb testing.TB, err error, code codes.Code, prefix string) bool + func AssertHasPrefix(tb testing.TB, msg string, prefix string) bool + func AssertLastLogs(t *testing.T, entries []*logrus.Entry, expected []LogEntry) + func AssertLogs(t *testing.T, entries []*logrus.Entry, expected []LogEntry) + func AssertLogsAnyOrder(t *testing.T, entries []*logrus.Entry, expected []LogEntry) + func AssertLogsContainEntries(t *testing.T, entries []*logrus.Entry, expectedEntries []LogEntry) + func AssertProtoEqual(tb testing.TB, expected, actual proto.Message, msgAndArgs ...interface{}) bool + func AssertProtoListEqual(tb testing.TB, expected, actual interface{}) bool + func CreateCertificate(tb testing.TB, tmpl, parent *x509.Certificate, pub, priv interface{}) *x509.Certificate + func FileNotFound() string + func GetRandNamedPipeAddr() net.Addr — windows/amd64 + func NewAPIServer(t *testing.T, registerFn func(s *grpc.Server), ...) (*grpc.ClientConn, func()) + func NewAPIServerWithMiddleware(t *testing.T, registerFn func(s *grpc.Server), server *grpc.Server) (*grpc.ClientConn, func()) + func PathNotFound() string + func RequireErrorContains(tb testing.TB, err error, contains string) + func RequireErrorPrefix(tb testing.TB, err error, prefix string) + func RequireGRPCStatus(tb testing.TB, err error, code codes.Code, message string) + func RequireGRPCStatusContains(tb testing.TB, err error, code codes.Code, contains string, ...) + func RequireGRPCStatusHasPrefix(tb testing.TB, err error, code codes.Code, prefix string) + func RequireProtoEqual(tb testing.TB, expected, actual proto.Message, msgAndArgs ...interface{}) + func RequireProtoListEqual(tb testing.TB, expected, actual interface{}) + func Run(t *testing.T, s suite.TestingSuite) + func SelfSignCertificate(tb testing.TB, tmpl *x509.Certificate) (*x509.Certificate, crypto.Signer) + func SelfSignCertificateWithKey(tb testing.TB, tmpl *x509.Certificate, key crypto.Signer) *x509.Certificate + func ServeGRPCServerOnListener(t *testing.T, server *grpc.Server, listener net.Listener) + func ServeGRPCServerOnNamedPipe(t *testing.T, server *grpc.Server, pipeName string) net.Addr — windows/amd64 + func ServeGRPCServerOnRandPipeName(t *testing.T, server *grpc.Server) net.Addr — windows/amd64 + func ServeGRPCServerOnTempUDSSocket(t *testing.T, server *grpc.Server) net.Addr + func ServeGRPCServerOnUDSSocket(t *testing.T, server *grpc.Server, socketPath string) net.Addr + func SocketFileNotFound() string + func StartGRPCOnNamedPipeServer(t *testing.T, pipeName string, registerFn func(s *grpc.Server)) net.Addr — windows/amd64 + func StartGRPCServer(t *testing.T, registerFn func(s *grpc.Server)) net.Addr + func StartGRPCUDSSocketServer(t *testing.T, socketPath string, registerFn func(s *grpc.Server)) net.Addr + func StartWorkloadAPI(t *testing.T, server workload.SpiffeWorkloadAPIServer) net.Addr + func StartWorkloadAPIOnNamedPipe(t *testing.T, pipeName string, server workload.SpiffeWorkloadAPIServer) net.Addr — windows/amd64 + func StartWorkloadAPIOnUDSSocket(t *testing.T, socketPath string, server workload.SpiffeWorkloadAPIServer) net.Addr + func TempDir(tb testing.TB) string + type LogEntry struct + Data logrus.Fields + Level logrus.Level + Message string + type Suite struct + func (s *Suite) AssertErrorContains(err error, contains string) bool + func (s *Suite) AssertGRPCStatus(err error, code codes.Code, message string) bool + func (s *Suite) AssertGRPCStatusContains(err error, code codes.Code, contains string) bool + func (s *Suite) AssertProtoEqual(expected, actual proto.Message, msgAndArgs ...interface{}) bool + func (s *Suite) AssertProtoListEqual(expected, actual interface{}) bool + func (s *Suite) Cleanup(cleanup func()) + func (s *Suite) RequireErrorContains(err error, contains string) + func (s *Suite) RequireGRPCStatus(err error, code codes.Code, message string) + func (s *Suite) RequireGRPCStatusContains(err error, code codes.Code, contains string) + func (s *Suite) RequireProtoEqual(expected, actual proto.Message) + func (s *Suite) RequireProtoListEqual(expected, actual interface{}) + func (s *Suite) TempDir() string