@@ -52,13 +52,14 @@ steps:
5252 displayName: "Run CNS Integration Tests on AKS DualStack Overlay"
5353
5454 - script : |
55+ set -e
5556 cd test/integration/load
5657 echo "DualStack Overlay Linux control plane Node properties test"
57- sudo go test -timeout 30m -tags load -run ^TestDualStackProperties$ -tags=load
58+ sudo go test -timeout 30m -tags load -run ^TestDualStackProperties$
5859 echo "DualStack Overlay Linux control plane Load test"
59- sudo go test -timeout 30m -tags load -run ^TestLoad$ -tags=load
60+ sudo go test -timeout 30m -tags load -run ^TestLoad$
6061 echo "DualStack Overlay Linux control plane CNS validation test"
61- make test-validate-state OS=${{ parameters.os }} CNI_TYPE=${{ parameters. cni }}
62+ sudo go test -timeout 30m -tags load - cni dualstack -run ^TestValidateState$
6263 cd ../datapath
6364 echo "Dualstack Overlay Linux datapath IPv6 test"
6465 sudo go test -count=1 datapath_linux_test.go -timeout 1m -tags connection -run ^TestDatapathLinux$ -tags=connection,integration -isDualStack=true
@@ -67,3 +68,50 @@ steps:
6768 retryCountOnTaskFailure: 3
6869 name: "DualStack_Overlay_Linux_Tests"
6970 displayName: "DualStack Overlay Linux Tests"
71+
72+ - task : AzureCLI@1
73+ inputs :
74+ azureSubscription : $(AZURE_TEST_AGENT_SERVICE_CONNECTION)
75+ scriptLocation : " inlineScript"
76+ scriptType : " bash"
77+ addSpnToEnvironment : true
78+ inlineScript : |
79+ set -e
80+ clusterName=${{ parameters.clusterName }}
81+ echo "Restarting nodes"
82+ for val in $(az vmss list -g MC_${clusterName}_${clusterName}_$(REGION_DUALSTACKOVERLAY_CLUSTER_TEST) --query "[].name" -o tsv); do
83+ make -C ./hack/aks restart-vmss AZCLI=az CLUSTER=${clusterName} REGION=$(REGION_DUALSTACKOVERLAY_CLUSTER_TEST) VMSS_NAME=${val}
84+ done
85+ displayName : " Restart Nodes"
86+
87+ - task : AzureCLI@1
88+ inputs :
89+ azureSubscription : $(AZURE_TEST_AGENT_SERVICE_CONNECTION)
90+ scriptLocation : " inlineScript"
91+ scriptType : " bash"
92+ addSpnToEnvironment : true
93+ inlineScript : |
94+ cd test/integration/load
95+ clusterName=${{ parameters.clusterName }}
96+ make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${clusterName}
97+ make -C ./hack/aks azcfg AZCLI=az REGION=$(REGION_DUALSTACKOVERLAY_CLUSTER_TEST)
98+ kubectl get pods -A
99+ echo "Validating Node Restart"
100+ sudo go test -timeout 30m -tags load -cni dualstack -run ^TestValidateState$ -restart-case=true
101+ displayName : " Validate Node Restart"
102+ retryCountOnTaskFailure : 3
103+
104+ - script : |
105+ echo "validate pod IP assignment before CNS restart"
106+ kubectl get pod -owide -A
107+ echo "validate pod state before CNS restarts"
108+ cd test/integration/load
109+ sudo go test -timeout 30m -tags load -cni dualstack -run ^TestValidateState$
110+ kubectl rollout restart ds azure-cns -n kube-system
111+ kubectl rollout status ds azure-cns -n kube-system
112+ kubectl get pod -owide -A
113+ echo "validate pods after CNS restarts"
114+ sudo go test -timeout 30m -tags load -cni dualstack -run ^TestValidateState$
115+ name: "restartCNS_ValidatePodState"
116+ displayName: "Restart CNS and Validate Pod State"
117+ retryCountOnTaskFailure: 3
0 commit comments