Skip to content

Commit

Permalink
integration: reduce multi-part to single configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonj committed Oct 25, 2017
1 parent 4631b97 commit d4ebb22
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions integration/gcs_general_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand All @@ -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) {
Expand Down

0 comments on commit d4ebb22

Please sign in to comment.