예제 #1
0
func (s *LocalServer) SetUp(c *gocheck.C) {
	srv, err := iamtest.NewServer()
	c.Assert(err, gocheck.IsNil)
	c.Assert(srv, gocheck.NotNil)

	s.srv = srv
	s.region = aws.Region{IAMEndpoint: srv.URL()}
}
예제 #2
0
파일: iamt_test.go 프로젝트: aalness/goamz
func (s *LocalServer) SetUp(c *C) {
	srv, err := iamtest.NewServer()
	c.Assert(err, IsNil)
	c.Assert(srv, NotNil)

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