fctesting

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogEntry

func NewLogEntry(t testing.TB) *log.Entry

NewLogEntry creates log.Entry. The level is specified by "FC_TEST_LOG_LEVEL" environment variable

func RequiresRoot

func RequiresRoot(t testing.TB)

RequiresRoot will ensure that tests that require root access are actually root. In addition, this will skip root tests if the DISABLE_ROOT_TESTS is set to true

Types

type MockClient

type MockClient struct {
	GetMmdsFn                        func(params *ops.GetMmdsParams) (*ops.GetMmdsOK, error)
	PatchMmdsFn                      func(params *ops.PatchMmdsParams) (*ops.PatchMmdsNoContent, error)
	PutMmdsFn                        func(params *ops.PutMmdsParams) (*ops.PutMmdsNoContent, error)
	CreateSyncActionFn               func(params *ops.CreateSyncActionParams) (*ops.CreateSyncActionNoContent, error)
	DescribeInstanceFn               func(params *