summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/goamz/goamz/testutil/suite.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/goamz/goamz/testutil/suite.go')
-rw-r--r--vendor/github.com/goamz/goamz/testutil/suite.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/vendor/github.com/goamz/goamz/testutil/suite.go b/vendor/github.com/goamz/goamz/testutil/suite.go
deleted file mode 100644
index f4519aa4e..000000000
--- a/vendor/github.com/goamz/goamz/testutil/suite.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package testutil
-
-import (
- "flag"
-
- "github.com/goamz/goamz/aws"
- . "gopkg.in/check.v1"
-)
-
-// Amazon must be used by all tested packages to determine whether to
-// run functional tests against the real AWS servers.
-var Amazon bool
-
-func init() {
- flag.BoolVar(&Amazon, "amazon", false, "Enable tests against amazon server")
-}
-
-type LiveSuite struct {
- auth aws.Auth
-}
-
-func (s *LiveSuite) SetUpSuite(c *C) {
- if !Amazon {
- c.Skip("amazon tests not enabled (-amazon flag)")
- }
- auth, err := aws.EnvAuth()
- if err != nil {
- c.Fatal(err.Error())
- }
- s.auth = auth
-}