File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ test_controller_image() {
210
210
CERT_ID3=" 1001570b-1779-40c3-9b49-9a9a41e30058"
211
211
CERTIFICATE_ARNS=${CERTIFICATE_ARNS:- " ${CERTIFICATE_ARN_PREFIX} /${CERT_ID1} ,${CERTIFICATE_ARN_PREFIX} /${CERT_ID2} ,${CERTIFICATE_ARN_PREFIX} /${CERT_ID3} " }
212
212
213
- ginkgo -v -r test/e2e -- \
213
+ ginkgo -v -r test/e2e -timeout 2h - - \
214
214
--kubeconfig=${CLUSTER_KUBECONFIG} \
215
215
--cluster-name=${CLUSTER_NAME} \
216
216
--aws-region=${AWS_REGION} \
Original file line number Diff line number Diff line change @@ -166,11 +166,11 @@ function run_ginkgo_test() {
166
166
local focus=$1
167
167
echo " Starting the ginkgo tests from generated ginkgo test binaries with focus: $focus "
168
168
if [ " $IP_FAMILY " == " IPv4" ]; then
169
- (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
170
- (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
169
+ (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " -v --timeout 2h --fail-on-pending $GINKGO_TEST_BUILD /ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
170
+ (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " -v --timeout 2h --fail-on-pending $GINKGO_TEST_BUILD /service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
171
171
elif [ " $IP_FAMILY " == " IPv6" ]; then
172
- (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " --skip=" instance" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
173
- (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " --skip=" instance" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
172
+ (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " --skip=" instance" -v --timeout 2h --fail-on-pending $GINKGO_TEST_BUILD /ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
173
+ (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " --skip=" instance" -v --timeout 2h --fail-on-pending $GINKGO_TEST_BUILD /service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --test-image-registry=$TEST_IMAGE_REGISTRY --ip-family=$IP_FAMILY || TEST_RESULT=fail)
174
174
else
175
175
echo " Invalid IP_FAMILY input, choose from IPv4 or IPv6 only"
176
176
fi
Original file line number Diff line number Diff line change @@ -3,15 +3,13 @@ package service
3
3
import (
4
4
"context"
5
5
"fmt"
6
- "strings"
7
- "time"
8
-
9
6
awssdk "github.com/aws/aws-sdk-go/aws"
10
7
. "github.com/onsi/ginkgo/v2"
11
8
. "github.com/onsi/gomega"
12
9
corev1 "k8s.io/api/core/v1"
13
10
"sigs.k8s.io/aws-load-balancer-controller/test/framework/http"
14
11
"sigs.k8s.io/aws-load-balancer-controller/test/framework/utils"
12
+ "strings"
15
13
)
16
14
17
15
var _ = Describe ("test k8s service reconciled by the aws load balancer controller" , func () {
@@ -312,7 +310,12 @@ var _ = Describe("test k8s service reconciled by the aws load balancer controlle
312
310
"deregistration_delay.timeout_seconds" : "120" ,
313
311
})
314
312
}, utils .PollTimeoutShort , utils .PollIntervalMedium ).Should (BeTrue ())
315
- time .Sleep (30 * time .Second )
313
+ By ("waiting for target group targets to be healthy" , func () {
314
+ nodeList , err := stack .GetWorkerNodes (ctx , tf )
315
+ Expect (err ).ToNot (HaveOccurred ())
316
+ err = waitUntilTargetsAreHealthy (ctx , tf , lbARN , len (nodeList ))
317
+ Expect (err ).NotTo (HaveOccurred ())
318
+ })
316
319
})
317
320
})
318
321
})
You can’t perform that action at this time.
0 commit comments