Documentation ¶
Index ¶
- Constants
- func CheckPageContains(oc *exutil.CLI, endpoint, path, contents string) (bool, error)
- func CheckPageRegexp(oc *exutil.CLI, endpoint, path, regex string, index int) (bool, string, error)
- func CreateMySQLReplicationHelpers(c kcoreclient.PodInterface, ...) (exutil.Database, []exutil.Database, exutil.Database)
- func CreatePostgreSQLReplicationHelpers(c kcoreclient.PodInterface, ...) (exutil.Database, []exutil.Database, exutil.Database)
- func GetTestCaseForImages() map[string][]tc
- func NewSampleRepoTest(c sampleRepoConfig) func()
- func PostgreSQLReplicationTestFactory(oc *exutil.CLI, image string, cleanup func()) func()
- func RunInPodContainer(oc *exutil.CLI, selector labels.Selector, cmd []string) error
- func WaitForPolicyUpdate(c authorizationv1client.SelfSubjectAccessReviewsGetter, namespace, verb string, ...) error
- type ImageBaseType
Constants ¶
const ( PolicyCachePollInterval = 100 * time.Millisecond PolicyCachePollTimeout = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func CheckPageContains ¶
CheckPageContains makes a http request for an example application and checks that the result contains given string
func CheckPageRegexp ¶
CheckPageRegexp makes a http request for an example application and checks that the result satisfies a given regexp; it will also return the submatch array entry present at index for possible comparisons
func CreateMySQLReplicationHelpers ¶
func CreateMySQLReplicationHelpers(c kcoreclient.PodInterface, masterDeployment, slaveDeployment, helperDeployment string, slaveCount int) (exutil.Database, []exutil.Database, exutil.Database)
CreateMySQLReplicationHelpers creates a set of MySQL helpers for master, slave and an extra helper that is used for remote login test.
func CreatePostgreSQLReplicationHelpers ¶
func CreatePostgreSQLReplicationHelpers(c kcoreclient.PodInterface, masterDeployment, slaveDeployment, helperDeployment string, slaveCount int) (exutil.Database, []exutil.Database, exutil.Database)
CreatePostgreSQLReplicationHelpers creates a set of PostgreSQL helpers for master, slave an en extra helper that is used for remote login test.
func GetTestCaseForImages ¶
func GetTestCaseForImages() map[string][]tc
func NewSampleRepoTest ¶
func NewSampleRepoTest(c sampleRepoConfig) func()
NewSampleRepoTest creates a function for a new ginkgo test case that will instantiate a template from a url, kick off the buildconfig defined in that template, wait for the build/deploy, and then confirm the application is serving an expected string value.
func RunInPodContainer ¶
RunInPodContainer will run provided command in the specified pod container.
func WaitForPolicyUpdate ¶
func WaitForPolicyUpdate(c authorizationv1client.SelfSubjectAccessReviewsGetter, namespace, verb string, resource schema.GroupResource, allowed bool) error
WaitForPolicyUpdate checks if the given client can perform the named verb and action. If PolicyCachePollTimeout is reached without the expected condition matching, an error is returned
Types ¶
type ImageBaseType ¶
type ImageBaseType string