@@ -125,21 +125,23 @@ func Node1BeforeSuite(e2eCtx *E2EContext) []byte {
125
125
126
126
Expect (err ).NotTo (HaveOccurred ())
127
127
e2eCtx .AWSSession = NewAWSSession ()
128
- boostrapTemplate := getBootstrapTemplate (e2eCtx )
128
+ bootstrapTemplate := getBootstrapTemplate (e2eCtx )
129
129
bootstrapTags := map [string ]string {"capa-e2e-test" : "true" }
130
- e2eCtx .CloudFormationTemplate = renderCustomCloudFormation (boostrapTemplate )
130
+ e2eCtx .CloudFormationTemplate = renderCustomCloudFormation (bootstrapTemplate )
131
+
131
132
if ! e2eCtx .Settings .SkipCloudFormationCreation {
132
- err = createCloudFormationStack (e2eCtx .AWSSession , boostrapTemplate , bootstrapTags )
133
+ err = createCloudFormationStack (e2eCtx .AWSSession , bootstrapTemplate , bootstrapTags )
133
134
if err != nil {
134
- deleteCloudFormationStack (e2eCtx .AWSSession , boostrapTemplate )
135
- err = createCloudFormationStack (e2eCtx .AWSSession , boostrapTemplate , bootstrapTags )
135
+ deleteCloudFormationStack (e2eCtx .AWSSession , bootstrapTemplate )
136
+ err = createCloudFormationStack (e2eCtx .AWSSession , bootstrapTemplate , bootstrapTags )
136
137
Expect (err ).NotTo (HaveOccurred ())
137
138
}
138
139
}
139
- ensureStackTags (e2eCtx .AWSSession , boostrapTemplate .Spec .StackName , bootstrapTags )
140
+
141
+ ensureStackTags (e2eCtx .AWSSession , bootstrapTemplate .Spec .StackName , bootstrapTags )
140
142
ensureNoServiceLinkedRoles (e2eCtx .AWSSession )
141
143
ensureSSHKeyPair (e2eCtx .AWSSession , DefaultSSHKeyPairName )
142
- e2eCtx .Environment .BootstrapAccessKey = newUserAccessKey (e2eCtx .AWSSession , boostrapTemplate .Spec .BootstrapUser .UserName )
144
+ e2eCtx .Environment .BootstrapAccessKey = newUserAccessKey (e2eCtx .AWSSession , bootstrapTemplate .Spec .BootstrapUser .UserName )
143
145
e2eCtx .BootstrapUserAWSSession = NewAWSSessionWithKey (e2eCtx .Environment .BootstrapAccessKey )
144
146
Expect (ensureTestImageUploaded (e2eCtx )).NotTo (HaveOccurred ())
145
147
@@ -154,7 +156,7 @@ func Node1BeforeSuite(e2eCtx *E2EContext) []byte {
154
156
By ("Setting up the bootstrap cluster" )
155
157
e2eCtx .Environment .BootstrapClusterProvider , e2eCtx .Environment .BootstrapClusterProxy = setupBootstrapCluster (e2eCtx .E2EConfig , e2eCtx .Environment .Scheme , e2eCtx .Settings .UseExistingCluster )
156
158
157
- base64EncodedCredentials := encodeCredentials (e2eCtx .Environment .BootstrapAccessKey , boostrapTemplate .Spec .Region )
159
+ base64EncodedCredentials := encodeCredentials (e2eCtx .Environment .BootstrapAccessKey , bootstrapTemplate .Spec .Region )
158
160
SetEnvVar ("AWS_B64ENCODED_CREDENTIALS" , base64EncodedCredentials , true )
159
161
160
162
if ! e2eCtx .Settings .SkipQuotas {
0 commit comments