Documentation
¶
Index ¶
- Constants
- type GuestBookTest
- func (t *GuestBookTest) Cleanup(ctx context.Context)
- func (t *GuestBookTest) DeployGuestBookApp(ctx context.Context)
- func (t *GuestBookTest) Test(ctx context.Context)
- func (t *GuestBookTest) WaitUntilGuestbookDeploymentIsReady(ctx context.Context)
- func (t *GuestBookTest) WaitUntilGuestbookURLsRespondOK(ctx context.Context, guestbookAppUrls []string) error
- func (t *GuestBookTest) WaitUntilRedisIsReady(ctx context.Context)
Constants ¶
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" )
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(f *framework.ShootFramework) (*GuestBookTest, error)
NewGuestBookTest creates a new guestbook application test This test should run inside a testframework with a registered shoot test because otherwise created resources may leak.
func (*GuestBookTest) Cleanup ¶
func (t *GuestBookTest) Cleanup(ctx context.Context)
Cleanup cleans up all resources depoyed by the guestbook test
func (*GuestBookTest) DeployGuestBookApp ¶
func (t *GuestBookTest) DeployGuestBookApp(ctx context.Context)
DeployGuestBookApp deploys the redis helmchart and the guestbook app application
func (*GuestBookTest) Test ¶
func (t *GuestBookTest) Test(ctx context.Context)
Test tests that a deployed guestbook application is working correctly
func (*GuestBookTest) WaitUntilGuestbookDeploymentIsReady ¶ added in v1.5.0
func (t *GuestBookTest) WaitUntilGuestbookDeploymentIsReady(ctx context.Context)
WaitUntilGuestbookDeploymentIsReady waits until the guestbook deployment is ready.
func (*GuestBookTest) WaitUntilGuestbookURLsRespondOK ¶ added in v1.5.0
func (t *GuestBookTest) WaitUntilGuestbookURLsRespondOK(ctx context.Context, guestbookAppUrls []string) error
WaitUntilGuestbookURLsRespondOK waits until the deployed guestbook application can be reached via http
func (*GuestBookTest) WaitUntilRedisIsReady ¶ added in v1.5.0
func (t *GuestBookTest) WaitUntilRedisIsReady(ctx context.Context)
WaitUntilRedisIsReady waits until the redis master is ready.