test

package
v2.25.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 45 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	IDENTITY_STORE_HOST     = "localhost:30000"
	RESOURCE_AGGREGATE_HOST = "localhost:30003"
	RESOURCE_DIRECTORY_HOST = "localhost:30004"
	C2C_CONNECTOR_HOST      = "localhost:30006"
	OAUTH_HOST              = "localhost:30007"
	GRPC_GATEWAY_HOST       = "localhost:30008"
	C2C_CONNECTOR_DB        = "cloudConnectorDB"
	C2C_CONNECTOR_NATS_URL  = "nats://localhost:34222"
)
View Source
const (
	OAUTH_MANAGER_CLIENT_ID = oauthTest.ClientTest
	OAUTH_MANAGER_AUDIENCE  = "localhost"
)

Variables

View Source
var (
	C2C_CONNECTOR_EVENTS_URL        = http.HTTPS_SCHEME + C2C_CONNECTOR_HOST + c2curi.Events
	C2C_CONNECTOR_OAUTH_CALLBACK    = http.HTTPS_SCHEME + C2C_CONNECTOR_HOST + c2curi.OAuthCallback
	OAUTH_MANAGER_ENDPOINT_TOKENURL = http.HTTPS_SCHEME + OAUTH_HOST + uri.Token
)

Functions

func MakeAuthorizationConfig

func MakeAuthorizationConfig() service.AuthorizationConfig

func MakeConfig

func MakeConfig(t require.TestingT) service.Config

func MakeStorageConfig

func MakeStorageConfig() service.StorageConfig

func New

func New(t require.TestingT, cfg service.Config) func()

func NewMongoStore

func NewMongoStore(t *testing.T) (*mongodb.Store, func())

func SetUp

func SetUp(t require.TestingT) (tearDown func())

func SetUpCloudWithConnector

func SetUpCloudWithConnector(t *testing.T) (tearDown func())

func SetUpClouds

func SetUpClouds(ctx context.Context, t *testing.T, deviceID string, supportedEvents store.Events, switchIDs ...string) func()

Types

This section is empty.

Jump to

Keyboard shortcuts

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