From d4ebb2240035cb765e95ce988e968b8ad36dfe89 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 25 Oct 2017 14:10:06 -0700 Subject: [PATCH] integration: reduce multi-part to single configuration --- integration/gcs_general_test.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/integration/gcs_general_test.go b/integration/gcs_general_test.go index 10e839bd..70f46eb0 100644 --- a/integration/gcs_general_test.go +++ b/integration/gcs_general_test.go @@ -95,10 +95,17 @@ var _ = Describe("Integration", func() { }, configurations...) - // Perform a large file put causing GCS to do a multi-part upload - DescribeTable("Multipart Put works", - func(config *config.GCSCli) { - env.AddConfig(config) + Context("with a regional bucket", func() { + var cfg *config.GCSCli + BeforeEach(func() { + cfg = getRegionalConfig() + env.AddConfig(cfg) + }) + AfterEach(func() { + env.Cleanup() + }) + + It("can perform large file upload (multi-part)", func() { if os.Getenv(NoLongEnv) != "" { Skip(fmt.Sprintf(NoLongMsg, NoLongEnv)) } @@ -114,8 +121,8 @@ var _ = Describe("Integration", func() { blobstoreClient.Delete(env.GCSFileName) Expect(err).ToNot(HaveOccurred()) - }, - configurations...) + }) + }) DescribeTable("Invalid Put should fail", func(config *config.GCSCli) {