Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rj1k committed Nov 1, 2024
1 parent b23c56c commit 969db9a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/e2e/shared/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import (
"strconv"
"time"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/cloudformation"
"github.com/aws/aws-sdk-go/service/iam"
"github.com/gofrs/flock"
. "github.com/onsi/ginkgo/v2"
Expand Down Expand Up @@ -140,12 +142,18 @@ func Node1BeforeSuite(e2eCtx *E2EContext) []byte {
By(fmt.Sprintf("Trying to create CloudFormation stack... attempt %d", count))
success := true
if err := createCloudFormationStack(e2eCtx.AWSSession, bootstrapTemplate, bootstrapTags); err != nil {
svc := cloudformation.New(e2eCtx.AWSSession)
if events, err := svc.DescribeStackEvents(&cloudformation.DescribeStackEventsInput{
StackName: aws.String(bootstrapTemplate),

Check failure on line 147 in test/e2e/shared/suite.go

View workflow job for this annotation

GitHub Actions / lint

cannot use bootstrapTemplate (variable of type *"sigs.k8s.io/cluster-api-provider-aws/v2/cmd/clusterawsadm/cloudformation/bootstrap".Template) as string value in argument to aws.String (typecheck)

Check failure on line 147 in test/e2e/shared/suite.go

View workflow job for this annotation

GitHub Actions / lint

cannot use bootstrapTemplate (variable of type *"sigs.k8s.io/cluster-api-provider-aws/v2/cmd/clusterawsadm/cloudformation/bootstrap".Template) as string value in argument to aws.String) (typecheck)

Check failure on line 147 in test/e2e/shared/suite.go

View workflow job for this annotation

GitHub Actions / lint

cannot use bootstrapTemplate (variable of type *"sigs.k8s.io/cluster-api-provider-aws/v2/cmd/clusterawsadm/cloudformation/bootstrap".Template) as string value in argument to aws.String) (typecheck)

Check failure on line 147 in test/e2e/shared/suite.go

View workflow job for this annotation

GitHub Actions / lint

cannot use bootstrapTemplate (variable of type *"sigs.k8s.io/cluster-api-provider-aws/v2/cmd/clusterawsadm/cloudformation/bootstrap".Template) as string value in argument to aws.String) (typecheck)

Check failure on line 147 in test/e2e/shared/suite.go

View workflow job for this annotation

GitHub Actions / lint

cannot use bootstrapTemplate (variable of type *"sigs.k8s.io/cluster-api-provider-aws/v2/cmd/clusterawsadm/cloudformation/bootstrap".Template) as string value in argument to aws.String) (typecheck)
}); err == nil {
By(fmt.Sprintf("Stack creation failed. Recent events:\n%v", events))
}
By(fmt.Sprintf("Failed to create CloudFormation stack in attempt %d: %s", count, err.Error()))
deleteCloudFormationStack(e2eCtx.AWSSession, bootstrapTemplate)
success = false
}
return success
}, 10*time.Minute, 5*time.Second).Should(BeTrue(), "Should've eventually succeeded creating an AWS CloudFormation stack")
}, 30*time.Minute, 30*time.Second).Should(BeTrue(), "Should've eventually succeeded creating an AWS CloudFormation stack")
}

ensureStackTags(e2eCtx.AWSSession, bootstrapTemplate.Spec.StackName, bootstrapTags)
Expand Down

0 comments on commit 969db9a

Please sign in to comment.