Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunWithStore ¶
RunWithStore starts new isolated etcd store, defers teardown and then runs given closure with store.
Ex. RunWithStore(func (store store.Store) { err := store.CreateCheck(...) assert.NoError(err) })
Types ¶
type IntegrationTestStore ¶
IntegrationTestStore wrapper for etcd & store
func NewStoreInstance ¶
func NewStoreInstance() (*IntegrationTestStore, error)
NewStoreInstance returns new isolated store
func (*IntegrationTestStore) GetStore ¶
func (e *IntegrationTestStore) GetStore() store.Store
GetStore return etcd client
func (*IntegrationTestStore) Teardown ¶
func (e *IntegrationTestStore) Teardown()
Teardown etcd and remove temp directory
Click to show internal directories.
Click to hide internal directories.