-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Builder tests #3555
Builder tests #3555
Conversation
2559a76
to
ca872cb
Compare
2379346
to
e212720
Compare
Failures are fixed by #3563 |
// and adds cleanup steps to test cleanup. The builder name is returned as output. | ||
// | ||
// If not docker, this function returns an empty string as the builder name. | ||
func SetupDockerContainerBuilder(t *testing.T) string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was used only once and could be simplified in the test in-place.
@@ -43,7 +43,9 @@ const ( | |||
NginxAlpineImage = "registry.k8s.io/e2e-test-images/nginx:1.14-2" | |||
NginxAlpineIndexHTMLSnippet = "<title>Welcome to nginx!</title>" | |||
|
|||
GolangImage = "fixme-test-using-this-image-is-disabled-on-windows" | |||
GolangImage = "fixme-test-using-this-image-is-disabled-on-windows" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we remove more of platform-specific test files and replace with platform-dependent t.Skip
, we need a few placeholders so that we compile.
The point of this (as exposed ealier), is to make platform-specific skip/unskip easier than it is today.
Signed-off-by: apostasie <[email protected]>
Thanks a lot @ktock |
This PR focused solely on rewriting builder tests with the new test framework.
Any other changes (in testutil) are removal of no-longer used helpers, and making sure we can compile on other platforms as we make test files move away from _platform.go patterns.
Besides 1-1 rewrite, a few test changes are worth noting:
builder prune
op that was previously in place. The key upside is that tests can now be ran in parallel instead of sequentially, with no downside as far as I can tell (if there is any, we can always --no-cache where it matters)This PR has been reduced as much as feasible to not contain any other changes.
I know it is still big (1k lines)... - lmk if you think there is a good way to break this up.