drivertest

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package drivertest provides a conformance test for implementations of the secrets driver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunConformanceTests

func RunConformanceTests(t *testing.T, newHarness HarnessMaker)

RunConformanceTests runs conformance tests for provider implementations of secret management.

Types

type Harness

type Harness interface {
	// MakeDriver returns an Encypter and a Decrypter for use in tests.
	MakeDriver(ctx context.Context) (driver.Crypter, error)
}

Harness descibes the functionality test harnesses must provide to run conformance tests.

type HarnessMaker

type HarnessMaker func(ctx context.Context, t *testing.T) (Harness, error)

HarnessMaker describes functions that construct a harness for running tests. It is called exactly once per test.

Jump to

Keyboard shortcuts

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