Ejemplo n.º 1
0
func (s *LocalServer) SetUp(c *gocheck.C) {
	srv, err := ec2test.NewServer()
	c.Assert(err, gocheck.IsNil)
	c.Assert(srv, gocheck.NotNil)

	s.srv = srv
	s.region = aws.Region{EC2Endpoint: srv.URL()}
}
Ejemplo n.º 2
0
func (s *LocalServer) SetUp(c *C) {
	srv, err := ec2test.NewServer()
	c.Assert(err, IsNil)
	c.Assert(srv, NotNil)

	s.srv = srv
	s.region = aws.Region{EC2Endpoint: srv.URL()}
	s.auth = aws.NewAuth("", "", "", time.Time{})
}