"github.com/cedmundo/goamz/aws" "github.com/cedmundo/goamz/testutil" . "github.com/motain/gocheck" ) func Test(t *testing.T) { TestingT(t) } type S struct { autoscaling *autoscaling.AutoScaling } var _ = Suite(&S{}) var testServer = testutil.NewHTTPServer() func (s *S) SetUpSuite(c *C) { testServer.Start() auth := aws.Auth{"abc", "123", ""} s.autoscaling = autoscaling.NewWithClient(auth, aws.Region{AutoScalingEndpoint: testServer.URL}, testutil.DefaultClient) } func (s *S) TearDownTest(c *C) { testServer.Flush() } func (s *S) Test_CreateAutoScalingGroup(c *C) { testServer.Response(200, nil, CreateAutoScalingGroupExample) options := autoscaling.CreateAutoScalingGroup{
func init() { testServer = testutil.NewHTTPServer() testServer.Start() }