test

command
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Registry Client ReleaseInfo Provider Test

The purpose of this test is to validate that the registryclient provider will not cause excessive memory usage during normal controller operation even when streaming very large images.

Test Setup

Build the two Dockerfiles in this directory using the root of the hypershift directory as context, push them to a registry, and then launch the pod that will run the test.

CONTAINER_CLIENT=podman  # Can be docker

TEST_IMAGE_REF=quay.io/myns/registryclient_test:test   # Use your own registry and namespace here
LARGE_IMAGE_REF=quay.io/myns/registryclient_test:large # Use your own registry and namespace here

$CONTAINER_CLIENT build -t "${TEST_IMAGE_REF}" -f releaseinfo/registryclient/test/Dockerfile.testdriver .
$CONTAINER_CLIENT build -t "${LARGE_IMAGE_REF}" -f releaseinfo/registryclient/test/Dockerfile.large .
$CONTAINER_CLIENT push "${TEST_IMAGE_REF}"
$CONTAINER_CLIENT push "${LARGE_IMAGE_REF}"

oc project registryclient-test || oc new-project registryclient-test
oc process -f ./releaseinfo/registryclient/test/testpod-template.yaml --local \
   --param TEST_CONTAINER_IMAGE="${TEST_IMAGE_REF}" \
   --param TEST_LARGE_IMAGE="${LARGE_IMAGE_REF}" -o yaml | oc apply -f -

If the created pod is successful, then the test has passed.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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