Example #1
0
func (t *localNonUSEastSuite) TearDownSuite(c *C) {
	t.restoreTimeouts()
	ec2.UseTestImageData(nil)
	ec2.UseTestInstanceTypeData(nil)
	ec2.UseTestRegionData(nil)
	t.LoggingSuite.TearDownSuite(c)
}
Example #2
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 #3
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 #4
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)
}