clitest

package
v1.20.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerTestSuite

type HandlerTestSuite struct {
	*require.Assertions // override suite.Suite.Assertions with require.Assertions; this means that s.NotNil(nil) will stop the test, not merely log an error
	suite.Suite
	// contains filtered or unexported fields
}

HandlerTestSuite defines a test suite

func NewHandlerTestSuite

func NewHandlerTestSuite(
	host string,
	port string,
	pluginName string,
) *HandlerTestSuite

NewHandlerTestSuite returns a test suite

func (*HandlerTestSuite) SetupTest

func (s *HandlerTestSuite) SetupTest()

SetupTest setups test

func (*HandlerTestSuite) TestValidateConnectConfig

func (s *HandlerTestSuite) TestValidateConnectConfig()

TestValidateConnectConfig test

type SQLConnTestSuite

type SQLConnTestSuite struct {
	test.DBTestBase
	// contains filtered or unexported fields
}

SQLConnTestSuite defines a test suite

func NewSQLConnTestSuite

func NewSQLConnTestSuite(
	host string,
	port string,
	pluginName string,
	sqlQuery string,
) *SQLConnTestSuite

NewSQLConnTestSuite returns the test suite

func (*SQLConnTestSuite) SetupSuite

func (s *SQLConnTestSuite) SetupSuite()

SetupSuite setups test suite

func (*SQLConnTestSuite) SetupTest

func (s *SQLConnTestSuite) SetupTest()

SetupTest setups test

func (*SQLConnTestSuite) TearDownSuite

func (s *SQLConnTestSuite) TearDownSuite()

TearDownSuite tear down test suite

func (*SQLConnTestSuite) TestParseCQLFile

func (s *SQLConnTestSuite) TestParseCQLFile()

TestParseCQLFile test

func (*SQLConnTestSuite) TestSQLConn

func (s *SQLConnTestSuite) TestSQLConn()

TestSQLConn test

type SetupSchemaTestSuite

type SetupSchemaTestSuite struct {
	test.SetupSchemaTestBase
	// contains filtered or unexported fields
}

SetupSchemaTestSuite defines a test suite

func NewSetupSchemaTestSuite

func NewSetupSchemaTestSuite(
	host string,
	port string,
	pluginName string,
	sqlQuery string,
) *SetupSchemaTestSuite

NewSetupSchemaTestSuite returns a test suite

func (*SetupSchemaTestSuite) SetupSuite

func (s *SetupSchemaTestSuite) SetupSuite()

SetupSuite setup test suite

func (*SetupSchemaTestSuite) TearDownSuite

func (s *SetupSchemaTestSuite) TearDownSuite()

TearDownSuite tear down test suite

func (*SetupSchemaTestSuite) TestCreateDatabase

func (s *SetupSchemaTestSuite) TestCreateDatabase()

TestCreateDatabase test

func (*SetupSchemaTestSuite) TestCreateDatabaseIdempotent added in v1.14.0

func (s *SetupSchemaTestSuite) TestCreateDatabaseIdempotent()

func (*SetupSchemaTestSuite) TestSetupSchema

func (s *SetupSchemaTestSuite) TestSetupSchema()

TestSetupSchema test

type UpdateSchemaTestSuite

type UpdateSchemaTestSuite struct {
	test.UpdateSchemaTestBase
	// contains filtered or unexported fields
}

UpdateSchemaTestSuite defines a test suite

func NewUpdateSchemaTestSuite

func NewUpdateSchemaTestSuite(
	host string,
	port string,
	pluginName string,
	sqlQuery string,
	executionSchemaVersionDir string,
	executionVersion string,
	visibilitySchemaVersionDir string,
	visibilityVersion string,
) *UpdateSchemaTestSuite

NewUpdateSchemaTestSuite returns a test suite

func (*UpdateSchemaTestSuite) SetupSuite

func (s *UpdateSchemaTestSuite) SetupSuite()

SetupSuite setups test suite

func (*UpdateSchemaTestSuite) TearDownSuite

func (s *UpdateSchemaTestSuite) TearDownSuite()

TearDownSuite tear down test suite

func (*UpdateSchemaTestSuite) TestDryrun

func (s *UpdateSchemaTestSuite) TestDryrun()

TestDryrun test

func (*UpdateSchemaTestSuite) TestUpdateSchema

func (s *UpdateSchemaTestSuite) TestUpdateSchema()

TestUpdateSchema test

func (*UpdateSchemaTestSuite) TestVisibilityDryrun

func (s *UpdateSchemaTestSuite) TestVisibilityDryrun()

TestVisibilityDryrun test

type VersionTestSuite

type VersionTestSuite struct {
	*require.Assertions // override suite.Suite.Assertions with require.Assertions; this means that s.NotNil(nil) will stop the test, not merely log an error
	suite.Suite
	// contains filtered or unexported fields
}

VersionTestSuite defines a test suite

func NewVersionTestSuite

func NewVersionTestSuite(
	host string,
	port string,
	pluginName string,
	executionSchemaFileLocation string,
	visibilitySchemaFileLocation string,
) *VersionTestSuite

NewVersionTestSuite returns a test suite

func (*VersionTestSuite) SetupTest

func (s *VersionTestSuite) SetupTest()

SetupTest setups test suite

func (*VersionTestSuite) TestVerifyCompatibleVersion

func (s *VersionTestSuite) TestVerifyCompatibleVersion()

TestVerifyCompatibleVersion test

Jump to

Keyboard shortcuts

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