@@ -395,31 +395,6 @@ func TestAWSClusterReconcileOperations(t *testing.T) {
395395 g .Expect (err ).To (BeNil ())
396396 expectAWSClusterConditions (g , cs .AWSCluster , []conditionAssertion {{infrav1 .LoadBalancerReadyCondition , corev1 .ConditionFalse , clusterv1 .ConditionSeverityInfo , infrav1 .WaitForDNSNameReason }})
397397 })
398- t .Run ("Should fail AWSCluster create with LoadBalancer reconcile failure with WaitForDNSNameResolve condition as false" , func (t * testing.T ) {
399- g := NewWithT (t )
400- awsCluster := getAWSCluster ("test" , "test" )
401- runningCluster := func () {
402- networkSvc .EXPECT ().ReconcileNetwork ().Return (nil )
403- sgSvc .EXPECT ().ReconcileSecurityGroups ().Return (nil )
404- ec2Svc .EXPECT ().ReconcileBastion ().Return (nil )
405- elbSvc .EXPECT ().ReconcileLoadbalancers ().Return (nil )
406- }
407- csClient := setup (t , & awsCluster )
408- defer teardown ()
409- runningCluster ()
410- cs , err := scope .NewClusterScope (
411- scope.ClusterScopeParams {
412- Client : csClient ,
413- Cluster : & clusterv1.Cluster {},
414- AWSCluster : & awsCluster ,
415- },
416- )
417- awsCluster .Status .Network .APIServerELB .DNSName = "test-apiserver.us-east-1.aws"
418- g .Expect (err ).To (BeNil ())
419- _ , err = reconciler .reconcileNormal (cs )
420- g .Expect (err ).To (BeNil ())
421- expectAWSClusterConditions (g , cs .AWSCluster , []conditionAssertion {{infrav1 .LoadBalancerReadyCondition , corev1 .ConditionFalse , clusterv1 .ConditionSeverityInfo , infrav1 .WaitForDNSNameResolveReason }})
422- })
423398 })
424399 })
425400 t .Run ("Reconcile delete AWSCluster" , func (t * testing.T ) {
0 commit comments