Exemple #1
0
func (s *AmazonClientSuite) SetUpSuite(c *C) {
	if !testutil.Amazon {
		c.Skip("live tests against AWS disabled (no -amazon)")
	}
	s.srv.SetUp(c)
	if s.isV4 {
		s.s3 = s3.NewV4(s.srv.auth, s.Region)
	} else {
		s.s3 = s3.New(s.srv.auth, s.Region)
	}
	// In case tests were interrupted in the middle before.
	s.ClientTests.Cleanup()
}
Exemple #2
0
func (s *AmazonDomainClientSuite) SetUpSuite(c *C) {
	if !testutil.Amazon {
		c.Skip("live tests against AWS disabled (no -amazon)")
	}
	s.srv.SetUp(c)
	region := s.Region
	region.S3BucketEndpoint = "https://${bucket}.s3.amazonaws.com"
	if s.isV4 {
		s.s3 = s3.NewV4(s.srv.auth, s.Region)
	} else {
		s.s3 = s3.New(s.srv.auth, s.Region)
	}
	s.ClientTests.Cleanup()
}