Documentation ¶
Index ¶
- type Data
- type TestSuite
- func (s *TestSuite) GetAuthService(tenantID uuid.UUID) auth.Service
- func (s *TestSuite) GetClusterService() cluster.Service
- func (s *TestSuite) GetConfig() *configuration.Data
- func (s *TestSuite) SetupTest()
- func (s *TestSuite) TearDownTest()
- func (s *TestSuite) VerifyObjectsPresence(t *testing.T, nsBaseName, version string, required bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data encapsulates the Viper configuration object which stores the configuration data in-memory.
func NewData ¶
NewData creates a configuration reader object using a configurable configuration file path
func (*Data) GetMinishiftAdminName ¶
GetMinishiftAdminName returns the Minishift admin name
func (*Data) GetMinishiftAdminToken ¶
GetMinishiftAdminToken returns the Minishift admin token
func (*Data) GetMinishiftURL ¶
GetMinishiftURL returns the Minishift URL
func (*Data) GetMinishiftUserName ¶
GetMinishiftUserName returns the Minishift user name
func (*Data) GetMinishiftUserToken ¶
GetMinishiftUserToken returns the Minishift user token
type TestSuite ¶
type TestSuite struct { gormsupport.DBTestSuite ClusterService *stub.ClusterService Config *configuration.Data // contains filtered or unexported fields }
TestSuite is a base for tests using Minishift and gorm db
func (*TestSuite) GetAuthService ¶
func (*TestSuite) GetClusterService ¶
func (*TestSuite) GetConfig ¶
func (s *TestSuite) GetConfig() *configuration.Data
func (*TestSuite) TearDownTest ¶
func (s *TestSuite) TearDownTest()
Click to show internal directories.
Click to hide internal directories.