diff --git a/test/e2e/framework/BUILD b/test/e2e/framework/BUILD index 455c1491de3..4c2e7d058dd 100644 --- a/test/e2e/framework/BUILD +++ b/test/e2e/framework/BUILD @@ -92,6 +92,18 @@ go_library( ], ) +go_test( + name = "go_default_test", + srcs = ["log_test.go"], + embed = [":go_default_library"], + deps = [ + "//vendor/github.com/onsi/ginkgo:go_default_library", + "//vendor/github.com/onsi/ginkgo/config:go_default_library", + "//vendor/github.com/onsi/ginkgo/reporters:go_default_library", + "//vendor/github.com/onsi/gomega:go_default_library", + ], +) + filegroup( name = "package-srcs", srcs = glob(["**"]), @@ -145,15 +157,3 @@ filegroup( tags = ["automanaged"], visibility = ["//visibility:public"], ) - -go_test( - name = "go_default_test", - srcs = ["log_test.go"], - embed = [":go_default_library"], - deps = [ - "//vendor/github.com/onsi/ginkgo:go_default_library", - "//vendor/github.com/onsi/ginkgo/config:go_default_library", - "//vendor/github.com/onsi/ginkgo/reporters:go_default_library", - "//vendor/github.com/onsi/gomega:go_default_library", - ], -) diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 918e0cf715c..72b3901ac83 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -531,17 +531,6 @@ func (f *Framework) ReadFileViaContainer(podName, containerName string, path str return string(stdout), err } -// CheckFileSizeViaContainer returns the list of file size under the specified path. -func (f *Framework) CheckFileSizeViaContainer(podName, containerName, path string) (string, error) { - ginkgo.By("checking a file size in the container") - - stdout, stderr, err := kubectlExecWithRetry(f.Namespace.Name, podName, containerName, "--", "ls", "-l", path) - if err != nil { - Logf("error running kubectl exec to read file: %v\nstdout=%v\nstderr=%v)", err, string(stdout), string(stderr)) - } - return string(stdout), err -} - // CreateServiceForSimpleAppWithPods is a convenience wrapper to create a service and its matching pods all at once. func (f *Framework) CreateServiceForSimpleAppWithPods(contPort int, svcPort int, appName string, podSpec func(n v1.Node) v1.PodSpec, count int, block bool) (*v1.Service, error) { var err error