Skip to content

Commit

Permalink
update custom networking integration tests following node readiness c…
Browse files Browse the repository at this point in the history
…hanges
  • Loading branch information
jdn5126 committed Apr 26, 2023
1 parent 62bc27c commit b4caba8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion scripts/run-ginkgo-integration-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source "$SCRIPT_DIR"/lib/cluster.sh
source "$SCRIPT_DIR"/lib/canary.sh

function run_ginkgo_test() {
(CGO_ENABLED=0 ginkgo $EXTRA_GINKGO_FLAGS -v --timeout 30m --no-color --fail-on-pending $GINKGO_TEST_BUILD/$SUITE_NAME.test -- --cluster-kubeconfig="$KUBE_CONFIG_PATH" --cluster-name="$CLUSTER_NAME" --aws-region="$REGION" --aws-vpc-id="$VPC_ID" --ng-name-label-key="kubernetes.io/os" --ng-name-label-val="linux")
(CGO_ENABLED=0 ginkgo $EXTRA_GINKGO_FLAGS -v --timeout 60m --no-color --fail-on-pending $GINKGO_TEST_BUILD/$SUITE_NAME.test -- --cluster-kubeconfig="$KUBE_CONFIG_PATH" --cluster-name="$CLUSTER_NAME" --aws-region="$REGION" --aws-vpc-id="$VPC_ID" --ng-name-label-key="kubernetes.io/os" --ng-name-label-val="linux")
}

load_cluster_details
Expand Down
2 changes: 0 additions & 2 deletions test/framework/resources/k8s/resources/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ func (d *defaultNodeManager) WaitTillNodesReady(nodeLabelKey string, nodeLabelVa
}
}
}

return true, nil

}, context.Background().Done())
}
10 changes: 3 additions & 7 deletions test/integration/custom-networking/custom_networking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,11 @@ var _ = Describe("Custom Networking Test", func() {
err = f.CloudServices.EC2().TerminateInstance(instanceIDs)
Expect(err).ToNot(HaveOccurred())

By("waiting for the node to be removed")
By("waiting for nodes to be removed")
time.Sleep(time.Second * 120)

By("waiting for all nodes to become ready")
err = f.K8sResourceManagers.NodeManager().
WaitTillNodesReady(nodeGroupProperties.NgLabelKey, nodeGroupProperties.NgLabelVal,
nodeGroupProperties.AsgSize)
Expect(err).ToNot(HaveOccurred())

// Nodes should be stuck in NotReady state since no ENIs could be attached and no pod
// IP addresses are available.
deployment := manifest.NewBusyBoxDeploymentBuilder().
Replicas(2).
NodeSelector(nodeGroupProperties.NgLabelKey, nodeGroupProperties.NgLabelVal).
Expand Down
2 changes: 1 addition & 1 deletion testdata/amazon-eks-nodegroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Parameters:

NodeImageIdSSMParam:
Type: "AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>"
Default: /aws/service/eks/optimized-ami/1.22/amazon-linux-2/recommended/image_id
Default: /aws/service/eks/optimized-ami/1.24/amazon-linux-2/recommended/image_id
Description: AWS Systems Manager Parameter Store parameter of the AMI ID for the worker node instances. Change this value to match the version of Kubernetes you are using.

DisableIMDSv1:
Expand Down

0 comments on commit b4caba8

Please sign in to comment.