integration

package
v0.0.0-...-f1c747c Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: Apache-2.0 Imports: 14 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

Map integration test

To run the Map 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 map_integration_test.sh.

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.

func RunMapIntegration

func RunMapIntegration(ctx context.Context, mapID int64, client trillian.TrillianMapClient) error

RunMapIntegration runs a map integration test using the given map ID and client.

Types

type TestParameters

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

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 quota contains quota-related integration tests.
Package quota contains quota-related integration tests.

Jump to

Keyboard shortcuts

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