func (s *S) SetUpTest(c *check.C) { var err error s.srv, err = ec2test.NewServer() c.Assert(err, check.IsNil) config.Set("iaas:ec2:key-id", "mykey") config.Set("iaas:ec2:secret-key", "mysecret") config.Set("queue:mongo-database", "queue_ec2_iaas") queue.ResetQueue() }
func (s *S) SetUpTest(c *check.C) { var err error s.srv, err = ec2test.NewServer() c.Assert(err, check.IsNil) s.srv.SetAvailabilityZones([]ec2amz.AvailabilityZoneInfo{ { AvailabilityZone: ec2amz.AvailabilityZone{ Name: "us-east-1b", Region: "us-east-1", }, }, }) s.srv.SetInitialAttributes(map[string][]string{"default-vpc": {"vpc-123"}}) config.Set("iaas:ec2:key-id", "mykey") config.Set("iaas:ec2:secret-key", "mysecret") config.Set("queue:mongo-url", "127.0.0.1:27017") config.Set("queue:mongo-database", "queue_ec2_iaas") queue.ResetQueue() }