package integration

import "github.com/google/trillian/integration"

Package integration contains some integration tests which are intended to serve as a way of checking that various top-level binaries work as intended, as well as providing a simple example of how to run and use the various servers.

Index

Functions

func RunLogIntegration

func RunLogIntegration(client trillian.TrillianLogClient, params TestParameters) error

RunLogIntegration runs a log integration test using the given client and test parameters.

Types

type MapInfo

type MapInfo struct {
	// contains filtered or unexported fields
}

MapInfo describes an in-progress integration test.

func New

New builds a MapInfo to track the progress of an integration test run.

func (*MapInfo) RunIntegration

func (mi *MapInfo) RunIntegration(ctx context.Context) error

RunIntegration runs a simple Map integration test. nolint: gocyclo

type TestParameters

type TestParameters struct {
	TreeID              int64
	CheckLogEmpty       bool
	QueueLeaves         bool
	AwaitSequencing     bool
	StartLeaf           int64
	LeafCount           int64
	UniqueLeaves        int64
	QueueBatchSize      int
	SequencerBatchSize  int
	ReadBatchSize       int64
	SequencingWaitTotal time.Duration
	SequencingPollWait  time.Duration
	RPCRequestDeadline  time.Duration
	CustomLeafPrefix    string
}

TestParameters bundles up all the settings for a test run

func DefaultTestParameters

func DefaultTestParameters(treeID int64) TestParameters

DefaultTestParameters builds a TestParameters object for a normal test of the given log.

Source Files

doc.go log.go map.go

Directories

PathSynopsis
integration/adminPackage admin contains integration tests for the Admin server.
integration/maptest
integration/quotaPackage quota contains quota-related integration tests.
integration/storagetestPackage storagetest verifies that storage interfaces behave correctly
Version
v1.3.8
Published
Feb 18, 2020
Platform
js/wasm
Imports
18 packages
Last checked
6 hours ago

Tools for package owners.