Skip to content
Branch: master
Find file History
mattmoor and knative-prow-robot Update to k8s 1.12.6 and pkg @ HEAD (#581)
I had to pin a ton of packages to get things working.  In every case I basically just pinned the version in knative/serving.

This also makes a variety of updates to the e2e tests to track changes in the upstream testing libraries.
Latest commit dc0137f Mar 20, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
build-with-timeout Remove builder interface, linearize pod creation and watching (#464) Nov 26, 2018
configmap
custom-env
custom-source-cluster
custom-source
custom-volume Rename //tests to //test to keep naming uniform across the repos. (#253) Jul 13, 2018
docker-basic use base64 -w0 instead of some random high number (#343) Sep 11, 2018
e2e Update to k8s 1.12.6 and pkg @ HEAD (#581) Mar 20, 2019
fail
gcs-archive
git-source Rename //tests to //test to keep naming uniform across the repos. (#253) Jul 13, 2018
git-ssh use base64 -w0 instead of some random high number (#343) Sep 11, 2018
git-volume
home-volume
home
multiple-steps
panic include licenses in all published containers (#440) Oct 25, 2018
reuse-git-init Multiple Input sources (#451) Nov 8, 2018
secret-env Rename //tests to //test to keep naming uniform across the repos. (#253) Jul 13, 2018
secret-volume Rename //tests to //test to keep naming uniform across the repos. (#253) Jul 13, 2018
serviceaccount
sources Add e2e test for sources with targetpath (#463) Nov 9, 2018
step-status
subpath Add support for building from a subdirectory (#245) Jul 21, 2018
template-args
template-env-merge
template-volume Rename //tests to //test to keep naming uniform across the repos. (#253) Jul 13, 2018
template-volumes-args
unnamed-steps
workingdir
workspace
OWNERS
README.md Use the default build/unit/integration test runners (#531) Jan 14, 2019
columns.txt
e2e-common.sh
e2e-tests-yaml.sh
e2e-tests.sh
presubmit-tests.sh Use the default build/unit/integration test runners (#531) Jan 14, 2019

README.md

Test

This directory contains tests and testing docs for Knative Build:

Running unit tests

To run all unit tests:

go test ./...

By default go test will not run the e2e tests, which need -tags=e2e to be enabled.

Running end to end tests

Environment requirements

Setting up a running Knative Build cluster.

  1. A Kubernetes cluster v1.10 or newer with the MutatingAdmissionWebhook admission controller enabled. kubectl v1.10 is also required. see here

  2. Configure ko to point to your registry. see here

Go e2e tests

To run the Go e2e tests, you need to have a running environment that meets the e2e test environment requirements and stand up a version of this controller on-cluster.

Finally run the Go e2e tests with the build tag e2e.

go test -v -tags=e2e -count=1 ./test/e2e/...

-count=1 is the idiomatic way to bypass test caching, so that tests will always run.

YAML e2e tests

To run the YAML e2e tests, you need to have a running environment that meets the e2e test environment requirements.

./test/e2e-tests-yaml.sh

One test case

To run one e2e test case, e.g. TestSimpleBuild, use the -run flag with go test:

go test -v -tags=e2e -count=1 ./test/e2e/... -run=<regex>
You can’t perform that action at this time.