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.
Click to show internal directories.
Click to hide internal directories.