test

package
v0.0.0-...-9c50de7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertError

func AssertError(t *testing.T, actualResponse *httptest.ResponseRecorder, expectedErrorCode int, expectedMessageAndDetails ...string)

AssertError asserts that the provided response contains the expected error

Types

type UnitTestSuite

type UnitTestSuite struct {
	suite.Suite
	ConfigClient *test.FakeClient
}

UnitTestSuite is the base test suite for unit tests.

func (*UnitTestSuite) DefaultConfig

func (*UnitTestSuite) OverrideApplicationDefault

func (s *UnitTestSuite) OverrideApplicationDefault(opts ...testconfig.ToolchainConfigOption)

func (*UnitTestSuite) SetSecret

func (s *UnitTestSuite) SetSecret(secret *corev1.Secret)

func (*UnitTestSuite) SetupDefaultApplication

func (s *UnitTestSuite) SetupDefaultApplication()

func (*UnitTestSuite) SetupSuite

func (s *UnitTestSuite) SetupSuite()

SetupSuite sets the suite up and sets testmode.

func (*UnitTestSuite) SetupTest

func (s *UnitTestSuite) SetupTest()

func (*UnitTestSuite) TearDownSuite

func (s *UnitTestSuite) TearDownSuite()

TearDownSuite tears down the test suite.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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