Documentation ¶
Overview ¶
Package itm (Integration Tests Manager) is intended to be used onlyin integration tests. Should never be usedin production environments or live processing. It should never be included by anything outside the "_test.go" files.
Index ¶
- type IntegrationTestsDataSource
- func (i *IntegrationTestsDataSource) DbAddress() string
- func (i *IntegrationTestsDataSource) DbAuth() string
- func (i *IntegrationTestsDataSource) DbFullAddress() string
- func (i *IntegrationTestsDataSource) DbPassword() string
- func (i *IntegrationTestsDataSource) DbPort() int
- func (i *IntegrationTestsDataSource) DbPortString() string
- func (i *IntegrationTestsDataSource) DbUserName() string
- func (i *IntegrationTestsDataSource) S3Bucket() string
- func (i *IntegrationTestsDataSource) S3Endpoint() string
- func (i *IntegrationTestsDataSource) S3Id() string
- func (i *IntegrationTestsDataSource) S3Region() string
- func (i *IntegrationTestsDataSource) S3Secret() string
- func (i *IntegrationTestsDataSource) S3Token() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntegrationTestsDataSource ¶
type IntegrationTestsDataSource struct {
// contains filtered or unexported fields
}
IntegrationTestsDataSource in memory structure used to memorise all available testing context vars.
func S ¶
func S() *IntegrationTestsDataSource
S returns an IntegrationTestsDataSource instance using a singleton pattern. If a shared instance exists returns it otherwise creates a new one, populates it with environment vars or costants and set it as shared instance.
func (*IntegrationTestsDataSource) DbAddress ¶
func (i *IntegrationTestsDataSource) DbAddress() string
DbAddress return singleton integration tests db address as a string.
func (*IntegrationTestsDataSource) DbAuth ¶
func (i *IntegrationTestsDataSource) DbAuth() string
DbAuth returns singleton integration tests authorisation db name as a string.
func (*IntegrationTestsDataSource) DbFullAddress ¶
func (i *IntegrationTestsDataSource) DbFullAddress() string
DbFullAddress returns db full address composed with all previously returned elements.
func (*IntegrationTestsDataSource) DbPassword ¶
func (i *IntegrationTestsDataSource) DbPassword() string
DbPassword returns singleton integration tests db password as a string.
func (*IntegrationTestsDataSource) DbPort ¶
func (i *IntegrationTestsDataSource) DbPort() int
DbPort returns singleton integration tests db port as an integer.
func (*IntegrationTestsDataSource) DbPortString ¶
func (i *IntegrationTestsDataSource) DbPortString() string
DbPortString returns singleton integration tests db port as a string.
func (*IntegrationTestsDataSource) DbUserName ¶
func (i *IntegrationTestsDataSource) DbUserName() string
DbUserName returns singleton integration tests db username as a string.
func (*IntegrationTestsDataSource) S3Bucket ¶
func (i *IntegrationTestsDataSource) S3Bucket() string
S3Bucket the S3 bucket name.
func (*IntegrationTestsDataSource) S3Endpoint ¶
func (i *IntegrationTestsDataSource) S3Endpoint() string
S3Endpoint S3 endpoint address.
func (*IntegrationTestsDataSource) S3Id ¶
func (i *IntegrationTestsDataSource) S3Id() string
S3Id returns s3 id string for credentials.
func (*IntegrationTestsDataSource) S3Region ¶
func (i *IntegrationTestsDataSource) S3Region() string
S3Region the S3 region address.
func (*IntegrationTestsDataSource) S3Secret ¶
func (i *IntegrationTestsDataSource) S3Secret() string
S3Secret returns s3 secret string.
func (*IntegrationTestsDataSource) S3Token ¶
func (i *IntegrationTestsDataSource) S3Token() string
S3Token the s3 token value.