pachyderm: github.com/pachyderm/pachyderm/src/server/pkg/testetcd Index | Files

package testetcd

import "github.com/pachyderm/pachyderm/src/server/pkg/testetcd"

Index

Package Files

env.go

func WithEnv Uses

func WithEnv(cb func(*Env) error) (err error)

WithEnv constructs a default Env for testing during the lifetime of the callback.

type Env Uses

type Env struct {
    Context    context.Context
    Directory  string
    Etcd       *embed.Etcd
    EtcdClient *etcd.Client
}

Env contains the basic setup for running end-to-end pachyderm tests entirely locally within the test process. It provides a temporary directory for storing data, and an embedded etcd server with a connected client.

Package testetcd imports 13 packages (graph) and is imported by 1 packages. Updated 2020-08-12. Refresh now. Tools for package owners.