You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/test: add in-cluster/in-image testing support (#469)
* pkg/test: add in-cluster/in-image testing support
Issue #435
* *: change the way the dockerfiles are used
* commands/.../test: create new test subcommands
* .travis.yml: update travis.yml to match test subcommands
* commands/.../test/cluster.go: return errors instead of cmderror
The cluster test has defers that need to run on error, which
would not run if cmdError is used due to its use of os.Exit().
Instead, we can just return an error, which allows the defer
functions to run.
* *: add tests for incluster test image and fix bugs
This adds tests for the new incluster image testing mode as well as
fixes some bugs that this test exposed
* commands/.../test/cluster.go: handle pending phase
Test could hang forever if the pod remaining in the 'Pending' phase,
which would occur if it cannot pull the image. This sets a
configurable pending timeout with a default of 60 seconds
* .travis.yml: enable go testing of ./commands/...
* pkg/generator: remove docker_build.sh generation
* pkg/generator/generator.go: change defaultExecFileMode to 0755
* commands/.../test: use structs for test flags/vars
warningMessages=fmt.Sprintf("%s\nWARNING: Namespace manifest contains a deployment with image %v, which does not match the name of the image being built: %v", warningMessages, image, imageName)
0 commit comments