servertesting

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package servertesting provides helpers for launching and testing Kopia server.

Index

Constants

View Source
const (
	TestUsername = "foo"
	TestHostname = "bar"
	TestPassword = "123"

	TestUIUsername = "ui-user"
	TestUIPassword = "123456"
)

Variables

This section is empty.

Functions

func ConnectAndOpenAPIServer

func ConnectAndOpenAPIServer(t *testing.T, ctx context.Context, asi *repo.APIServerInfo, rco repo.ClientOptions, caching content.CachingOptions, password string, opt *repo.Options) (repo.Repository, error)

ConnectAndOpenAPIServer creates temporary config file and to and opens API server for testing.

func StartServer

func StartServer(t *testing.T, env *repotesting.Environment, tls bool) *repo.APIServerInfo

StartServer starts a test server and returns APIServerInfo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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