integration

package
v0.0.0-...-075157f Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package integration contains EN Server integration tests.

Index

Constants

This section is empty.

Variables

View Source
var (
	ExportDir    = "my-bucket"
	FileNameRoot = "/"
)

Functions

This section is empty.

Types

type Client

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

Client provides Exposure Notifications API client to support integration testing.

func NewTestServer

func NewTestServer(tb testing.TB, exportPeriod time.Duration) (*serverenv.ServerEnv, *Client, *database.DB)

NewTestServer sets up clients used for integration tests

func (*Client) CleanupExports

func (c *Client) CleanupExports() error

func (*Client) CleanupExposures

func (c *Client) CleanupExposures() error

func (*Client) ExportBatches

func (c *Client) ExportBatches() error

func (*Client) PublishKeys

func (c *Client) PublishKeys(payload *verifyapi.Publish) error

func (*Client) StartExportWorkers

func (c *Client) StartExportWorkers() error

Jump to

Keyboard shortcuts

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