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/*"),
}
)
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 ¶
Types ¶
type MockServers ¶
type MockServers struct { API *mock.MockTigrisServer Mgmt *mock.MockManagementServer Auth *mock.MockAuthServer O11y *mock.MockObservabilityServer Search *mock.MockSearchServer }
func SetupTests ¶
func SetupTests(t *testing.T, portShift int) (*MockServers, func())
Click to show internal directories.
Click to hide internal directories.