Documentation ¶
Index ¶
- Constants
- type GuestBookTest
- func (t *GuestBookTest) Cleanup(ctx context.Context, shootTestOperations *framework.GardenerTestOperation)
- func (t *GuestBookTest) DeployGuestBookApp(ctx context.Context, gardenerTestOperations *framework.GardenerTestOperation)
- func (t *GuestBookTest) Test(ctx context.Context, gardenerTestOperations *framework.GardenerTestOperation)
- func (t *GuestBookTest) WaitUntilPrerequisitesAreReady(ctx context.Context, gardenerTestOperations *framework.GardenerTestOperation)
Constants ¶
View Source
const ( // GuestBook is the name of the guestbook k8s resources GuestBook = "guestbook" // RedisMaster is the name of the redis master deployed by the helm chart RedisMaster = "redis-master" // RedisSlave is the name of the redis-slave deployed by the helm chart RedisSlave = "redis-slave" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuestBookTest ¶
type GuestBookTest struct {
// contains filtered or unexported fields
}
GuestBookTest is simple application tests. It deploys a guestbook application with a redis backend and a frontend that is exposed via an ingress.
func NewGuestBookTest ¶
func NewGuestBookTest(resourcesDir string) (*GuestBookTest, error)
NewGuestBookTest creates a new guestbook application test It takes the path to the test resources.
func (*GuestBookTest) Cleanup ¶
func (t *GuestBookTest) Cleanup(ctx context.Context, shootTestOperations *framework.GardenerTestOperation)
Cleanup cleans up all resources depoyed by the guestbook test
func (*GuestBookTest) DeployGuestBookApp ¶
func (t *GuestBookTest) DeployGuestBookApp(ctx context.Context, gardenerTestOperations *framework.GardenerTestOperation)
DeployGuestBookApp deploys the redis helmchart and the guestbook app application
func (*GuestBookTest) Test ¶
func (t *GuestBookTest) Test(ctx context.Context, gardenerTestOperations *framework.GardenerTestOperation)
Test tests that a deployed guestbook application is working correctly
func (*GuestBookTest) WaitUntilPrerequisitesAreReady ¶
func (t *GuestBookTest) WaitUntilPrerequisitesAreReady(ctx context.Context, gardenerTestOperations *framework.GardenerTestOperation)
WaitUntilPrerequisitesAreReady waits until the redis master and slave is ready.
Click to show internal directories.
Click to hide internal directories.