test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package test contains testing helpers

Index

Constants

This section is empty.

Variables

View Source
var CaCert = `` /* 1104-byte string literal not displayed */
View Source
var (
	HTTPRoutes = []string{
		apiPathPrefix + ("/projects"),
		apiPathPrefix + ("/projects/*"),
		apiPathPrefix + ("/collections/*"),
		apiPathPrefix + ("/documents/*"),
		apiPathPrefix + ("/management/*"),
		apiPathPrefix + ("/observability/*"),
		apiPathPrefix + ("/auth/*"),
		apiPathPrefix + ("/apps/*"),
	}
)
View Source
var ServerCert = `` /* 998-byte string literal not displayed */
View Source
var ServerKey = `` /* 917-byte string literal not displayed */
View Source
var URL func(shift int) string

Functions

func GRPCURL

func GRPCURL(shift int) string

func HTTPURL

func HTTPURL(shift int) string

func SetupTLS

func SetupTLS(t *testing.T) *tls.Config

Types

type MockServers

func SetupTests

func SetupTests(t *testing.T, portShift int) (*MockServers, func())

Jump to

Keyboard shortcuts

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