Example #1
0
func (t *localNonUSEastSuite) SetUpSuite(c *C) {
	t.LoggingSuite.SetUpSuite(c)
	ec2.UseTestImageData(true)
	ec2.UseTestMetadata(true)
	t.tests.SetUpSuite(c)
	ec2.ShortTimeouts(true)
}
Example #2
0
func (t *localNonUSEastSuite) TearDownSuite(c *C) {
	t.restoreTimeouts()
	ec2.UseTestImageData(nil)
	ec2.UseTestInstanceTypeData(nil)
	ec2.UseTestRegionData(nil)
	t.LoggingSuite.TearDownSuite(c)
}
Example #3
0
func (t *localServerSuite) TearDownSuite(c *C) {
	t.Tests.TearDownSuite(c)
	ec2.ShortTimeouts(false)
	ec2.UseTestMetadata(false)
	ec2.UseTestImageData(false)
	t.LoggingSuite.TearDownSuite(c)
}
Example #4
0
func (t *localNonUSEastSuite) SetUpSuite(c *C) {
	t.LoggingSuite.SetUpSuite(c)
	ec2.UseTestImageData(ec2.TestImagesData)
	ec2.UseTestInstanceTypeData(ec2.TestInstanceTypeCosts)
	ec2.UseTestRegionData(ec2.TestRegions)
	t.tests.SetUpSuite(c)
	t.restoreTimeouts = envtesting.PatchAttemptStrategies(ec2.ShortAttempt)
}
Example #5
0
func (t *localLiveSuite) TearDownSuite(c *C) {
	t.LiveTests.TearDownSuite(c)
	t.srv.stopServer(c)
	t.env = nil
	ec2.ShortTimeouts(false)
	ec2.UseTestImageData(false)
	t.LoggingSuite.TearDownSuite(c)
}
Example #6
0
func (t *localLiveSuite) SetUpSuite(c *C) {
	t.LoggingSuite.SetUpSuite(c)
	ec2.UseTestImageData(true)
	t.srv.startServer(c)
	t.LiveTests.SetUpSuite(c)
	t.env = t.LiveTests.Env
	ec2.ShortTimeouts(true)
}
Example #7
0
func (t *localLiveSuite) TearDownSuite(c *C) {
	t.LiveTests.TearDownSuite(c)
	t.srv.stopServer(c)
	t.env = nil
	t.restoreTimeouts()
	ec2.UseTestImageData(nil)
	ec2.UseTestInstanceTypeData(nil)
	ec2.UseTestRegionData(nil)
	t.LoggingSuite.TearDownSuite(c)
}
Example #8
0
func (t *localLiveSuite) SetUpSuite(c *C) {
	t.LoggingSuite.SetUpSuite(c)
	ec2.UseTestImageData(ec2.TestImagesData)
	ec2.UseTestInstanceTypeData(ec2.TestInstanceTypeCosts)
	ec2.UseTestRegionData(ec2.TestRegions)
	t.srv.startServer(c)
	t.LiveTests.SetUpSuite(c)
	t.env = t.LiveTests.Env
	t.restoreTimeouts = envtesting.PatchAttemptStrategies(ec2.ShortAttempt)
}
Example #9
0
func (t *localNonUSEastSuite) TearDownSuite(c *C) {
	ec2.ShortTimeouts(false)
	ec2.UseTestMetadata(false)
	ec2.UseTestImageData(false)
	t.LoggingSuite.TearDownSuite(c)
}