From a45b8a362136dbbff317b32f219b891b60d15321 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Mon, 26 Mar 2018 14:00:14 -0700 Subject: [PATCH] Add integration tests for unpacking from GCS bucket --- integration_tests/dockerfiles/Dockerfile_test_bucket | 2 -- pkg/util/bucket_util.go | 2 -- 2 files changed, 4 deletions(-) delete mode 100644 integration_tests/dockerfiles/Dockerfile_test_bucket diff --git a/integration_tests/dockerfiles/Dockerfile_test_bucket b/integration_tests/dockerfiles/Dockerfile_test_bucket deleted file mode 100644 index 356eb5e06..000000000 --- a/integration_tests/dockerfiles/Dockerfile_test_bucket +++ /dev/null @@ -1,2 +0,0 @@ -FROM gcr.io/distroless/base:latest -COPY baz /tmp/baz \ No newline at end of file diff --git a/pkg/util/bucket_util.go b/pkg/util/bucket_util.go index 8df1d3839..46ed9a9ef 100644 --- a/pkg/util/bucket_util.go +++ b/pkg/util/bucket_util.go @@ -56,9 +56,7 @@ func getTarFromBucket(bucketName, directory string) (string, error) { return "", err } bucket := client.Bucket(bucketName) - // Get the tarfile kbuild.tar from the GCS bucket, and save it to a tar object - reader, err := bucket.Object(constants.KbuildTar).NewReader(ctx) if err != nil { return "", err