@@ -1069,7 +1069,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
1069
1069
awsCluster , err := GetAWSClusterByName (ctx , namespace .Name , clusterName )
1070
1070
Expect (err ).To (BeNil ())
1071
1071
1072
- // Validate that s3 endpoints were created in the vpc.
1072
+ ginkgo . By ( "Validating the s3 endpoint was created" )
1073
1073
vpc , err := shared .GetVPCByName (e2eCtx , clusterName + "-vpc" )
1074
1074
Expect (err ).NotTo (HaveOccurred ())
1075
1075
Expect (vpc ).NotTo (BeNil ())
@@ -1081,16 +1081,16 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() {
1081
1081
Expect (* endpoints [0 ].ServiceName ).To (Equal ("com.amazonaws." + awsCluster .Spec .Region + ".s3" ))
1082
1082
Expect (* endpoints [0 ].VpcId ).To (Equal (* vpc .VpcId ))
1083
1083
1084
+ ginkgo .By ("Deleting the cluster" )
1085
+ deleteCluster (ctx , cluster )
1086
+
1084
1087
ginkgo .By ("Waiting for AWSCluster to show the VPC endpoint as deleted in conditions" )
1085
1088
Eventually (func () bool {
1086
1089
awsCluster , err := GetAWSClusterByName (ctx , namespace .Name , clusterName )
1087
1090
Expect (err ).To (BeNil ())
1088
1091
return conditions .IsFalse (awsCluster , infrav1 .VpcEndpointsReadyCondition ) &&
1089
1092
conditions .GetReason (awsCluster , infrav1 .VpcEndpointsReadyCondition ) == clusterv1 .DeletedReason
1090
1093
}, e2eCtx .E2EConfig .GetIntervals ("" , "wait-delete-cluster" )... ).Should (BeTrue ())
1091
-
1092
- ginkgo .By ("Deleting the cluster" )
1093
- deleteCluster (ctx , cluster )
1094
1094
})
1095
1095
})
1096
1096
})
0 commit comments