shared

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Overview

Package shared contains functions and types that can be used across various versions of conformance tests, e.g. checkers, requests senders, etc.

Index

Constants

This section is empty.

Variables

View Source
var DigestResolutionExceptions = sets.NewString("kind.local", "ko.local", "dev.local")

DigestResolutionExceptions holds the set of "registry" domains for which digest resolution is not required. These "registry" domains are generally associated with images that aren't actually published to a registry, but side-loaded into the cluster's container daemon via an operation like `docker load` or `kind load`.

Functions

func CheckDistribution

func CheckDistribution(ctx context.Context, t testing.TB, clients *test.Clients, url *url.URL, num, min int, expectedResponses []string, resolvable bool) error

CheckDistribution sends "num" requests to "domain", then validates that we see each body in "expectedResponses" at least "min" times.

func ValidateImageDigest

func ValidateImageDigest(t *testing.T, imageName string, imageDigest string) (bool, error)

ValidateImageDigest validates the image digest.

func WaitForScaleToZero

func WaitForScaleToZero(t testing.TB, deploymentName string, clients *test.Clients) error

WaitForScaleToZero will wait for the specified deployment to scale to 0 replicas. Will wait up to 6 times the scaleToZeroGracePeriod (30 seconds) before failing.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL