To run the end to end tests, you must have the following utilities installed on your test runner. The test script checks for the specific version referenced. While a package installer will install the utility, it may install a newer, or different version than the one specified. Be sure to install these versions.
Set environment variables
export KBLD_E2E_DOCKERHUB_USERNAME=joeexampleTo use a registry other than DockerHub, set the KBLD_E2E_DOCKERHUB_HOSTNAME variable. You can specify a local registry or use an anonymous service, such as ttl.sh. You will need to authenticate with non-anonymous registeries for the tests to pass.
# OPTIONAL
export KBLD_E2E_DOCKERHUB_HOSTNAME=ttl.shIt is possible to specify the absolute path to the kbld binary that you wish to test with. This could be useful for testing a version installed by a package manager, or a previously built custom binary in non-standard location. This value defaults to the local binary.
# OPTIONAL
export KBLD_BINARY_PATH=/usr/local/bin/kbldRun the end to end tests
$ ./hack/test-e2e.sh
$ ./hack/test-e2e.sh -run TestVersionSee ./test/e2e/env.go for required environment variables for some tests.