test

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

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