Documentation
¶
Overview ¶
Package fixture serves an execution provider over mTLS on a loopback port, for tests of its clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Certificate ¶
func Certificate( t testing.TB, parent *x509.Certificate, parentKey *ecdsa.PrivateKey, serverName string, client bool, ) (tls.Certificate, *x509.Certificate, *ecdsa.PrivateKey)
Certificate issues a P-256 certificate signed by parent, or a self-signed CA when parent is nil. Client certificates carry clientIdentity; server certificates name localhost or example.test.
func ServeExecutor ¶
ServeExecutor serves register's services in memory, as one executor Pod would.
Types ¶
type Options ¶
type Options struct {
Ready func() bool
// Executor receives file and command calls; nil refuses them.
Executor grpc.ClientConnInterface
// NoExecutorServices omits the executor services, as older providers do.
NoExecutorServices bool
// Wrap, if set, intercepts the provider API.
Wrap func(executionv1.ExecutionProviderServiceServer) executionv1.ExecutionProviderServiceServer
}
Options configures ServeProvider.