Пример #1
0
func (s *LocalServer) SetUp(c *check.C) {
	srv, err := ec2test.NewServer()
	c.Assert(err, check.IsNil)
	c.Assert(srv, check.NotNil)

	s.srv = srv
	s.region = aws.Region{EC2Endpoint: aws.ServiceInfo{Endpoint: srv.URL(), Signer: aws.V2Signature}}
}
Пример #2
0
func (s *LocalServer) SetUp(c *check.C) {
	srv, err := ec2test.NewServer()
	c.Assert(err, check.IsNil)
	c.Assert(srv, check.NotNil)

	s.srv = srv
	s.region = aws.Region{EC2Endpoint: srv.URL()}
}