integration

package
v1.5.1 Latest Latest
Warning

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

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

README

Integration tests

This directory 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.

Running the tests

Log integration test

To run the Log integration test, ensure that you have a mysql database configured and running, with the Trillian schema loaded (see the main README for details), and then run log_integration_test.sh.

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

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 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.

Directories

Path Synopsis
Package admin contains integration tests for the Admin server.
Package admin contains integration tests for the Admin server.
Package format contains an integration test which builds a log using an in-memory storage end-to-end, and makes sure the SubtreeProto storage format has no regressions.
Package format contains an integration test which builds a log using an in-memory storage end-to-end, and makes sure the SubtreeProto storage format has no regressions.
Package quota contains quota-related integration tests.
Package quota contains quota-related integration tests.
Package storagetest contains tests and helpers for storage implementations.
Package storagetest contains tests and helpers for storage implementations.

Jump to

Keyboard shortcuts

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