testhelpers

package
v0.0.0-...-270f78c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Zlib Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntegrationTest

func IntegrationTest(t *testing.T)

IntegrationTest marks the current test as an integration test

func NewComposeStackManager

func NewComposeStackManager() *composeStackManager

func NewDatastore

func NewDatastore(options ...datastoreOption) *testDatastore

NewDatastore creates new instance of testDatastore. Will apply options before returning, opts will be applied from left to right.

func NewGitService

func NewGitService() *gitService

NewGitService creates new mock for portainer.GitService.

func NewTestRequestBouncer

func NewTestRequestBouncer() *testRequestBouncer

NewTestRequestBouncer creates new mock for requestBouncer

func WithEdgeJobs

func WithEdgeJobs(js []portainer.EdgeJob) datastoreOption

WithEdgeJobs option will instruct testDatastore to return provided jobs

func WithEndpointRelations

func WithEndpointRelations(relations []portainer.EndpointRelation) datastoreOption

WithEndpointRelations option will instruct testDatastore to return provided jobs

func WithEndpoints

func WithEndpoints(endpoints []portainer.Endpoint) datastoreOption

WithEndpoints option will instruct testDatastore to return provided environments(endpoints)

func WithSettingsService

func WithSettingsService(settings *portainer.Settings) datastoreOption

func WithUsers

func WithUsers(us []portainer.User) datastoreOption

WithUsers testDatastore option that will instruct testDatastore to return provided users

Types

This section is empty.

Jump to

Keyboard shortcuts

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